제출 #958558

#제출 시각아이디문제언어결과실행 시간메모리
958558nguyentunglam로봇 대회 (IOI23_robot)C++17
16 / 100
109 ms5744 KiB
#include "robot.h" #ifdef ngu #include "grader.cpp" #endif // ngu #include<bits/stdc++.h> using namespace std; void program_pulibot() { for(int cur = 0; cur <= 2; cur++) for(int west = -2; west <= 2; west++) { for(int south = -2; south <= 2; south++) for(int east = -2; east <= 2; east++) for(int north = -2; north <= 2; north++) { vector<int> state = {cur, west, south, east, north}; if (east == -2 && south == -2 && cur == 0) { set_instruction(state, 1, 'T'); continue; } // if (north == -2 && west == -2 && cur == 0) { // set_instruction(state, 1, 'H'); // } if (east != 1 && south != 1) { if (east == 0) { set_instruction(state, 1, 'E'); } else if (south == 0) { set_instruction(state, 1, 'S'); } else { if (north == 1) set_instruction(state, 2, 'N'); else set_instruction(state, 2, 'W'); } } // if (cur == 1) { // } } } }
#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...