QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#391061#4884. Battleship: New Ruleszaozao_zmxWA 14ms19952kbC++143.8kb2024-04-16 12:54:562024-04-16 12:54:56

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 3ms
memory: 19684kb

input:

2
3
1
4
1
1
0
1
0
0
0
1
1
0
0
0
1
0
1
1
1

output:

! -1 -1
? 1 1
? 1 2
? 1 3
? 1 4
? 2 1
? 2 2
? 2 3
? 2 4
? 3 1
? 3 2
? 3 3
? 3 4
? 4 1
? 4 2
? 4 3
? 4 4
! 2 2

result:

ok max_C=4.00, avg_C=2.00 (2 test cases)

Test #2:

score: 0
Accepted
time: 14ms
memory: 19624kb

input:

100
4
1
1
0
1
0
0
0
1
1
0
0
0
1
0
1
1
1
4
1
1
0
1
0
0
0
1
1
0
0
0
1
0
1
1
1
4
1
0
1
1
1
0
0
0
0
0
0
1
1
1
0
1
1
4
1
0
1
1
1
0
0
0
0
0
0
1
1
1
0
1
1
4
1
1
0
1
0
0
0
1
1
0
0
0
1
0
1
1
1
4
1
1
0
1
0
0
0
1
1
0
0
0
1
0
1
1
1
4
1
1
0
1
0
0
0
1
1
0
0
0
1
0
1
1
1
4
1
0
1
1
1
0
0
0
0
0
0
1
1
1
0
1
1
4
1
0
1
...

output:

? 1 1
? 1 2
? 1 3
? 1 4
? 2 1
? 2 2
? 2 3
? 2 4
? 3 1
? 3 2
? 3 3
? 3 4
? 4 1
? 4 2
? 4 3
? 4 4
! 2 2
? 1 1
? 1 2
? 1 3
? 1 4
? 2 1
? 2 2
? 2 3
? 2 4
? 3 1
? 3 2
? 3 3
? 3 4
? 4 1
? 4 2
? 4 3
? 4 4
! 2 2
? 1 1
? 1 2
? 1 3
? 1 4
? 2 1
? 2 2
? 2 3
? 2 4
? 3 1
? 3 2
? 3 3
? 3 4
? 4 1
? 4 2
? 4 3
? 4 4
...

result:

ok max_C=4.00, avg_C=4.00 (100 test cases)

Test #3:

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

input:

100
10
1
0
0
0
0
0
0
1
0
1
0
0
0
1
1
0
1
1
0
1
0
0
0
1
1
0
1
1
1
0
0
1
1
1
1
1
0
0
0
0
1
1
1
1
1
10
1
0
1
0
1
0
1
0
1
1
1
0
1
0
1
0
0
1
0
1
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
0
1
1
1
1
1
10
1
0
1
0
1
0
0
0
0
1
0
0
0
0
1
0
1
0
0
0
0
1
1
1
0
0
0
0
1
1
1
1
1
1
0
0
0
0
1
1
1
1
1
10
1
0
1
0
1
0
1
1
0
1
1
1
1
...

output:

? 1 5
? 2 5
? 3 5
? 4 5
? 5 5
? 6 5
? 7 5
? 8 5
? 9 5
? 10 5
? 5 1
? 5 2
? 5 3
? 5 4
? 5 6
? 5 7
? 5 8
? 1 3
? 2 3
? 3 3
? 4 3
? 6 3
? 7 3
? 8 3
? 3 1
? 3 2
? 3 4
? 3 6
? 4 1
? 4 2
? 4 4
? 4 6
? 6 1
? 6 2
? 6 4
? 6 6
? 7 1
? 7 2
? 7 4
? 7 6
? 8 1
? 8 2
? 8 4
? 8 6
! 4 2
? 1 5
? 2 5
? 3 5
? 4 5
? 5 5...

result:

ok max_C=4.40, avg_C=4.15 (100 test cases)

Test #4:

score: 0
Accepted
time: 4ms
memory: 19696kb

input:

100
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
49
1
4...

output:

! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1 -1
! -1...

result:

ok max_C=0.00, avg_C=0.00 (100 test cases)

Test #5:

score: -100
Wrong Answer
time: 10ms
memory: 19952kb

input:

100
50
1
0
1
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
1
0
0
0
1
0
1
0
1
1
1
0
1
0
1
1
1
1
0
1
0
1
0
1
0
0
0
1
0
1
1
1
1
1
1
1
0
1
0
1
0
1
0
1
0
1
1
0
1
0
1
0
0
0
1
1
1
0
1
0
1
1
1
1
1
1
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
1
0
1
0
1
0
1
0
0
0
0
1
0
0
0
1
0
1
0
1
0
0
0
0
0
0
0
0
1
0
0
0
1
1
0
1
0
0
0
0
0...

output:

? 1 25
? 2 25
? 3 25
? 4 25
? 5 25
? 6 25
? 7 25
? 8 25
? 9 25
? 10 25
? 11 25
? 12 25
? 13 25
? 14 25
? 15 25
? 16 25
? 17 25
? 18 25
? 19 25
? 20 25
? 21 25
? 22 25
? 23 25
? 24 25
? 25 25
? 26 25
? 27 25
? 28 25
? 29 25
? 30 25
? 31 25
? 32 25
? 33 25
? 34 25
? 35 25
? 36 25
? 37 25
? 38 25
? 39 ...

result:

wrong output format Unexpected end of file - int32 expected (test case 3)