Submission #842474

#TimeUsernameProblemLanguageResultExecution timeMemory
842474ItamarRobot Contest (IOI23_robot)C++17
0 / 100
0 ms348 KiB
#include "robot.h" #include <cassert> #include <string> #include <fstream> #include <iostream> #include <sstream> #include <iomanip> #include <vector> using namespace std; #define vi vector<int> void program_pulibot() { /*set_instruction({0, -2, 0, 0, -2}, 1, 'S'); set_instruction({ 0, -2, 0, 0, 1 }, 1, 'S'); set_instruction({ 0, -2, -2, 0, 1 }, 1, 'E'); set_instruction({ 0, 1, -2, 0, 0 }, 1, 'E'); set_instruction({ 0, 1, -2, -2, 0 }, 1, 'T');*/ for (int i = -2; i < 20; i++) { for (int j = -2; j < 20; j++) { set_instruction({ 0,i,-2,-2,j }, 1, 'T'); } } for (int a = -2; a <= 6; a++) { for (int b = -2; b <= 6; b++) { for (int c = -2; c <= 6; c++) { for (int d = -2; d <= 6; d++) { for (int e = -2; e <= 6; e++) { vi v = {a,b,c,d,e}; if (c == -2 && d == -2)continue; else if (b == 0)set_instruction(v, 1, 'W'); else if (c == 0)set_instruction(v, 1, 'S'); else if (d == 0)set_instruction(v, 1, 'E'); else if (e == 0)set_instruction(v, 1, 'N'); else { //v,6 if (b == 1)set_instruction(v, 6, 'W'); if (c == 1)set_instruction(v, 6, 'S'); if (d == 1)set_instruction(v, 6, 'E'); if (e == 1)set_instruction(v, 6, 'N'); } } } } } } }
#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...