QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#502973#5624. Farey Sumsxiaowuc1100 ✓120ms46484kbJava82.3kb2024-08-03 15:40:522024-08-03 15:40:52

Details

Tip: Click on the bar to expand more detailed information

Pretests


Final Tests

Test #1:

score: 100
Accepted
time: 120ms
memory: 46484kb

input:

9999
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
10 11
11 12
12 13
13 14
14 15
15 16
16 17
17 18
18 19
19 20
20 21
21 22
22 23
23 24
24 25
25 26
26 27
27 28
28 29
29 30
30 31
31 32
32 33
33 34
34 35
35 36
36 37
37 38
38 39
39 40
40 41
41 42
42 43
43 44
44 45
45 46
46 47
47 48
48 49
49 50
50 51
51 52
52 53
...

output:

1 5/2
2 11/2
3 17/2
4 29/2
5 35/2
6 53/2
7 65/2
8 83/2
9 95/2
10 125/2
11 137/2
12 173/2
13 191/2
14 215/2
15 239/2
16 287/2
17 305/2
18 359/2
19 383/2
20 419/2
21 449/2
22 515/2
23 539/2
24 599/2
25 635/2
26 689/2
27 725/2
28 809/2
29 833/2
30 923/2
31 971/2
32 1031/2
33 1079/2
34 1151/2
35 1187/2
...

result:

ok 9999 lines