Submission #1068266

#TimeUsernameProblemLanguageResultExecution timeMemory
1068266parsadox2Robot Contest (IOI23_robot)C++17
16 / 100
132 ms5720 KiB
#include "robot.h" #include <bits/stdc++.h> using namespace std; void program_pulibot() { for(int a = 0 ; a <= 2 ; a++) for(int b = -2 ; b <= 2 ; b++) for(int c = -2 ; c <= 2 ; c++) for(int d = -2 ; d <= 2 ; d++) for(int e = -2 ; e <= 2 ; e++) { vector <int> vec = {a , b , c , d , e}; if(a == 0) { //cout << a << " " << b << " " << c << " " << d << " " << e set_instruction(vec , 1 , 'H'); continue; } if(c == -2 && d == -2) { set_instruction(vec , 1 , 'T'); continue; } if(c != 0 && d != 0) { if(b == 1) set_instruction(vec , 2 , 'W'); else if(e == 1) set_instruction(vec , 2 , 'N'); continue; } if(c == 0) { set_instruction(vec , 1 , 'S'); continue; } else if(d == 0) { set_instruction(vec , 1 , 'E'); } } }
#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...