QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#309959#4941. Tree BeautyZhaoZiLongWA 88ms41196kbC++203.1kb2024-01-20 23:11:222024-01-20 23:11:23

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 20120kb

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: 14096kb

input:

1 1

2 1

output:

0

result:

ok single line: '0'

Test #3:

score: -100
Wrong Answer
time: 88ms
memory: 41196kb

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:

1818724600
1818724600
1818724600
0
1845700277
1135632154
1845700277
1818037323
1845700277
1845700277
-1445131715
2088060769
812760766
526252800
-2134447644
1686323832
996135086
996135086
996135086
894942496
1917895529
-17929332
-1461570364
-1799018006
-535436966
1687781611
0
-1147543932
-1124228460
...

result:

wrong answer 4th lines differ - expected: '672469600', found: '0'