TopCoder

tmwilliamlin
我的中文很爛

User's AC Ratio

87.7% (50/57)

Submission's AC Ratio

34.9% (99/284)

Tags

Description

Input Format

Output Format

Hints

範測有誤,輸入範例1和2第一行第二個數字應該各減少一。

Problem Source

Problem Set / Description by Paupière
建國中學105學年度北市賽模擬賽pE

Subtasks

No. Testdata Range Score
1 0~4 10
2 0~9 10
3 0~14 10
4 0~19 35
5 0~24 35

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 3000 524288 262144 1 2 3 4 5
1 3000 524288 262144 1 2 3 4 5
2 3000 524288 262144 1 2 3 4 5
3 3000 524288 262144 1 2 3 4 5
4 3000 524288 262144 1 2 3 4 5
5 3000 524288 262144 2 3 4 5
6 3000 524288 262144 2 3 4 5
7 3000 524288 262144 2 3 4 5
8 3000 524288 262144 2 3 4 5
9 3000 524288 262144 2 3 4 5
10 3000 524288 262144 3 4 5
11 3000 524288 262144 3 4 5
12 3000 524288 262144 3 4 5
13 3000 524288 262144 3 4 5
14 3000 524288 262144 3 4 5
15 3000 524288 262144 4 5
16 3000 524288 262144 4 5
17 3000 524288 262144 4 5
18 3000 524288 262144 4 5
19 3000 524288 262144 4 5
20 3000 524288 262144 5
21 3000 524288 262144 5
22 3000 524288 262144 5
23 3000 524288 262144 5
24 3000 524288 262144 5