Submission #1241504

#TimeUsernameProblemLanguageResultExecution timeMemory
1241504mychecksedad로봇 대회 (IOI23_robot)C++17
16 / 100
67 ms5580 KiB
#include "robot.h" #include<bits/stdc++.h> using namespace std; #define vi vector<int> #define pii pair<int,int> #define ff first #define ss second char lt = 'W'; char rt = 'E'; char up = 'N'; char down = 'S'; char T = 'T'; char stay = 'H'; // left down right up void add(int col, vi tp, vi tp2, vi tp3, vi tp4, int res_col, char res){ for(int x: tp){ for(int y: tp2){ for(int z: tp3){ for(int tt: tp4){ set_instruction({col, x, y, z, tt}, res_col, res); } } } } } void program_pulibot(){ vi all = {0, -1, -2, 1}; vi non_zero = {-1, -2, 1}; vi zero = {0}; vi border = {-2}; vi block = {-1}; vi closed = {-1, -2}; // vi one = {1}; add(0, all, all, zero, all, 1, rt); add(0, all, zero, closed, non_zero, 1, down); add(0, all, non_zero, block, zero, 1, up); add(0, all, border, border, all, 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...