QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#259716#3498. Modern ArtGMBox90 56ms30472kbC++171.3kb2023-11-21 11:48:572023-11-21 11:48:58

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 10
Accepted
time: 0ms
memory: 3600kb

input:

4
2 2 3 0
2 7 3 7
2 7 7 7
0 0 0 0

output:

14

result:

ok single line: '14'

Test #2:

score: 0
Wrong Answer
time: 0ms
memory: 3824kb

input:

4
0 0 0 0
0 1 1 0
0 1 1 0
0 0 0 0

output:

16

result:

wrong answer 1st lines differ - expected: '15', found: '16'

Test #3:

score: 10
Accepted
time: 0ms
memory: 3624kb

input:

5
0 0 0 0 0
0 1 0 2 0
0 1 0 2 0
0 1 0 2 0
0 0 0 0 0

output:

25

result:

ok single line: '25'

Test #4:

score: 10
Accepted
time: 1ms
memory: 3896kb

input:

50
584 584 584 584 584 584 584 584 584 584 584 584 584 584 2217 2217 2217 2217 1541 1541 1541 1541 1541 2452 2452 2452 2452 2452 2452 2217 2217 2217 2217 1331 1331 1331 1331 1331 1331 1331 1331 1196 1196 1196 1196 974 974 769 769 769
584 584 584 584 584 477 477 477 477 477 477 477 477 477 477 477 47...

output:

2478

result:

ok single line: '2478'

Test #5:

score: 10
Accepted
time: 3ms
memory: 4344kb

input:

200
584 36517 36517 19537 15367 15367 15367 15367 15367 15367 18241 18241 18241 18241 18241 18241 12945 12945 19697 19697 19697 19697 19697 19697 19697 19697 19697 38353 38353 38353 38353 19697 19697 19697 19697 19697 19697 19697 19697 19697 5937 5937 18322 18322 18322 18322 18322 18322 18322 18322 ...

output:

39929

result:

ok single line: '39929'

Test #6:

score: 10
Accepted
time: 10ms
memory: 7696kb

input:

400
115340 115340 115340 115340 153903 153903 153903 153903 153903 153903 153903 65992 117035 117035 117035 117035 117035 117035 117035 117035 117035 117035 117035 117035 117035 117035 117035 117035 117035 117035 117035 117035 117035 117035 117035 117035 117035 117035 117035 117035 117035 117035 117...

output:

159930

result:

ok single line: '159930'

Test #7:

score: 10
Accepted
time: 19ms
memory: 13156kb

input:

600
248987 62675 62675 62675 62675 183207 183207 183207 183207 183207 183207 183207 183207 183207 183207 183207 230283 230283 130344 130344 130344 130344 130344 130344 130344 130344 130344 130344 130344 130344 130344 130344 130344 130344 130344 130344 130344 130344 130344 130344 130344 130344 130344...

output:

359882

result:

ok single line: '359882'

Test #8:

score: 10
Accepted
time: 37ms
memory: 20748kb

input:

800
76498 76498 76498 76498 76498 76498 76498 514010 514010 514010 514010 514010 514010 514010 514010 514010 514010 514010 23198 23198 23198 23198 194520 194520 194520 194520 194520 194520 194520 194520 194520 194520 194520 194520 194520 194520 194520 194520 194520 194520 194520 194520 194520 194520...

output:

639891

result:

ok single line: '639891'

Test #9:

score: 10
Accepted
time: 56ms
memory: 30472kb

input:

1000
828425 708745 708745 708745 711451 711451 711451 437694 437694 437694 437694 442609 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 48737 4...

output:

999866

result:

ok single line: '999866'

Test #10:

score: 10
Accepted
time: 48ms
memory: 30472kb

input:

1000
187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 187340 1...

output:

999501

result:

ok single line: '999501'