QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#390935 | #4884. Battleship: New Rules | zaozao_zmx | TL | 7ms | 19616kb | C++14 | 2.0kb | 2024-04-16 08:50:45 | 2024-04-16 08:50:50 |
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: 7ms
memory: 19616kb
input:
2 3 1 4 1 1 0 1 1 0 0 0 0 0 0 1 1
output:
! -1 -1 ? 1 1 ? 1 2 ? 1 3 ? 1 4 ? 3 1 ? 3 2 ? 3 3 ? 3 4 ? 2 1 ? 2 2 ? 2 3 ? 2 4 ! 2 2
result:
ok max_C=3.00, avg_C=1.50 (2 test cases)
Test #2:
score: 0
Accepted
time: 7ms
memory: 19596kb
input:
100 4 1 1 0 1 1 0 0 0 0 0 0 1 1 4 1 1 0 1 1 0 0 0 0 0 0 1 1 4 1 0 1 1 0 0 0 1 1 0 0 0 1 4 1 0 1 1 0 0 0 1 1 0 0 0 1 4 1 1 0 1 1 0 0 0 0 0 0 1 1 4 1 1 0 1 1 0 0 0 0 0 0 1 1 4 1 1 0 1 1 0 0 0 0 0 0 1 1 4 1 0 1 1 0 0 0 1 1 0 0 0 1 4 1 0 1 1 0 0 0 1 1 0 0 0 1 4 1 0 1 1 0 0 0 1 1 0 0 0 1 4 1 0 1 1 0 0 0 ...
output:
? 1 1 ? 1 2 ? 1 3 ? 1 4 ? 3 1 ? 3 2 ? 3 3 ? 3 4 ? 2 1 ? 2 2 ? 2 3 ? 2 4 ! 2 2 ? 1 1 ? 1 2 ? 1 3 ? 1 4 ? 3 1 ? 3 2 ? 3 3 ? 3 4 ? 2 1 ? 2 2 ? 2 3 ? 2 4 ! 2 2 ? 1 1 ? 1 2 ? 1 3 ? 1 4 ? 3 1 ? 3 2 ? 3 3 ? 3 4 ? 2 1 ? 2 2 ? 2 3 ? 2 4 ! 2 2 ? 1 1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