QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#386905#7613. Inverse Problemucup-team150AC ✓40156ms13948kbC++236.6kb2024-04-11 21:16:262024-04-11 21:16:27

详细

Test #1:

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

input:

4
2
360
1
509949433

output:

2
1 2
5
1 2
3 1
4 2
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: 0
Accepted
time: 35434ms
memory: 13872kb

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 9
13 10
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
20 21
21 22
22 23
23 24
24 25
25 26
27 1
28 1
29 1
30 2
31 2
32 3
33 3
34 4
35 4
36 5
37 5
38 6
39 7
40 8
41 22
42 22
43 22
44 22
45 22
4...

result:

ok OK (9 test cases)

Test #3:

score: 0
Accepted
time: 40156ms
memory: 13948kb

input:

10
338497514
733524004
447182954
415993605
453460670
50499055
648088551
986982752
907925397
315315230

output:

124
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
20 21
21 22
22 23
23 24
24 25
25 26
26 27
27 28
28 29
29 30
30 31
31 32
32 33
33 34
34 35
35 36
36 37
37 38
38 39
39 40
40 41
41 42
42 43
43 44
44 45
45 46
46 47
47 48
48 49
50 1
51 1
52 1
53 1
54 1
...

result:

ok OK (10 test cases)

Test #4:

score: 0
Accepted
time: 7491ms
memory: 4848kb

input:

10
1
2
3
4
5
6
7
8
9
10

output:

1
2
1 2
102
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
16 1
17 1
18 2
19 3
20 4
21 5
22 9
23 9
24 9
25 9
26 9
27 10
28 10
29 10
30 10
31 10
32 10
33 10
34 11
35 11
36 11
37 11
38 11
39 11
40 11
41 11
42 12
43 12
44 12
45 12
46 12
47 12
48 12
49 12
50 12
51 13
52 13
53 13
54 1...

result:

ok OK (10 test cases)

Test #5:

score: 0
Accepted
time: 2050ms
memory: 4156kb

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
55 1
84
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
...

result:

ok OK (10 test cases)

Extra Test:

score: 0
Extra Test Passed