QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#391013#4884. Battleship: New Ruleszaozao_zmxWA 20ms26536kbC++143.2kb2024-04-16 11:09:552024-04-16 11:09:57

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 13ms
memory: 26444kb

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

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: -100
Wrong Answer
time: 20ms
memory: 26536kb

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
1
0
1
1
0
0
0
1
0
0
1
1
0
0
0
1
1
0
0
0
0
1
1
1
1
1
1
1
10
1
0
1
0
1
0
1
1
0
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:

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