Submission #1112980

#TimeUsernameProblemLanguageResultExecution timeMemory
1112980jerzykRobot Contest (IOI23_robot)C++17
6 / 100
111 ms5752 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 <= 3; ++a) for(int i = -2; i <= 3; ++i) for(int j = -2; j <= 3; ++j) for(int k = -2; k <= 3; ++k) for(int l = -2; l <= 3; ++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(((j == -2 && k == -2) || (j == 1 || k == 1)) && i > 0) { set_instruction({a, i, j, k, l}, 1, 'W'); continue; } if(((j == -2 && k == -2) || (j == 1 || k == 1)) && l > 0) { set_instruction({a, i, j, k, l}, 1, '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(i > 0) { set_instruction({a, i, j, k, l}, 0, 'W'); continue; } if(l > 0) { set_instruction({a, i, j, k, l}, 0, 'N'); 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...