QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#88033#4970. Panda Hunting Treasure Boxxiaowuc1AC ✓25ms5444kbC++172.7kb2023-03-14 23:15:072023-03-14 23:15:11

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 2ms
memory: 3332kb

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

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: 2ms
memory: 3336kb

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: 2ms
memory: 3272kb

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

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

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: 25ms
memory: 5272kb

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: 20ms
memory: 5444kb

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: 6ms
memory: 5288kb

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'