QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#218080 | #7123. Robot Contest | hocky# | 0 | 209ms | 3856kb | C++14 | 3.0kb | 2023-10-17 18:10:11 | 2024-04-28 07:54:05 |
Judging History
answer
#include "robot.h"
using namespace std;
void program_pulibot(){
set_instruction({-1, -2, 0, 0, -2}, 1, 'E');
set_instruction({0, -2, -2, 0, 1}, 1, 'E');
set_instruction({0, -2, -1, 0, -2}, 1, 'E');
set_instruction({0, -2, -1, 0, 1}, 1, 'E');
set_instruction({0, -2, -1, 1, -1}, 2, 'E');
set_instruction({0, -2, 0, -1, -2}, 1, 'S');
set_instruction({0, -2, 0, -1, 1}, 1, 'S');
set_instruction({0, -2, 0, 0, -2}, 1, 'E');
set_instruction({0, -2, 0, 0, 1}, 1, 'E');
set_instruction({0, -2, 0, 1, -1}, 1, 'S');
set_instruction({0, -1, -2, -2, 1}, 1, 'T');
set_instruction({0, -1, -2, 0, 1}, 1, 'E');
set_instruction({0, -1, -1, 0, 1}, 1, 'E');
set_instruction({0, -1, -1, 1, -1}, 2, 'E');
set_instruction({0, -1, 0, -2, 1}, 1, 'S');
set_instruction({0, -1, 0, -1, 1}, 1, 'S');
set_instruction({0, -1, 0, 0, 1}, 1, 'E');
set_instruction({0, -1, 0, 1, -1}, 1, 'S');
set_instruction({0, -1, 0, 1, 0}, 1, 'N');
set_instruction({0, -1, 1, -1, -1}, 2, 'S');
set_instruction({0, -1, 1, -1, 0}, 1, 'N');
set_instruction({0, -1, 1, 0, -2}, 1, 'E');
set_instruction({0, -1, 1, 0, -1}, 1, 'E');
set_instruction({0, -1, 1, 0, 0}, 1, 'E');
set_instruction({0, 0, -2, -2, 1}, 1, 'T');
set_instruction({0, 0, -1, -2, 1}, 1, 'W');
set_instruction({0, 0, -1, -1, 1}, 1, 'W');
set_instruction({0, 0, -1, 0, 1}, 1, 'E');
set_instruction({0, 0, -1, 1, -1}, 1, 'W');
set_instruction({0, 0, -1, 1, 0}, 1, 'N');
set_instruction({0, 0, 0, -2, 1}, 1, 'W');
set_instruction({0, 0, 0, -1, 1}, 1, 'W');
set_instruction({0, 0, 0, 1, -1}, 1, 'W');
set_instruction({0, 0, 0, 1, 0}, 1, 'N');
set_instruction({0, 0, 1, -1, -1}, 1, 'W');
set_instruction({0, 0, 1, 0, -1}, 1, 'E');
set_instruction({0, 1, -2, -2, -1}, 1, 'T');
set_instruction({0, 1, -2, -2, 0}, 1, 'T');
set_instruction({0, 1, -2, -1, 0}, 1, 'N');
set_instruction({0, 1, -2, 0, -1}, 1, 'E');
set_instruction({0, 1, -2, 0, 0}, 1, 'E');
set_instruction({0, 1, -1, -1, -1}, 2, 'W');
set_instruction({0, 1, -1, -1, 0}, 1, 'N');
set_instruction({0, 1, -1, 0, -2}, 1, 'E');
set_instruction({0, 1, -1, 0, -1}, 1, 'E');
set_instruction({0, 1, -1, 0, 0}, 1, 'E');
set_instruction({0, 1, 0, -2, -2}, 1, 'S');
set_instruction({0, 1, 0, -2, -1}, 1, 'S');
set_instruction({0, 1, 0, -1, -2}, 1, 'S');
set_instruction({0, 1, 0, -1, -1}, 1, 'S');
set_instruction({0, 1, 0, -1, 0}, 1, 'N');
set_instruction({0, 1, 0, 0, -2}, 1, 'E');
set_instruction({1, -2, 0, 2, 1}, 1, 'S');
set_instruction({1, -1, 0, 2, 1}, 1, 'S');
set_instruction({1, -1, 1, -1, 2}, 2, 'S');
set_instruction({1, -1, 2, -2, 1}, 2, 'N');
set_instruction({1, 0, -1, 2, 1}, 1, 'W');
set_instruction({1, 0, 0, 1, 2}, 1, 'W');
set_instruction({1, 0, 1, 2, -1}, 1, 'W');
set_instruction({1, 1, -1, 2, -1}, 2, 'W');
set_instruction({1, 1, -1, 2, 0}, 1, 'N');
set_instruction({1, 1, -1, 2, 2}, 2, 'W');
set_instruction({1, 1, 2, -2, -1}, 2, 'W');
set_instruction({1, 2, -1, -2, 1}, 2, 'N');
set_instruction({1, 2, -1, 1, -1}, 2, 'E');
set_instruction({1, 2, 0, -1, 1}, 1, 'S');
set_instruction({1, 2, 0, 1, -1}, 1, 'S');
set_instruction({1, 2, 0, 1, 2}, 1, 'S');
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 0
Wrong Answer
time: 189ms
memory: 3856kb
input:
4 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 t
output:
p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp OK 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
wrong answer Unexpected state: [0, 0, 0, 1, 1]
Subtask #2:
score: 0
Wrong Answer
Test #9:
score: 10
Accepted
time: 197ms
memory: 3788kb
input:
2 15 0 1 0 0 0 1 0 0 0 1 0 1 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 t
output:
p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp OK 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok
Test #10:
score: 10
Accepted
time: 189ms
memory: 3792kb
input:
2 10 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 t
output:
p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp OK 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok
Test #11:
score: 10
Accepted
time: 186ms
memory: 3792kb
input:
2 15 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 1 1 0 1 0 0 1 1 0 t
output:
p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp OK 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok
Test #12:
score: 0
Wrong Answer
time: 192ms
memory: 3788kb
input:
2 15 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 1 0 1 0 0 0 0 1 1 1 1 1 0 t
output:
p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp OK 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
wrong answer Unexpected state: [0, 0, 1, 0, -2]
Subtask #3:
score: 0
Wrong Answer
Test #28:
score: 0
Wrong Answer
time: 209ms
memory: 3764kb
input:
15 15 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 1 1 1 1 1 0 1 1 0 1 0 1 1 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 0 1 1 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 1 0 1 0 0 0 1 0 1 0 0 1 0 0 0 0 0 0 0 1 1 1 0 0 0 1 0 0 1 1 1 1 0 0 1 0 0 0 1 1 0 1 0 1 0 ...
output:
p71c1rw3EvfjFcMVWG0EOedGbWDX5uUp OK 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
wrong answer Unexpected state: [0, 1, -2, -1, -1]
Subtask #4:
score: 0
Wrong Answer
Test #40:
score: 0
Wrong Answer
time: 196ms
memory: 3768kb
input:
15 15 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
wrong answer Unexpected state: [0, 1, 0, -1, 1]