제출 #1062693

#제출 시각아이디문제언어결과실행 시간메모리
1062693dimashhh로봇 대회 (IOI23_robot)C++17
0 / 100
1 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(d[0] == 1 && 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; } } if(s[1] == 1) { set_instruction(s,f[1],2); return; } } 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...