QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#134094#4941. Tree Beautytemp6ML 1ms15052kbC++232.1kb2023-08-03 01:30:072023-08-03 01:30:11

详细

Test #1:

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

input:

5 5
1 1 3 3
1 1 99 2
2 1
2 3
1 3 2 3
2 3

output:

245
97
99

result:

ok 3 lines

Test #2:

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

input:

1 1

2 1

output:

0

result:

ok single line: '0'

Test #3:

score: -100
Memory Limit Exceeded

input:

100000 100000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

output:


result: