QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#231450#7305. Lowest Common AncestorhouzhiyuanRE 1ms3484kbC++142.7kb2023-10-29 11:53:222023-10-29 11:53:22

詳細信息

Test #1:

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

input:

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

output:

1
2
1
3
5
4

result:

ok 6 numbers

Test #2:

score: -100
Runtime Error

input:

13
887 4555 8570 5485 8611 9500 295 2499 83 4959 9772 8620 3825
4 4 1 3 7 12 2 1 9 5 8 12
16
3405 9213 9243 8188 2733 1333 1614 4907 4256 7506 4228 1286 6121 6155 4082 8084
1 12 9 4 2 13 3 8 9 7 11 15 8 1 10
5
7183 1481 9468 8242 1044
1 5 5 1
3
5758 3693 1694
1 2
20
6683 4426 5616 8166 810 4265 3000...

output:


result: