#include "robot.h"
#include <bits/stdc++.h>
#define rep(a,b,c) for(int a=b; a<c; a++)
#define repr(a,b,c) for(int a=b-1; a>c-1; a--)
#define repa(a,b) for(auto a:b)
#define fi first
#define se second
#define pii pair<int, int>
#define pll pair<ll, ll>
#define ll long long
#define pb push_back
using namespace std;
//0 this, 1 west, 2 south, 3 east, 4 north;
void program_pulibot(){
set_instruction({0,-2,0,0,-2},1,'S');
set_instruction({0,-2,-1,0,-2},1,'E');
set_instruction({0,-2,0,-1,-2},1,'S');
set_instruction({1,-2,0,0,-2},1,'E');
set_instruction({0,-2,-2,0,1},1,'E');
set_instruction({0,-2,-2,-1,1},0,'N');
set_instruction({0,1,0,0,-2},1,'S');
set_instruction({1,1,0,0,-2},1,'E');
set_instruction({0,1,0,-1,-2},1,'S');
set_instruction({0,0,1,0,-2},1,'E');
set_instruction({0,-1,1,0,-2},1,'E');
set_instruction({0,1,-1,0,-2},1,'E');
set_instruction({0,1,-2,0,0},1,'E');
set_instruction({0,-1,-2,0,1},1,'E');
set_instruction({0,-1,-2,-1,1},0,'N');
set_instruction({0,1,-2,-1,1},1,'N');
set_instruction({0,1,-2,0,-1},1,'E');
set_instruction({0,1,0,-2,-2},1,'S');
set_instruction({0,1,-2,-2,0},1,'T');
set_instruction({0,1,-2,-2,-1},1,'T');
set_instruction({0,-1,-2,-2,1},1,'T');
set_instruction({0,-2,-2,-2,1},1,'T');
set_instruction({0,1,-2,-2,-2},1,'T');
set_instruction({0,-2,0,-2,-2},1,'S');
set_instruction({0,-2,0,0,1},1,'S');
set_instruction({0,-2,-2,-2,-2},1,'T');
/*
set_instruction({0,0,0,0,0},0,'S');
set_instruction({0,0,0,0,-2},0,'S');
set_instruction({0,0,0,-2,0},0,'S');
set_instruction({0,0,0,-2,-2},0,'S');
set_instruction({0,1,-2,0,0},1,'E');
set_instruction({0,1,-2,0,-2},1,'E');
set_instruction({0,1,-2,-2,0},1,'T');
set_instruction({0,1,-2,-2,-2},1,'T');
set_instruction({0,-2,0,0,1},1,'S');
set_instruction({0,-2,0,0,-2},1,'S');
set_instruction({0,-2,0,-1,-2},1,'S');
set_instruction({0,-2,-1,0,-2},1,'E');
set_instruction({0,-2,0,-2,1},1,'S');
set_instruction({0,-2,0,-2,-2},1,'S');
set_instruction({0,-2,-2,0,1},1,'E');
set_instruction({0,-2,-2,0,-2},1,'E');
set_instruction({0,-2,-2,-2,1},1,'T');
set_instruction({0,-2,-2,-2,-2},1,'T');
set_instruction({0,-2,-2,-1,1},0,'N');
set_instruction({0,-1,-2,-1,1},0,'N');
set_instruction({0,-1,-2,0,1},1,'E');
set_instruction({0,-1,-2,-2,1},0,'T');
set_instruction({0,1,-2,-2,-1},0,'T');
set_instruction({1,-2,0,0,-2},1,'E');
set_instruction({1,1,-1,0,-2},1,'E');
set_instruction({1,-1,1,0,-2},1,'E');
set_instruction({1,1,0,-1,-2},1,'S');*/
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
88 ms |
5456 KB |
Output is correct |
2 |
Incorrect |
88 ms |
5456 KB |
Unexpected state: [0, -2, 0, -1, 1] |
3 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
87 ms |
5584 KB |
Output is correct |
2 |
Correct |
88 ms |
5460 KB |
Output is correct |
3 |
Correct |
92 ms |
5492 KB |
Output is correct |
4 |
Correct |
92 ms |
5460 KB |
Output is correct |
5 |
Correct |
91 ms |
5456 KB |
Output is correct |
6 |
Correct |
89 ms |
5456 KB |
Output is correct |
7 |
Correct |
87 ms |
5456 KB |
Output is correct |
8 |
Correct |
93 ms |
5668 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
87 ms |
5584 KB |
Output is correct |
2 |
Correct |
88 ms |
5460 KB |
Output is correct |
3 |
Correct |
92 ms |
5492 KB |
Output is correct |
4 |
Correct |
92 ms |
5460 KB |
Output is correct |
5 |
Correct |
91 ms |
5456 KB |
Output is correct |
6 |
Incorrect |
91 ms |
5524 KB |
Unexpected state: [0, 1, -2, -1, 0] |
7 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
88 ms |
5456 KB |
Unexpected state: [0, -2, -1, -1, 1] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
87 ms |
5584 KB |
Output is correct |
2 |
Correct |
88 ms |
5460 KB |
Output is correct |
3 |
Correct |
92 ms |
5492 KB |
Output is correct |
4 |
Correct |
92 ms |
5460 KB |
Output is correct |
5 |
Correct |
91 ms |
5456 KB |
Output is correct |
6 |
Correct |
89 ms |
5456 KB |
Output is correct |
7 |
Correct |
87 ms |
5456 KB |
Output is correct |
8 |
Correct |
93 ms |
5668 KB |
Output is correct |
9 |
Correct |
88 ms |
5460 KB |
Output is correct |
10 |
Correct |
92 ms |
5784 KB |
Output is correct |
11 |
Incorrect |
89 ms |
5456 KB |
Unexpected state: [0, 1, -2, -1, 0] |
12 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
89 ms |
5620 KB |
Unexpected state: [0, -1, -1, 0, 1] |
2 |
Halted |
0 ms |
0 KB |
- |