QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#387784#4884. Battleship: New Rules_map_TL 1ms4072kbC++177.9kb2024-04-12 20:17:502024-04-12 20:17:52

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3764kb

input:

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

output:

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

result:

ok max_C=1.75, avg_C=0.88 (2 test cases)

Test #2:

score: 0
Accepted
time: 0ms
memory: 4072kb

input:

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

output:

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

result:

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

Test #3:

score: -100
Time Limit Exceeded

input:

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

output:

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

result: