QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#728511 | #9570. Binary Tree | ucup-team1817# | TL | 129ms | 5196kb | C++23 | 8.5kb | 2024-11-09 15:19:06 | 2024-11-09 15:19:09 |
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: 3920kb
input:
2 5 0 0 1 5 2 4 0 0 0 0 1 0 2 0 2 0 0 2
output:
? 3 1 ? 2 5 ! 2 ? 1 2 ! 2
result:
ok OK (2 test cases)
Test #2:
score: 0
Accepted
time: 129ms
memory: 5196kb
input:
5555 8 2 0 8 6 0 0 3 0 0 0 7 0 0 0 5 4 0 2 0 8 0 0 1 4 2 0 0 0 7 8 0 0 3 0 6 0 2 2 0 8 5 8 0 0 1 7 0 0 0 0 4 2 0 0 6 0 2 1 0 5 4 5 3 1 0 0 0 0 0 0 1 0 8 0 0 0 0 5 6 0 0 1 4 2 0 3 8 0 0 1 1 5 3 0 5 1 0 0 0 0 4 0 0 2 5 5 0 0 0 0 0 3 0 2 4 1 0 3 3 0 1 0 0 0 2 2 2 0 0 0 2 3 2 3 0 0 0 0 1 10 2 8 9 7 0 0 ...
output:
? 8 1 ? 5 4 ? 4 3 ! 4 ? 2 7 ? 7 8 ? 8 6 ! 8 ? 3 8 ? 2 8 ? 6 4 ! 6 ? 5 2 ? 1 4 ! 1 ? 7 5 ? 3 2 ! 6 ? 5 1 ? 5 4 ! 4 ? 4 1 ? 5 2 ! 5 ? 3 2 ! 2 ? 1 2 ! 2 ? 2 3 ! 1 ? 7 1 ? 3 7 ? 6 4 ! 6 ? 1 2 ! 2 ? 5 9 ? 8 5 ? 3 4 ! 3 ? 3 10 ? 2 8 ? 10 8 ! 8 ? 3 9 ? 9 1 ? 2 7 ! 7 ? 1 2 ! 2 ? 3 4 ? 1 7 ! 4 ? 4 9 ? 8 4 ? ...
result:
ok OK (5555 test cases)
Test #3:
score: 0
Accepted
time: 79ms
memory: 4052kb
input:
600 2 2 0 0 0 2 3 2 0 3 0 0 0 2 4 4 0 1 0 0 0 3 0 0 0 5 4 0 0 0 1 0 2 0 3 0 2 0 6 4 0 6 0 2 0 5 0 0 0 1 0 2 0 7 7 0 3 0 6 0 5 0 2 0 1 0 0 0 0 1 8 7 0 0 0 2 0 8 0 1 0 5 0 3 0 6 0 2 2 2 9 7 0 4 0 2 0 1 0 0 0 8 0 9 0 5 0 6 0 2 0 0 10 9 0 6 0 8 0 7 0 0 0 10 0 2 0 4 0 5 0 1 0 0 2 2 11 2 0 10 0 6 0 9 0 0 ...
output:
? 1 2 ! 2 ? 1 3 ! 3 ? 4 2 ? 4 3 ! 4 ? 4 3 ? 3 5 ! 3 ? 4 6 ? 6 3 ! 6 ? 2 6 ? 4 2 ! 5 ? 7 5 ? 5 8 ? 8 4 ! 4 ? 1 9 ? 8 9 ? 8 5 ! 8 ? 2 10 ? 7 8 ? 8 3 ! 3 ? 2 9 ? 8 4 ? 9 4 ! 9 ? 6 1 ? 4 2 ? 4 11 ! 4 ? 2 3 ? 8 10 ? 3 8 ! 3 ? 9 12 ? 11 8 ? 8 3 ! 3 ? 2 14 ? 15 8 ? 8 13 ! 12 ? 8 13 ? 10 14 ? 14 12 ? 12 4 !...
result:
ok OK (600 test cases)
Test #4:
score: -100
Time Limit Exceeded
input:
2 99999 21832 0 77205 0 62668 0 58313 0 14640 0 76941 0 62678 0 8464 0 43145 0 26195 0 46140 0 83205 0 40047 0 81645 0 27077 0 92036 0 14236 0 3576 0 15430 0 75654 0 29049 0 62218 0 83318 0 1116 0 77861 0 9755 0 49236 0 70959 0 62295 0 33580 0 88208 0 55840 0 71061 0 24695 0 88831 0 1891 0 57285 0 9...
output:
? 70790 43991 ? 36882 98065 ? 17626 87676 ? 23816 44703 ? 44123 980 ? 61196 90504 ? 11034 54094 ? 34051 63621 ? 26980 79154 ? 55857 22501 ? 15747 28077 ? 6347 11240 ? 3606 73643 ? 23041 69763 ? 57777 87879 ? 15747 57777 ! 57777 ? 5676 85780 ? 39704 57748 ? 42043 58489 ? 50842 30188 ? 24131 36012 ? 1...