QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#445052#8581. 섬MaMengQi6 7ms4552kbC++201.7kb2024-06-15 23:13:422024-06-15 23:13:43

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 6
Accepted

Test #1:

score: 6
Accepted
time: 1ms
memory: 3884kb

input:

4
0 2

output:

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

result:

ok Correct

Test #2:

score: 6
Accepted
time: 0ms
memory: 4084kb

input:

3

output:

1
3
0 1
1 2
2 3
2
3
2 0
0 3
3 1
1
0 1 2

result:

ok Correct

Test #3:

score: 6
Accepted
time: 1ms
memory: 3808kb

input:

4
3 1

output:

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

result:

ok Correct

Test #4:

score: 6
Accepted
time: 1ms
memory: 3792kb

input:

5
1 4
1 3

output:

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

result:

ok Correct

Subtask #2:

score: 0
Wrong Answer

Test #5:

score: 0
Wrong Answer
time: 1ms
memory: 3900kb

input:

10
7 0
7 5
7 3
7 1
7 9
7 4
7 2

output:

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

result:

wrong answer Wrong Answer, wrong operation

Subtask #3:

score: 0
Wrong Answer

Test #10:

score: 0
Wrong Answer
time: 7ms
memory: 4552kb

input:

5000
4593 3389
4593 1610
4593 2357
4593 3323
4593 2037
4593 3667
4593 2737
4593 2642
4593 3981
4593 2700
4593 2134
4593 1719
4593 1444
4593 3729
4593 1371
4593 546
4593 1249
4593 646
4593 4221
4593 1542
4593 2314
4735 4952
4593 680
4593 2555
4593 2152
4593 740
4593 4056
4593 64
4593 3079
4593 3021
4...

output:

1
7449
4592 4593
4591 4590
4590 4589
4589 4588
4588 4587
4587 4586
4586 4585
4585 4584
4584 4583
4583 4582
4582 4581
4581 4580
4580 4579
4579 4578
4578 4577
4577 4576
4576 4575
4575 4574
4574 4573
4573 4572
4572 4571
4571 4570
4570 4569
4569 4568
4568 4567
4567 4566
4566 4565
4565 4564
4564 4563
456...

result:

wrong answer Wrong Answer, size of the tree is too big

Subtask #4:

score: 0
Time Limit Exceeded

Dependency #1:

100%
Accepted

Test #19:

score: 0
Time Limit Exceeded

input:

10
0 2
6 0
4 2
0 5
6 9
6 8
0 4

output:

Unauthorized output

result:


Subtask #5:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

0%