제출 #1013915

#제출 시각아이디문제언어결과실행 시간메모리
1013915bachhoangxuan로봇 대회 (IOI23_robot)C++17
15 / 100
95 ms5728 KiB
#include "robot.h" #include<bits/stdc++.h> using namespace std; void program_pulibot() { for(int a=-2;a<=4;a++) for(int b=-2;b<=4;b++) for(int c=-2;c<=4;c++) for(int d=-2;d<=4;d++){ char s; if(b==-2 && c==-2) s='H'; else{ if(a==0) s='W'; else if(b==0) s='S'; else if(c==0) s='E'; else if(d==0) s='N'; else s='H'; } set_instruction({0,a,b,c,d},1,s); } for(int a=-2;a<=4;a++) for(int b=-2;b<=4;b++) for(int c=-2;c<=4;c++) for(int d=-2;d<=4;d++){ if(b==-2 && c==-2){ set_instruction({1,a,b,c,d},1,'T'); continue; } int x=1;char s='H'; if(a==0) s='W'; else if(b==0) s='S'; else if(c==0) s='E'; else if(d==0) s='N'; else{ x=2; if(a==1) s='W'; else if(b==1) s='S'; else if(c==1) s='E'; else if(d==1) s='N'; } set_instruction({1,a,b,c,d},x,s); } } /* 4 4 0 0 0 0 1 1 1 0 0 0 0 0 0 1 1 0 */
#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...