QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#333696#4941. Tree BeautyZhaoZiLongWA 112ms68944kbC++202.5kb2024-02-20 12:50:302024-02-20 12:50:30

详细

Test #1:

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

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

input:

1 1

2 1

output:

0

result:

ok single line: '0'

Test #3:

score: -100
Wrong Answer
time: 112ms
memory: 68944kb

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
672469600
2897885600
1987508600
2897885600
2760335000
2897885600
2897885600
7403713200
11137131600
7514187600
4383229800
19100548500
22773583200
15090370500
15297793500
14191537500
9074860148
12902554983
26557008900
24837132600
22267972000
27725935050
31286216000
745...

result:

wrong answer 5th lines differ - expected: '2920352548', found: '2897885600'