QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#147443 | #6503. DFS Order 3 | ZhangYiDe | WA | 8ms | 3612kb | C++14 | 2.3kb | 2023-08-23 09:38:39 | 2023-08-25 01:31:17 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3416kb
input:
4 2 1 2 2 1 3 1 2 3 2 1 3 3 2 1 4 1 2 3 4 2 1 3 4 3 2 4 1 4 2 1 3 5 1 2 4 3 5 2 4 1 3 5 3 5 1 2 4 4 2 1 3 5 5 3 1 2 4
output:
1 2 1 2 3 2 1 2 3 2 4 2 1 2 2 4 3 5 3 1
result:
ok correct answer! (4 test cases)
Test #2:
score: -100
Wrong Answer
time: 8ms
memory: 3612kb
input:
20000 10 1 2 4 5 6 7 3 8 10 9 2 1 4 5 6 7 3 8 10 9 3 8 1 2 4 5 6 7 10 9 4 5 6 7 1 2 3 8 10 9 5 4 6 7 1 2 3 8 10 9 6 7 4 5 1 2 3 8 10 9 7 6 4 5 1 2 3 8 10 9 8 3 1 2 4 5 6 7 10 9 9 10 1 2 4 5 6 7 3 8 10 1 2 4 5 6 7 3 8 9 10 1 4 3 8 2 9 6 5 7 10 2 8 9 6 3 4 1 5 7 10 3 8 2 9 6 4 1 5 7 10 4 1 3 8 2 9 6 5...
output:
1 2 3 8 4 5 6 7 9 10 10 1 10 4 10 1 10 4 10 1 10 4 10 1 10 4 10 1 3 1 1 4 2 8 3 8 5 4 6 9 7 5 10 7 7 3 7 5 7 3 7 5 7 3 7 5 7 3 7 5 7 3 9 8 1 9 2 4 3 10 5 6 7 5 8 2 5 9 1 6 2 4 3 8 5 7 9 6 10 2 6 7 6 8 6 1 1 9 2 10 3 6 4 7 5 1 8 9 10 3 1 10 2 6 3 8 4 8 5 10 7 9 9 8 1 10 2 3 3 7 4 8 5 8 6 7 9 2 2 5 10...
result:
wrong answer your output is not a tree (test case 1)