QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#483339#5629. Farey Sequence Lengthlmq26052003100 ✓25ms3784kbC++231.0kb2024-07-18 15:57:032024-07-18 15:57:03

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 25ms
memory: 3784kb

input:

10000
1 6
2 15
3 57
4 9999
5 5
6 2
7 7
8 8
9 9
10 10
11 11
12 12
13 13
14 14
15 3
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...

output:

1 13
2 73
3 1001
4 30393487
5 11
6 3
7 19
8 23
9 29
10 33
11 43
12 47
13 59
14 65
15 5
16 81
17 97
18 103
19 121
20 129
21 141
22 151
23 173
24 181
25 201
26 213
27 231
28 243
29 271
30 279
31 309
32 325
33 345
34 361
35 385
36 397
37 433
38 451
39 475
40 491
41 531
42 543
43 585
44 605
45 629
46 65...

result:

ok 10000 lines