QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#387784 | #4884. Battleship: New Rules | _map_ | TL | 1ms | 4072kb | C++17 | 7.9kb | 2024-04-12 20:17:50 | 2024-04-12 20:17:52 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
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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