Toggle navigation
Bulletin
Problems
Submissions
Contests
Discuss
About
Rank
Sign in
Sign up
×
Close
2024 全國模擬賽題目上線啦 !!!!!
題目在
這裡
~
2023 全國模擬賽題目上線啦 !!!!!
題目在
這裡
~
2398 . 巨砲排球
Submit
Status
Discussion / Solution
Ranklist
Back to Problems List
TopCoder
User's AC Ratio
NaN% (
0/0
)
Submission's AC Ratio
NaN% (
0
/
0
)
Tags
Show solution-related tags
pre-nhspc-2024
全國模擬賽
Description
題目 PDF 檔在這裡
Input Format
Output Format
Sample Input 1
copy
2 1
0 1
2 2
Sample Output 1
copy
1
1 2
Sample Input 2
copy
5 2
0 0 4 0 3
2 3
Sample Output 2
copy
2
1 4 3 5 2
Sample Input 3
copy
10 0
0 0 0 0 0 0 0 0 0 0
2 1
Sample Output 3
copy
572637895
1 2 3 4 5 6 7 8 9 10
Hints
Problem Source
113 學年度全國資訊學科能力競賽模擬賽
Subtasks
No.
Testdata Range
Constraints
Score
1
0~2
範例測資
0
2
0~5
$N \leq 10 $
8
3
6~8
$M = 0, N \leq 3000$
15
4
0~13
$N \leq 3000$
17
5
6~8, 14~18
$M = 0$
25
6
0~23
無額外限制
35
Testdata and Limits
No.
Time Limit (ms)
Memory Limit (VSS, KiB)
Output Limit (KiB)
Subtasks
0
1000
524288
65536
1
2
4
6
1
1000
524288
65536
1
2
4
6
2
1000
524288
65536
1
2
4
6
3
1000
524288
65536
2
4
6
4
1000
524288
65536
2
4
6
5
1000
524288
65536
2
4
6
6
1000
524288
65536
3
4
5
6
7
1000
524288
65536
3
4
5
6
8
1000
524288
65536
3
4
5
6
9
1000
524288
65536
4
6
10
1000
524288
65536
4
6
11
1000
524288
65536
4
6
12
1000
524288
65536
4
6
13
1000
524288
65536
4
6
14
1000
524288
65536
5
6
15
1000
524288
65536
5
6
16
1000
524288
65536
5
6
17
1000
524288
65536
5
6
18
1000
524288
65536
5
6
19
1000
524288
65536
6
20
1000
524288
65536
6
21
1000
524288
65536
6
22
1000
524288
65536
6
23
1000
524288
65536
6
Submit
Back to Top