QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#219075#7613. Inverse Problemucup-team1878#TL 77411ms224376kbC++2011.4kb2023-10-18 23:41:122023-10-18 23:41:13

詳細信息

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: 77411ms
memory: 224376kb

input:

9
185396120
468170792
837583517
696626231
338497514
762842660
800028852
928391161
733524004

output:

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

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: