제출 #852850

#제출 시각아이디문제언어결과실행 시간메모리
852850dranjohn로봇 대회 (IOI23_robot)C++17
16 / 100
111 ms5744 KiB
#include "robot.h" #include <bits/stdc++.h> using namespace std; // https://oj.uz/problem/view/IOI23_robot char dir(int left, int down, int right, int up) { if (right == -2 && down == -2) return 'T'; if (right == 0) return 'E'; if (down == 0) return 'S'; if (left == 0) return 'W'; if (up == 0) return 'N'; return 'T'; } void program_pulibot() { vector<int> states = { -2, -1, 0, 1 }; for (int l : states) for (int d : states) for (int r : states) for (int u : states) { set_instruction({ 0, l, d, r, u }, 1, dir(l, d, r, u)); } }
#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...