QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#253013#4941. Tree Beautyucup-team026#TL 2ms13936kbC++234.1kb2023-11-16 16:35:002023-11-16 16:35:00

详细

Test #1:

score: 100
Accepted
time: 2ms
memory: 13936kb

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: 0ms
memory: 13828kb

input:

1 1

2 1

output:

0

result:

ok single line: '0'

Test #3:

score: -100
Time 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: