QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#259717#3498. Modern ArtGMBox100 ✓52ms30472kbC++171.5kb2023-11-21 11:50:402023-11-21 11:50:40

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 10
Accepted
time: 0ms
memory: 3820kb

input:

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

output:

15

result:

ok single line: '15'

Test #3:

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

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

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: 0ms
memory: 4252kb

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

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: 14ms
memory: 13152kb

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: 31ms
memory: 20712kb

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: 47ms
memory: 30460kb

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: 52ms
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'