QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#353474#7613. Inverse Problemucup-team241#ML 31ms174464kbC++145.1kb2024-03-14 09:52:162024-03-14 09:52:17

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 31ms
memory: 174464kb

input:

4
2
360
1
509949433

output:

2
1 2
5
2 3
3 4
1 4
4 5
1
10
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
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
3 4
4 5
5 6
6 7
7 8
8 9
9 10
10 11
11 12
2 12
12 13
1 13
13 14

result: