TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

本題是互動題,需要完成與可呼叫的函式都與題本所述相同,只是程式碼的開頭引入的標頭檔要改成 #include "lib2415.h",程式碼請勿輸入或輸出任何東西。如果你輸入了任何東西可能會導致各種不可預期的結果。(此處提供測試用所需的檔案

Output Format

Sample Input 1

6

Sample Output 1

Hints

Problem Source

111 學年度全國資訊學科能力競賽模擬賽

Subtasks

No. Testdata Range Constraints Score
1 0 範例測資 0
2 0~12 $r \leq 1000$ 5
3 0~19 $r \leq 2500$ 10
4 0~42 無額外限制 85

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 10000 524288 65536 1 2 3 4
1 10000 524288 65536 2 3 4
2 10000 524288 65536 2 3 4
3 10000 524288 65536 2 3 4
4 10000 524288 65536 2 3 4
5 10000 524288 65536 2 3 4
6 10000 524288 65536 2 3 4
7 10000 524288 65536 2 3 4
8 10000 524288 65536 2 3 4
9 10000 524288 65536 2 3 4
10 10000 524288 65536 2 3 4
11 10000 524288 65536 2 3 4
12 10000 524288 65536 2 3 4
13 10000 524288 65536 3 4
14 10000 524288 65536 3 4
15 10000 524288 65536 3 4
16 10000 524288 65536 3 4
17 10000 524288 65536 3 4
18 10000 524288 65536 3 4
19 10000 524288 65536 3 4
20 10000 524288 65536 4
21 10000 524288 65536 4
22 10000 524288 65536 4
23 10000 524288 65536 4
24 10000 524288 65536 4
25 10000 524288 65536 4
26 10000 524288 65536 4
27 10000 524288 65536 4
28 10000 524288 65536 4
29 10000 524288 65536 4
30 10000 524288 65536 4
31 10000 524288 65536 4
32 10000 524288 65536 4
33 10000 524288 65536 4
34 10000 524288 65536 4
35 10000 524288 65536 4
36 10000 524288 65536 4
37 10000 524288 65536 4
38 10000 524288 65536 4
39 10000 524288 65536 4
40 10000 524288 65536 4
41 10000 524288 65536 4
42 10000 524288 65536 4