QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#74379#4884. Battleship: New RuleswlxhkkRE 20ms3580kbC++141.4kb2023-01-31 22:36:032023-01-31 22:36:05

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

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

result:

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

Test #2:

score: 0
Accepted
time: 20ms
memory: 3540kb

input:

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

output:

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

result:

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

Test #3:

score: -100
Runtime Error

input:

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

output:

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

result: