QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#140073#4970. Panda Hunting Treasure BoxZhangYiDeAC ✓15ms5176kbC++203.5kb2023-08-15 02:56:482023-08-15 02:56:52

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5 6 1 1 55
0 1 0 1 0 0
1 0 1 0 1 0
1 1 1 1 1 0
10 0 1 0 0 1
9 1 0 0 0 1

output:

1

result:

ok single line: '1'

Test #2:

score: 0
Accepted
time: 1ms
memory: 3528kb

input:

5 6 1 1 56
0 1 0 1 0 0
1 0 1 0 1 0
1 1 1 1 1 0
10 0 1 0 0 1
9 1 0 0 0 1

output:

9

result:

ok single line: '9'

Test #3:

score: 0
Accepted
time: 1ms
memory: 3572kb

input:

5 6 1 1 57
0 1 0 1 0 0
1 0 1 0 1 0
1 1 1 1 1 0
10 0 1 0 0 1
9 1 0 0 0 1

output:

10

result:

ok single line: '10'

Test #4:

score: 0
Accepted
time: 1ms
memory: 3532kb

input:

15 15 15 15 167
1 1 1 1 1 1 1 1 1 1 1 1 1 1 10
1 0 1 1 1 1 1 1 1 1 1 1 1 1 1
0 8 0 1 1 1 1 1 1 1 1 1 1 1 1
0 1 1 0 1 1 1 1 1 1 1 1 1 1 1
0 1 1 1 0 1 1 1 1 1 1 1 1 1 1
0 1 1 1 1 0 1 1 1 1 1 1 1 1 1
0 1 1 0 1 1 0 1 1 1 1 1 1 1 1
0 1 0 1 0 1 1 0 1 1 1 1 1 1 1
0 1 0 1 0 1 1 1 0 1 1 1 1 1 1
0 1 0 1 0 1 1...

output:

8

result:

ok single line: '8'

Test #5:

score: 0
Accepted
time: 0ms
memory: 3548kb

input:

15 15 15 15 168
1 1 1 1 1 1 1 1 1 1 1 1 1 1 10
1 0 1 1 1 1 1 1 1 1 1 1 1 1 1
0 8 0 1 1 1 1 1 1 1 1 1 1 1 1
0 1 1 0 1 1 1 1 1 1 1 1 1 1 1
0 1 1 1 0 1 1 1 1 1 1 1 1 1 1
0 1 1 1 1 0 1 1 1 1 1 1 1 1 1
0 1 1 0 1 1 0 1 1 1 1 1 1 1 1
0 1 0 1 0 1 1 0 1 1 1 1 1 1 1
0 1 0 1 0 1 1 1 0 1 1 1 1 1 1
0 1 0 1 0 1 1...

output:

9

result:

ok single line: '9'

Test #6:

score: 0
Accepted
time: 0ms
memory: 3484kb

input:

15 15 15 15 167
1 1 1 1 1 1 1 1 1 1 1 1 1 1 10
1 0 1 1 1 1 1 1 1 1 1 1 1 1 1
0 8 0 1 1 1 1 1 1 1 1 1 1 1 1
0 1 1 0 1 1 1 1 1 1 1 1 1 1 1
0 1 1 1 0 1 1 1 1 1 1 1 1 1 1
0 1 1 1 1 0 1 1 1 1 1 1 1 1 1
0 1 1 0 1 1 0 1 1 1 1 1 1 1 1
0 1 0 1 0 1 1 0 1 1 1 1 1 1 1
0 1 0 1 0 1 1 1 0 1 1 1 1 1 1
0 1 0 1 0 1 1...

output:

9

result:

ok single line: '9'

Test #7:

score: 0
Accepted
time: 9ms
memory: 5160kb

input:

500 500 95 150 10000
0 58912 45590 0 0 192022 6994 0 0 41256 153046 45791 98549 127884 244227 0 245616 77457 192184 0 129119 0 167953 0 0 37088 0 203269 218664 74293 215709 0 0 51320 146726 0 0 214633 202212 18885 197243 0 5864 231206 0 11712 188086 217785 242998 105703 189476 0 0 165813 197237 6842...

output:

246966

result:

ok single line: '246966'

Test #8:

score: 0
Accepted
time: 15ms
memory: 5176kb

input:

500 500 71 53 100
21481 159368 0 222763 181074 232082 0 0 0 227783 88926 185665 0 0 45032 216675 212780 98492 0 130666 135352 0 163811 0 117590 0 205233 223037 0 55233 117666 149034 191640 114330 184730 209724 0 65132 0 0 240862 180945 196500 223779 0 143351 216862 0 169944 207453 249638 0 0 247890 ...

output:

249725

result:

ok single line: '249725'

Test #9:

score: 0
Accepted
time: 15ms
memory: 5152kb

input:

500 500 1 1 100000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

16742

result:

ok single line: '16742'

Test #10:

score: 0
Accepted
time: 15ms
memory: 5168kb

input:

500 500 1 1 10000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1750

result:

ok single line: '1750'