제출 #1113086

#제출 시각아이디문제언어결과실행 시간메모리
1113086jerzyk로봇 대회 (IOI23_robot)C++17
16 / 100
123 ms5960 KiB
#include <bits/stdc++.h> #include "robot.h" using namespace std; #define pb push_back #define st first #define nd second typedef long long ll; typedef long double ld; const ll I = 1000'000'000'000'000'000LL; const int II = 2'000'000'000; const ll M = 1000'000'007LL; const int N = 1000'007; int tab[N]; void program_pulibot() { for(int a = 0; a <= 4; ++a) for(int i = -2; i <= 4; ++i) for(int j = -2; j <= 4; ++j) for(int k = -2; k <= 4; ++k) for(int l = -2; l <= 4; ++l) { if(((j == -2 && k == -2) || (j == 1 || k == 1)) && i == -2 && l == -2) { set_instruction({a, i, j, k, l}, 1, 'T'); continue; } if(a != 1 && ((j == -2 && k == -2) || (j == 1 || k == 1))) { set_instruction({a, i, j, k, l}, 1, 'H'); continue; } if(a == 1) { if(a == 1 && j > 1) { set_instruction({a, i, j, k, l}, 1, 'S'); continue; } if(a == 1 && k > 1) { set_instruction({a, i, j, k, l}, 1, 'E'); continue; } if(i > 0) set_instruction({a, i, j, k, l}, 1, 'W'); else set_instruction({a, i, j, k, l}, 1, 'N'); continue; } if(i == 1 || i == 4 || l == 1 || l == 4) { if(k > 1) { set_instruction({a, i, j, k, l}, 4, 'E'); continue; } if(j > 1) { set_instruction({a, i, j, k, l}, 4, 'S'); continue; } if(i == 1 || i == 4) set_instruction({a, i, j, k, l}, 0, 'W'); else set_instruction({a, i, j, k, l}, 0, 'N'); continue; } if(a == 0 && j == 0) { set_instruction({a, i, j, k, l}, 2, 'S'); continue; } if(a <= 2 && k == 0) { set_instruction({a, i, j, k, l}, 3, 'E'); continue; } if(l == 2) { set_instruction({a, i, j, k, l}, 3, 'N'); continue; } if(i == 3) { set_instruction({a, i, j, k, l}, 3, 'W'); continue; } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...