QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#553854#7613. Inverse Problemucup-team1876TL 1ms3648kbC++205.6kb2024-09-08 21:22:392024-09-08 21:22:39

详细

Test #1:

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

input:

4
2
360
1
509949433

output:

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

result:

ok OK (4 test cases)

Test #2:

score: -100
Time Limit Exceeded

input:

9
185396120
468170792
837583517
696626231
338497514
762842660
800028852
928391161
733524004

output:

14
1 5
2 6
3 7
4 8
5 9
6 10
7 11
8 12
9 13
10 13
11 14
12 14
13 14
122
1 103
2 104
3 105
4 106
5 107
6 108
7 108
8 109
9 109
10 110
11 110
12 111
13 111
14 111
15 112
16 112
17 112
18 113
19 113
20 113
21 114
22 114
23 114
24 114
25 115
26 115
27 115
28 115
29 116
30 116
31 116
32 116
33 116
34 117
...

result: