QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#225403#4941. Tree Beautynew_dawn_2#RE 0ms9764kbC++174.3kb2023-10-24 16:55:232023-10-24 16:55:23

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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

input:

1 1

2 1

output:

0

result:

ok single line: '0'

Test #3:

score: -100
Runtime Error

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:

94289997912444
94289997912444
188578177738494
4442894025572164728
-2005221631376160059
2225395669795700704
-1217654081261384196
-4071763756958541699
2366555511494044688
2366649799674503364
-2758046357146562826
-2457271137812288551
2662456272333165212
-1705048720262749344
-3930773203090016607
2197799...

result: