Submission #1062703

#TimeUsernameProblemLanguageResultExecution timeMemory
1062703dimashhhRobot Contest (IOI23_robot)C++17
0 / 100
0 ms348 KiB
#include "robot.h" #include <bits/stdc++.h> using namespace std; int b[10]; const int d[] = {3,2,1,4}; char f[] = {'!','W','S','E','N'}; void go(int v) { if(v == 6) { vector<int> s; for(int i = 0;i < v;i++) { s.push_back(b[i]); } if(s[2] == -2 && s[3] == -2) { set_instruction(s,1,'T'); return; } for(int i:d) { if(s[i] == 0) { set_instruction(s,f[i],1); return; } } set_instruction(s,1,'W'); } else { for(int i = -2;i <= 2;i++) { b[v] = i; go(v + 1); } } } void program_pulibot() { go(0); }
#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...