Toggle navigation
Bulletin
Problems
Submissions
Contests
Discuss
About
Rank
Sign in
Sign up
×
Close
2024 全國模擬賽題目上線啦 !!!!!
題目在
這裡
~
2023 全國模擬賽題目上線啦 !!!!!
題目在
這裡
~
2402 . 田地規劃
Submit
Status
Discussion / Solution
Ranklist
Back to Problems List
TopCoder
LittleCube
我是笨蛋
User's AC Ratio
50.0% (
1/2
)
Submission's AC Ratio
50.0% (
1
/
2
)
Tags
Show solution-related tags
pre-nhspc-2023
全國模擬賽
Description
題目 PDF 檔在這裡
Input Format
Output Format
Sample Input 1
copy
3 4 1
0001
1000
0001
Sample Output 1
copy
9
12 17 9 9 0 6 0 0 1 0 0 0
Sample Input 2
copy
5 3 2
001
111
000
101
110
Sample Output 2
copy
6
15 22 13 10 1 3 0 0 0 0 0 0 0 0 0
Hints
Problem Source
112 學年度全國資訊學科能力競賽模擬賽
Subtasks
No.
Testdata Range
Constraints
Score
1
0~1
範例測資
0
2
0~18
$N, M \leq 100$
5
3
0~29
$N, M \leq 500$
15
4
0~52
無額外限制
80
Testdata and Limits
No.
Time Limit (ms)
Memory Limit (VSS, KiB)
Output Limit (KiB)
Subtasks
0
5000
524288
65536
1
2
3
4
1
5000
524288
65536
1
2
3
4
2
5000
524288
65536
2
3
4
3
5000
524288
65536
2
3
4
4
5000
524288
65536
2
3
4
5
5000
524288
65536
2
3
4
6
5000
524288
65536
2
3
4
7
5000
524288
65536
2
3
4
8
5000
524288
65536
2
3
4
9
5000
524288
65536
2
3
4
10
5000
524288
65536
2
3
4
11
5000
524288
65536
2
3
4
12
5000
524288
65536
2
3
4
13
5000
524288
65536
2
3
4
14
5000
524288
65536
2
3
4
15
5000
524288
65536
2
3
4
16
5000
524288
65536
2
3
4
17
5000
524288
65536
2
3
4
18
5000
524288
65536
2
3
4
19
5000
524288
65536
3
4
20
5000
524288
65536
3
4
21
5000
524288
65536
3
4
22
5000
524288
65536
3
4
23
5000
524288
65536
3
4
24
5000
524288
65536
3
4
25
5000
524288
65536
3
4
26
5000
524288
65536
3
4
27
5000
524288
65536
3
4
28
5000
524288
65536
3
4
29
5000
524288
65536
3
4
30
5000
524288
65536
4
31
5000
524288
65536
4
32
5000
524288
65536
4
33
5000
524288
65536
4
34
5000
524288
65536
4
35
5000
524288
65536
4
36
5000
524288
65536
4
37
5000
524288
65536
4
38
5000
524288
65536
4
39
5000
524288
65536
4
40
5000
524288
65536
4
41
5000
524288
65536
4
42
5000
524288
65536
4
43
5000
524288
65536
4
44
5000
524288
65536
4
45
5000
524288
65536
4
46
5000
524288
65536
4
47
5000
524288
65536
4
48
5000
524288
65536
4
49
5000
524288
65536
4
50
5000
524288
65536
4
51
5000
524288
65536
4
52
5000
524288
65536
4
Submit
Back to Top