QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#553902#7613. Inverse Problemucup-team1876ML 1ms3544kbC++205.0kb2024-09-08 22:38:492024-09-08 22:38:49

詳細信息

Test #1:

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

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
Memory 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: