제출 #1017583

#제출 시각아이디문제언어결과실행 시간메모리
1017583tmarcinkevicius로봇 대회 (IOI23_robot)C++17
16 / 100
93 ms5716 KiB
#include<bits/stdc++.h> using namespace std; #include "robot.h" typedef pair<int, int> pii; #define f first #define s second void program_pulibot() { vector<int> S(5); vector<pair<int, char>> directions = { {3, 'E'}, {2, 'S'}, {4, 'N'}, {1, 'W'}}; for (S[0] = 0; S[0] <= 1; S[0]++) { for (S[1] = -2; S[1] <= 1; S[1]++) { for (S[2] = -2; S[2] <= 1; S[2]++) { for (S[3] = -2; S[3] <= 1; S[3]++) { for (S[4] = -2; S[4] <= 1; S[4]++) { if (S[2] == -2 && S[3] == -2) { set_instruction(S, 1, 'T'); continue; } bool isSet = false; for (pair<int, char> p : directions) { if (S[p.f] == 0) { isSet = true; set_instruction(S, 1, p.s); break; } } if (isSet) continue; for (pair<int, char> p : directions) { if (S[p.f] == 1) { set_instruction(S, 0, p.s); break; } } } } } } } }
#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...