QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#219042#7613. Inverse Problemucup-team1878#TL 82029ms224172kbC++2011.7kb2023-10-18 22:54:282023-10-18 22:54:29

详细

Test #1:

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

input:

4
2
360
1
509949433

output:

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

result:

ok OK (4 test cases)

Test #2:

score: 0
Accepted
time: 82029ms
memory: 224172kb

input:

9
185396120
468170792
837583517
696626231
338497514
762842660
800028852
928391161
733524004

output:

14
11 1
12 6
13 1
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
10 14
122
21 1
22 1
23 1
24 1
25 1
26 1
27 1
28 1
29 1
30 1
31 1
32 1
33 1
34 1
35 1
36 1
37 10
38 11
39 1
40 2
41 10
42 11
43 1
44 2
45 10
46 11
47 1
48 2
49 10
50 11
51 1
52 2
53 3
54 10
55 11
56 1
57 2
58 3
59 10
60 11
61 1
62 2
63 3
64 10
65...

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: