제출 #1286687

#제출 시각아이디문제언어결과실행 시간메모리
1286687MMihalevRobot Contest (IOI23_robot)C++20
0 / 100
35 ms7448 KiB
#include "robot.h" void program_pulibot() { for(int west=-2;west<=1;west++) { for(int south=-2;south<=1;south++) { for(int east=-2;east<=1;east++) { for(int north=-2;north<=1;north++) { if(west==0 && south!=0 && east!=0 && north!=0) { set_instruction({0,west,south,east,north},1,'W'); } if(west!=0 && south==0 && east!=0 && north!=0) { set_instruction({0,west,south,east,north},1,'S'); } if(west!=0 && south!=0 && east==0 && north!=0) { set_instruction({0,west,south,east,north},1,'E'); } if(west!=0 && south!=0 && east!=0 && north==0) { set_instruction({0,west,south,east,north},1,'N'); } if(west!=0 && south!=0 && east!=0 && north!=0) { set_instruction({0,west,south,east,north},1,'T'); } } } } } return; for(int f1=-2;f1<=1;f1++) { for(int f2=-1;f2<=1;f2++) { set_instruction({0,f1,f2,0,-2},1,'E'); } } for(int f1=-2;f1<=1;f1++) { for(int f2=-1;f2<=1;f2++) { set_instruction({0,f1,f2,-1,-2},1,'S'); set_instruction({0,f1,f2,-2,-2},1,'S'); } } for(int f1=-2;f1<=1;f1++) { for(int f2=-1;f2<=1;f2++) { set_instruction({0,f1,-2,0,f2},1,'E'); set_instruction({0,f1,-2,-1,f2},1,'N'); } } for(int f1=-1;f1<=1;f1++) { for(int f2=-1;f2<=1;f2++) { set_instruction({0,f1,-2,-2,f2},1,'T'); } } return; //set_instruction({0, -2, -1, 0, -2}, 1, 'E'); //set_instruction({0, 1, -1, 0, -2}, 1, 'E'); //set_instruction({0, 1, 0, -2, -2}, 1, 'S'); //set_instruction({0, -1, -2, -2, 1}, 1, 'T'); set_instruction({0,-2,0,0,-2},1,'E'); set_instruction({0,-2,-1,0,-2},1,'E'); set_instruction({0,-2,0,-1,-2},1,'S'); set_instruction({0,1,0,0,-2},1,'E'); set_instruction({0,1,-1,0,-2},1,'E'); set_instruction({0,1,0,-1,-2},1,'S'); set_instruction({0,1,0,-2,-2},1,'S'); for(int f1=-2;f1<=1;f1++) { for(int f2=-1;f2<=1;f2++) { set_instruction({0,f1,-2,0,f2},1,'E'); } } ///set_instruction({0,(1/0/-1/-2),-2,0,(0/1/-1)},1,'E'); for(int f1=-1;f1<=1;f1++) { for(int f2=-1;f2<=1;f2++) { set_instruction({0,f1,-2,-2,f2},1,'T'); } } ///set_instruction({0,(1/0/-1),-2,-2,(1/0/-1)},1,'T'); //set_instruction({0,1,0,0,-2},1,'E'); //set_instruction({0,1,0,-2,-2},1,'S'); //set_instruction({0,0,0,-2,1},1,'S'); //set_instruction({0,0,-2,-2,1},1,'T'); }
#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...