TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

2
2
?1
8
100?0?1?

Sample Output 1

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