QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#177002#6396. Puzzle: Kusabiucup-team1547#WA 14ms7124kbC++142.0kb2023-09-12 13:30:012023-09-12 13:30:02

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

8
2 1 -
3 1 -
4 2 Tong
5 2 Tong
6 3 Duan
7 3 -
8 7 Chang

output:

YES
4 5
6 8

result:

ok Correct.

Test #2:

score: 0
Accepted
time: 1ms
memory: 4312kb

input:

10
2 1 Duan
3 2 Duan
4 2 -
5 4 Chang
6 2 Chang
7 1 Duan
8 6 Tong
9 6 Tong
10 3 Chang

output:

YES
8 9
7 6
3 10
2 5

result:

ok Correct.

Test #3:

score: 0
Accepted
time: 1ms
memory: 4188kb

input:

2
2 1 Tong

output:

NO

result:

ok Correct.

Test #4:

score: -100
Wrong Answer
time: 14ms
memory: 7124kb

input:

100000
2 1 Duan
3 1 Duan
4 3 -
5 4 Duan
6 3 -
7 4 Duan
8 4 -
9 8 -
10 7 Duan
11 9 -
12 7 Duan
13 7 Duan
14 8 Duan
15 13 -
16 10 Duan
17 11 Duan
18 12 -
19 1 Duan
20 5 Duan
21 4 Duan
22 14 Duan
23 16 -
24 22 Duan
25 16 Duan
26 13 -
27 13 -
28 17 -
29 5 Duan
30 22 -
31 23 -
32 9 Duan
33 5 -
34 30 Duan...

output:

YES
61327 78961
28763 79617
27084 53651
32742 51469
61312 89153
23106 69766
52038 55428
27407 28273
38170 43808
5838 68444
87574 94709
96347 93722
51974 52496
22057 36066
66449 94066
2523 29726
37821 63660
83192 84795
1557 2217
14132 59851
18166 68973
22579 58447
93523 79376
47740 82028
22309 27814
...

result:

wrong answer Edge 27810-1780 used twice.