QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#443669#8581. 섬HuangHanSheng6 3ms4128kbC++203.3kb2024-06-15 16:15:302024-06-15 16:15:32

詳細信息

Subtask #1:

score: 6
Accepted

Test #1:

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

input:

4
0 2

output:

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

result:

ok Correct

Test #2:

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

input:

3

output:

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

result:

ok Correct

Test #3:

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

input:

4
3 1

output:

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

result:

ok Correct

Test #4:

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

input:

5
1 4
1 3

output:

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

result:

ok Correct

Subtask #2:

score: 0
Time Limit Exceeded

Test #5:

score: 8
Accepted
time: 1ms
memory: 4128kb

input:

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

output:

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

result:

ok Correct

Test #6:

score: 8
Accepted
time: 3ms
memory: 3984kb

input:

1000
10 919
10 561
10 671
10 430
10 425
10 987
10 608
10 401
10 467
10 850
10 207
10 99
10 864
10 907
10 590
10 410
10 3
10 236
10 546
10 455
10 694
10 651
10 193
10 295
10 910
10 929
10 151
10 157
10 869
10 453
10 587
10 800
10 988
10 832
10 7
10 723
10 172
10 628
10 432
10 527
10 702
10 328
10 895...

output:

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

result:

ok Correct

Test #7:

score: 0
Time Limit Exceeded

input:

5000
3653 4458
3653 4383
3653 1303
3653 3306
3653 3218
3653 2614
3653 4321
3653 959
3653 2749
3653 3926
3653 3679
3653 2498
3653 163
3653 1980
3653 3542
3653 1300
3653 4388
3653 4971
3653 3012
3653 711
3653 103
3653 3179
3653 4304
3653 4387
3653 1526
3653 4202
3653 3989
3653 810
3653 4756
3653 4029
...

output:

Unauthorized output

result:


Subtask #3:

score: 0
Time Limit Exceeded

Test #10:

score: 0
Time Limit Exceeded

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:

Unauthorized output

result:


Subtask #4:

score: 0
Time Limit Exceeded

Dependency #1:

100%
Accepted

Test #19:

score: 21
Accepted
time: 1ms
memory: 3896kb

input:

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

output:

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

result:

ok Correct

Test #20:

score: 0
Time Limit Exceeded

input:

4999
3847 3851
3126 3142
1188 300
4756 4752
526 484
928 930
3288 3297
1628 1603
2089 2091
2619 2643
2471 2481
1709 1718
1222 1266
3245 3235
31 35
3009 3306
4609 4612
3366 3362
3715 3813
550 545
630 692
3581 3584
3715 3713
747 743
1191 1205
4289 4286
469 467
3879 3876
168 170
520 518
1890 1888
4515 4...

output:

Unauthorized output

result:


Subtask #5:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

0%