TopCoder

User's AC Ratio

84.6% (11/13)

Submission's AC Ratio

57.1% (24/42)

Description

Input Format

Output Format

Sample Input

Sample Output

Hints

Problem Source

Problem Set / Description by Yihda Yol
建國中學105學年度北市賽模擬賽pC

Subtasks

For Testdata: 0 ~ 3, Score: 20
For Testdata: 0 ~ 7, Score: 20
For Testdata: 0 ~ 13, Score: 30
For Testdata: 0 ~ 17, Score: 30
No. Time Limit (ms) Memory Limit (KiB) Output Limit (KiB)
0 5000 524288 262144
1 5000 524288 262144
2 5000 524288 262144
3 5000 524288 262144
4 5000 524288 262144
5 5000 524288 262144
6 5000 524288 262144
7 5000 524288 262144
8 5000 524288 262144
9 5000 524288 262144
10 5000 524288 262144
11 5000 524288 262144
12 5000 524288 262144
13 5000 524288 262144
14 5000 524288 262144
15 5000 524288 262144
16 5000 524288 262144
17 5000 524288 262144