제출 #1242592

#제출 시각아이디문제언어결과실행 시간메모리
1242592urosk로봇 대회 (IOI23_robot)C++20
15 / 100
66 ms5704 KiB
#include "robot.h" #include "bits/stdc++.h" #define pb push_back #define popb pop_back #define fi first #define sc second #define si(a_) (ll)(a_.size()) #define all(a_) a_.begin(),a_.end() #define here cerr<<"========================================\n" #define dbg(X_) cerr<<#X_<<": "<<X_<<endl; #define ceri(a_,l_,r_) {for(ll i_=l_;i_<=r_;i_++) cerr<<a_[i_]<<" ";cerr<<endl;} using namespace std; using ll = int; void program_pulibot() { ll z = 2; vector<char> ch = {'.','W','S','E','N'}; for(ll w = -2;w<=z;w++){ for(ll s = -2;s<=z;s++){ for(ll e = -2;e<=z;e++){ for(ll n = -2;n<=z;n++){ for(ll g = 0;g<=z;g++){ vector<ll> st = {g,w,s,e,n}; if(e==-2&&s==-2){ set_instruction(st,1,'T'); continue; } if(g<=2){ for(ll i = 1;i<=4;i++){ if(st[i]==0){ set_instruction(st,1,ch[i]); goto lol; } } for(ll i = 1;i<=4;i++){ if(st[i]==1){ set_instruction(st,2,ch[i]); goto lol; } } lol:; } } } } } } }
#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...