QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#800525#859. Civilizationsadam01WA 515ms7796kbC++172.9kb2024-12-06 12:21:412024-12-06 12:21:42

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1
2
1 2
3 4
1 1
2 2
6
2 2 1 1 -1 0
1 2 2 1 2 -1
2 1 3 0 1 -1
1 2 3 2 0 0
1 1 3 1 1 1
2 2 3 -1 -1 -1

output:

5 -7 -2 10 20 -10 

result:

ok 6 numbers

Test #2:

score: -100
Wrong Answer
time: 515ms
memory: 5740kb

input:

5000
13
58 69 -65 -29 -100 3 26 -29 73 -29 -93 33 73
-77 -76 69 19 -77 -61 59 -15 85 81 -20 73 72
60 -46 -100 -59 -79 -74 -94 41 -24 -28 -5 36 70
-49 -59 -11 44 26 38 -73 92 -16 -37 -84 86 90
-19 9 -30 19 -24 88 46 -80 98 -75 14 -77 55
-41 22 -71 -75 78 -97 9 -99 95 30 41 -30 72
-31 -15 14 99 -98 -1...

output:

42103747013412 35680188991650 -1000000000 -1000000000 -1000000000 -1000000000 39582599038173 38802048647760 5920723833015 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 56407046298711 71796328172997 -1000000000 -1000000000 -1000000000 54558344341357 -1000000000 62729528990520 -100000000...

result:

wrong answer 3rd numbers differ - expected: '-6713336103808', found: '-1000000000'