Submission #905143

#TimeUsernameProblemLanguageResultExecution timeMemory
905143LudisseyRobot Contest (IOI23_robot)C++17
25 / 100
113 ms6016 KiB
#include "robot.h" #include <bits/stdc++.h> using namespace std; void program_pulibot() { // H W S E N //start for (int H = -2; H <= 2; H++) { for (int W = -2; W <= 2; W++) { for (int S = -2; S <= 2; S++) { for (int E = -2; E <= 2; E++) { for (int N = -2; N <= 2; N++) { int c=1; char dir='E'; if(S==-2&&E==-2) dir='T'; else if(E==0) dir='E'; else if(N==0) dir='N'; else if(S==0) dir='S'; else if(W==0) dir='W'; else{ c=2; if(E==1) dir='E'; else if(N==1) dir='N'; else if(S==1) dir='S'; else if(W==1) dir='W'; } vector<int> s(5); s[0]=H; s[1]=W; s[2]=S; s[3]=E; s[4]=N; set_instruction(s, c, dir); } } } } } }
#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...