Toggle navigation
Bulletin
Problems
Submissions
Contests
Discuss
About
Rank
Sign in
Sign up
×
Close
NTUCPC Speed Run! #1
比賽已結束,感謝大家的參與!
題目連結
IOICamp 2025 PreExam 進行中!
IOICamp 官網
、
PreExam 連結
程式解題社網站
程式解題社網站
上線了!
456 . 典型的 IOI 題目
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
ytp
ytp-senior
ytp-2024
Description
題目 PDF 檔在這裡
Input Format
Output Format
Sample Input 1
copy
2
2
?1
8
100?0?1?
Sample Output 1
copy
249561090
522444260
Hints
Problem Source
YTP 2024 高中組程式挑戰營 p15
Subtasks
No.
Testdata Range
Constraints
Score
1
0
範例測資
0
2
0~11
在⼀筆輸入檔案中,所有測試資料的 $N$ 的總和 $\leq 400$
10
3
0~23
無額外限制
10
Testdata and Limits
No.
Time Limit (ms)
Memory Limit (VSS, KiB)
Output Limit (KiB)
Subtasks
0
2000
1048576
65536
1
2
3
1
2000
1048576
65536
2
3
2
2000
1048576
65536
2
3
3
2000
1048576
65536
2
3
4
2000
1048576
65536
2
3
5
2000
1048576
65536
2
3
6
2000
1048576
65536
2
3
7
2000
1048576
65536
2
3
8
2000
1048576
65536
2
3
9
2000
1048576
65536
2
3
10
2000
1048576
65536
2
3
11
2000
1048576
65536
2
3
12
2000
1048576
65536
3
13
2000
1048576
65536
3
14
2000
1048576
65536
3
15
2000
1048576
65536
3
16
2000
1048576
65536
3
17
2000
1048576
65536
3
18
2000
1048576
65536
3
19
2000
1048576
65536
3
20
2000
1048576
65536
3
21
2000
1048576
65536
3
22
2000
1048576
65536
3
23
2000
1048576
65536
3
Submit
Back to Top