QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#219092#7613. Inverse Problemucup-team1878#AC ✓20974ms366328kbC++2012.8kb2023-10-19 00:20:182023-10-19 00:20:19

详细

Test #1:

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

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: 20974ms
memory: 354564kb

input:

9
185396120
468170792
837583517
696626231
338497514
762842660
800028852
928391161
733524004

output:

14
11 9
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 20
22 20
23 20
24 20
25 20
26 20
27 20
28 20
29 20
30 20
31 20
32 20
33 20
34 20
35 20
36 18
37 19
38 20
39 1
40 18
41 19
42 20
43 1
44 18
45 19
46 20
47 1
48 18
49 19
50 20
51 1
52 17
53 18
54 19
55 20
56 1
57 17
58 18
59 19
60 20...

result:

ok OK (9 test cases)

Test #3:

score: 0
Accepted
time: 20776ms
memory: 366328kb

input:

10
338497514
733524004
447182954
415993605
453460670
50499055
648088551
986982752
907925397
315315230

output:

124
15 14
16 13
17 14
18 13
19 14
20 13
21 14
22 13
23 14
24 13
25 14
26 13
27 14
28 1
29 13
30 14
31 1
32 13
33 14
34 1
35 13
36 14
37 1
38 13
39 14
40 1
41 13
42 14
43 1
44 13
45 14
46 1
47 13
48 14
49 1
50 12
51 13
52 14
53 1
54 12
55 13
56 14
57 1
58 12
59 13
60 14
61 1
62 11
63 12
64 13
65 14
6...

result:

ok OK (10 test cases)

Test #4:

score: 0
Accepted
time: 3714ms
memory: 65140kb

input:

10
1
2
3
4
5
6
7
8
9
10

output:

1
2
1 2
102
16 15
17 15
18 15
19 15
20 15
21 14
22 15
23 14
24 15
25 14
26 15
27 14
28 15
29 14
30 15
31 1
32 14
33 15
34 1
35 14
36 15
37 1
38 14
39 15
40 1
41 13
42 14
43 15
44 1
45 12
46 13
47 14
48 15
49 1
50 11
51 12
52 13
53 14
54 15
55 1
56 11
57 12
58 13
59 14
60 15
61 1
62 10
63 11
64 12
65...

result:

ok OK (10 test cases)

Test #5:

score: 0
Accepted
time: 1036ms
memory: 25332kb

input:

10
269199917
392009324
753889928
751355133
472639410
132096559
331333826
40414701
72847302
475706026

output:

55
2 1
3 1
4 1
5 1
6 1
7 1
8 1
9 1
10 1
11 1
12 1
13 1
14 1
15 1
16 1
17 1
18 1
19 1
20 1
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 1
38 1
39 1
40 1
41 1
42 1
43 1
44 1
45 1
46 1
47 1
48 1
49 1
50 1
51 1
52 1
53 1
54 1
1 55
84
36 35
37 35
38 1
39 25
40 26
41 ...

result:

ok OK (10 test cases)

Extra Test:

score: 0
Extra Test Passed