QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#524653#2193. Cactus Revengeahihi1234WA 0ms3880kbC++142.9kb2024-08-19 22:29:262024-08-19 22:29:27

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3812kb

input:

5
2 2 3 2 1

output:

5
2 1 2
2 1 4
2 2 3
2 3 5
2 3 4

result:

ok ok, n = 5

Test #2:

score: 0
Accepted
time: 0ms
memory: 3668kb

input:

4
3 3 2 2

output:

-1

result:

ok ok, n = 4

Test #3:

score: 0
Accepted
time: 0ms
memory: 3648kb

input:

6
1 2 1 1 2 1

output:

-1

result:

ok ok, n = 6

Test #4:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

15
1 4 3 2 2 2 2 2 4 4 2 2 2 2 2

output:

18
2 1 3
2 2 3
2 2 4
2 2 9
2 2 5
2 3 4
2 5 9
2 6 10
2 6 7
2 7 10
2 8 9
2 8 15
2 9 10
2 10 11
2 11 12
2 12 13
2 13 14
2 14 15

result:

ok ok, n = 15

Test #5:

score: 0
Accepted
time: 0ms
memory: 3880kb

input:

2
1 1

output:

1
2 1 2

result:

ok ok, n = 2

Test #6:

score: 0
Accepted
time: 0ms
memory: 3648kb

input:

3
1 1 1

output:

-1

result:

ok ok, n = 3

Test #7:

score: 0
Accepted
time: 0ms
memory: 3648kb

input:

3
1 1 2

output:

2
2 1 3
2 2 3

result:

ok ok, n = 3

Test #8:

score: 0
Accepted
time: 0ms
memory: 3588kb

input:

3
1 2 2

output:

-1

result:

ok ok, n = 3

Test #9:

score: 0
Accepted
time: 0ms
memory: 3664kb

input:

3
2 2 2

output:

3
2 1 2
2 1 3
2 2 3

result:

ok ok, n = 3

Test #10:

score: 0
Accepted
time: 0ms
memory: 3836kb

input:

4
2 1 2 1

output:

3
2 2 3
2 3 1
2 1 4

result:

ok ok, n = 4

Test #11:

score: 0
Accepted
time: 0ms
memory: 3592kb

input:

4
1 1 1 3

output:

3
2 1 4
2 2 4
2 3 4

result:

ok ok, n = 4

Test #12:

score: 0
Accepted
time: 0ms
memory: 3804kb

input:

4
2 1 2 3

output:

4
2 1 3
2 1 4
2 2 4
2 3 4

result:

ok ok, n = 4

Test #13:

score: 0
Accepted
time: 0ms
memory: 3660kb

input:

4
2 2 2 2

output:

4
2 1 2
2 1 4
2 2 3
2 3 4

result:

ok ok, n = 4

Test #14:

score: 0
Accepted
time: 0ms
memory: 3544kb

input:

5
4 2 2 2 2

output:

6
2 1 2
2 1 3
2 1 4
2 1 5
2 2 3
2 4 5

result:

ok ok, n = 5

Test #15:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

6
2 1 2 3 2 4

output:

7
2 1 6
2 1 3
2 2 4
2 3 6
2 4 5
2 4 6
2 5 6

result:

ok ok, n = 6

Test #16:

score: 0
Accepted
time: 0ms
memory: 3640kb

input:

10
5 2 2 2 2 5 2 2 2 2

output:

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

result:

ok ok, n = 10

Test #17:

score: 0
Accepted
time: 0ms
memory: 3804kb

input:

6
2 5 2 2 1 2

output:

7
2 1 2
2 1 3
2 2 5
2 2 3
2 2 4
2 2 6
2 4 6

result:

ok ok, n = 6

Test #18:

score: 0
Accepted
time: 0ms
memory: 3652kb

input:

8
3 3 4 1 2 1 2 2

output:

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

result:

ok ok, n = 8

Test #19:

score: 0
Accepted
time: 0ms
memory: 3868kb

input:

8
3 2 4 2 2 3 2 2

output:

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

result:

ok ok, n = 8

Test #20:

score: 0
Accepted
time: 0ms
memory: 3664kb

input:

20
2 2 1 1 4 2 2 7 1 4 2 1 4 2 2 2 4 3 6 2

output:

-1

result:

ok ok, n = 20

Test #21:

score: -100
Wrong Answer
time: 0ms
memory: 3668kb

input:

20
2 2 2 2 3 2 1 3 2 2 1 2 2 3 4 2 5 6 4 4

output:

27
2 1 8
2 1 2
2 2 8
2 3 15
2 3 4
2 4 15
2 5 8
2 5 6
2 5 17
2 6 17
2 6 8
2 7 14
2 9 18
2 9 10
2 10 18
2 11 17
2 12 18
2 12 13
2 13 18
2 14 19
2 14 15
2 15 19
2 16 20
2 16 17
2 17 20
2 18 19
2 18 20
2 19 20

result:

wrong answer incorrect degree of vertex 6: expected 2, found 3