QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#386897#7613. Inverse Problemucup-team150TL 42608ms13228kbC++236.4kb2024-04-11 21:08:382024-04-11 21:08:38

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3672kb

input:

4
2
360
1
509949433

output:

2
1 2
5
1 2
3 1
4 2
5 2
1
10
1 2
2 3
3 4
4 5
5 6
6 7
7 8
9 1
10 8

result:

ok OK (4 test cases)

Test #2:

score: 0
Accepted
time: 42608ms
memory: 13228kb

input:

9
185396120
468170792
837583517
696626231
338497514
762842660
800028852
928391161
733524004

output:

14
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
11 1
12 1
13 2
14 10
122
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
27 1
28 1
29 1
30 1
31 1
32 1
33 2
34 2
35 3
36 3
37 4
38 4
39 5
40 5
41 6
42 6
43 7
44 8
45 9
46 23
4...

result:

ok OK (9 test cases)

Test #3:

score: -100
Time Limit Exceeded

input:

10
338497514
733524004
447182954
415993605
453460670
50499055
648088551
986982752
907925397
315315230

output:


result: