QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#390989#4884. Battleship: New Ruleszaozao_zmxTL 13ms26340kbC++143.2kb2024-04-16 10:15:522024-04-16 10:15:54

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 13ms
memory: 24316kb

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 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