QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#219056#7613. Inverse Problemucup-team1878#TL 85888ms341492kbC++2011.2kb2023-10-18 23:07:112023-10-18 23:07:11

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 3528kb

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: 85888ms
memory: 341492kb

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 9
38 10
39 1
40 2
41 9
42 10
43 1
44 2
45 9
46 10
47 1
48 2
49 9
50 10
51 1
52 2
53 9
54 10
55 11
56 1
57 2
58 9
59 10
60 11
61 1
62 2
63 9
64 10
65 11
...

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: