#2341. 摩卡串
摩卡串
摩卡串
题目描述
摩卡串 - Problem - QOJ.ac
QOJ.ac
QOJ
[QOJ](//qoj.ac)
Time Limit: 3 s
Memory Limit: 2048 MB
Total points: 100
Difficulty:
[show]
5
Hackable ✓
联合省选 2026 Day 1
B.
摩卡串
[
Statistics ](/contest/3493/problem/17302/statistics)
[
Statement ](#tab-statement)
[ Languages](#)
[Default](/contest/3493/problem/17302/statement/default)
[English](/contest/3493/problem/17302/statement/en)
**This problem is prepared by
lmeowdn .**
Submit
Run
Editorials
IDTypeStatusTitlePosted ByLast UpdatedActions
#1274EditorialOpen《摩卡串》解题报告Anonymous2026-03-14 18:05:11View
#1232EditorialOpen请保佑我可以和雨停酱在一起一辈子GotoHiotori2026-03-07 20:23:20View
Discussions
About Discussions
The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.
This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.
Open Discussions 0
No discussions in this category.
Issues
About Issues
If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.
Guidelines:
This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
Do not submit duplicated issues.
Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.
English
[العربية](//qoj.ac/contest/3493/problem/17302?locale=ar)
[English](//qoj.ac/contest/3493/problem/17302?locale=en)
[Español](//qoj.ac/contest/3493/problem/17302?locale=es)
[Français](//qoj.ac/contest/3493/problem/17302?locale=fr)
[日本語](//qoj.ac/contest/3493/problem/17302?locale=ja)
[한국어](//qoj.ac/contest/3493/problem/17302?locale=ko)
[Türkçe](//qoj.ac/contest/3493/problem/17302?locale=tr)
[简体中文](//qoj.ac/contest/3493/problem/17302?locale=zh-cn)
[繁體中文](//qoj.ac/contest/3493/problem/17302?locale=zh-tw)
QOJ.ac | QOJ 4.5.49 (2019-2026)
Made with ❤️ by Qingyu✨ | Contact us: [email protected]
Server Time: 2026-11-09 01:29:29 (UTC+8)
输入格式
(见题面原文)
输出格式
(见题面原文)
数据范围
(见题面原文)
样例
样例 1
0 5
1 1
1
1 1
0
3 9
101
4 17
1100
4 20
1100
10
Impossible
0101
011100
001100
样例 2
0 5
7 2000
0000000
46 964
0000000000000000000000000000000000000000000000
6 2000
000000
47 296
00000000000000000000000000000000000000000000000
46 459
0000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000010
Impossible
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Impossible
Impossible