QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505493#5890. Diamond Inheritancexiaowuc128 ✓15ms3636kbC++171.4kb2024-08-05 05:45:022024-08-05 05:45:03

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 14
Accepted

Test #1:

score: 14
Accepted
time: 1ms
memory: 3636kb

input:

50
24
0
2 11 19
2 15 22
0
0
1 23
2 8 6
0
0
0
0
2 14 16
0
0
0
2 4 24
2 18 7
0
2 9 20
2 13 21
2 10 3
2 1 17
0
2 5 2
24
0
0
2 14 9
1 6
0
1 10
0
2 2 23
2 7 8
0
2 4 6
0
0
0
2 13 11
2 5 22
0
0
2 1 16
2 12 15
2 24 20
2 18 21
2 17 19
0
24
1 2
0
2 11 5
1 8
1 7
2 23 1
0
0
0
1 14
1 7
2 13 4
1 8
0
1 9
0
1 16
2 ...

output:

Case #1: No
Case #2: Yes
Case #3: Yes
Case #4: No
Case #5: No
Case #6: Yes
Case #7: No
Case #8: Yes
Case #9: Yes
Case #10: No
Case #11: No
Case #12: Yes
Case #13: Yes
Case #14: No
Case #15: No
Case #16: Yes
Case #17: No
Case #18: Yes
Case #19: Yes
Case #20: Yes
Case #21: No
Case #22: No
Case #23: Ye...

result:

ok 50 lines

Subtask #2:

score: 14
Accepted

Test #2:

score: 14
Accepted
time: 15ms
memory: 3624kb

input:

50
500
2 307 484
0
0
2 160 454
0
2 494 402
0
2 441 464
0
0
0
0
0
0
0
0
0
2 12 352
2 381 286
0
2 346 305
2 86 116
2 282 174
2 391 21
2 431 179
0
0
2 47 144
0
2 122 387
2 329 388
2 3 412
0
2 327 265
2 471 118
2 156 64
0
2 485 254
0
0
0
0
2 9 25
2 54 288
2 214 500
0
0
2 29 309
0
0
0
0
2 446 393
0
0
2 6...

output:

Case #1: No
Case #2: Yes
Case #3: Yes
Case #4: No
Case #5: No
Case #6: Yes
Case #7: No
Case #8: Yes
Case #9: Yes
Case #10: Yes
Case #11: No
Case #12: Yes
Case #13: Yes
Case #14: No
Case #15: No
Case #16: Yes
Case #17: No
Case #18: Yes
Case #19: Yes
Case #20: Yes
Case #21: Yes
Case #22: Yes
Case #23:...

result:

ok 50 lines

Extra Test:

score: 0
Extra Test Passed