QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#386884#7613. Inverse Problemucup-team150WA 5833ms4104kbC++236.7kb2024-04-11 21:00:292024-04-11 21:00:31

详细

Test #1:

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

input:

4
2
360
1
509949433

output:

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

result:

ok OK (4 test cases)

Test #2:

score: -100
Wrong Answer
time: 5833ms
memory: 4104kb

input:

9
185396120
468170792
837583517
696626231
338497514
762842660
800028852
928391161
733524004

output:

14
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
11 1
12 1
13 2
14 10
122
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
10 11
11 12
12 13
13 14
14 15
15 16
16 17
17 18
18 19
19 20
21 1
22 1
23 1
24 1
25 1
26 1
27 1
28 2
29 2
30 2
31 2
32 3
33 3
34 3
35 4
36 4
37 4
38 5
39 5
40 6
41 6
42 7
43 7
44 8
45 9
46 10
47 16
4...

result:

wrong answer Jury znalazło mniejsze drzewo! (test case 6)