제출 #1135245

#제출 시각아이디문제언어결과실행 시간메모리
113524579brue로봇 대회 (IOI23_robot)C++20
10 / 100
83 ms5704 KiB
#include "robot.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; void set_instruction(int a, int b, int c, int d, int e, int z, char A){ set_instruction(vector<int> {a, b, c, d, e}, z, A); } void program_pulibot(){ for(int now=-2; now<=1; now++){ for(int l=-2; l<=1; l++){ for(int d=-2; d<=1; d++){ for(int r=-2; r<=1; r++){ for(int u=-2; u<=1; u++){ if(r==-2 && d==-2){ /// 마지막 칸 set_instruction(now, l, d, r, u, 1, 'T'); } else if(r < 0){ /// 오른쪽이 막힘 if(u==-2) set_instruction(now, l, d, r, u, 1, 'S'); else set_instruction(now, l, d, r, u, 1, 'N'); } else set_instruction(now, l, d, r, u, 1, 'E'); } } } } } }
#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...