TopCoder

User's AC Ratio

87.5% (7/8)

Submission's AC Ratio

46.9% (23/49)

Description

Input Format

Output Format

Sample Input

Sample Output

Hints

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

Problem Source

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

Subtasks

For Testdata: 0 ~ 4, Score: 10
For Testdata: 0 ~ 9, Score: 10
For Testdata: 0 ~ 14, Score: 10
For Testdata: 0 ~ 19, Score: 35
For Testdata: 0 ~ 24, Score: 35
No. Time Limit (ms) Memory Limit (KiB)
0 3000 524288
1 3000 524288
2 3000 524288
3 3000 524288
4 3000 524288
5 3000 524288
6 3000 524288
7 3000 524288
8 3000 524288
9 3000 524288
10 3000 524288
11 3000 524288
12 3000 524288
13 3000 524288
14 3000 524288
15 3000 524288
16 3000 524288
17 3000 524288
18 3000 524288
19 3000 524288
20 3000 524288
21 3000 524288
22 3000 524288
23 3000 524288
24 3000 524288