Submission #1058151

#TimeUsernameProblemLanguageResultExecution timeMemory
1058151TheQuantiXRobot Contest (IOI23_robot)C++17
25 / 100
124 ms5996 KiB
#include <bits/stdc++.h> #include "robot.h" using namespace std; using ll = long long; ll n, m, q, k, x, y, a, b, c, l; set< vector<int> > st; void set_any(vector<int> v, int z, int a) { // for (auto i : v) { // cout << i << ' '; // } // cout << endl; for (int i = 0; i < 5; i++) { if (v[i] == -3) { for (int j = -2; j <= 2; j++) { v[i] = j; set_any(v, z, a); } v[i] = -3; return; } if (v[i] == -4) { for (int j = -2; j <= -1; j++) { v[i] = j; set_any(v, z, a); } v[i] = 2; set_any(v, z, a); v[i] = -4; return; } } if (!st.count(v)) { set_instruction(v, z, a); st.insert(v); } } void program_pulibot() { set_any({-3, -3, -2, -2, -3}, 1, 'T'); set_any({-3, -3, -3, 0, -3}, 1, 'E'); set_any({-3, -3, 0, -3, -3}, 1, 'S'); set_any({-3, 1, -4, -4, -4}, 2, 'W'); set_any({-3, -4, -4, -4, 1}, 2, 'N'); set_any({-3, -3, -3, -3, 0}, 1, 'N'); set_any({-3, 0, 1, -4, -4}, 1, 'W'); set_any({-3, 0, -4, -4, 1}, 1, 'W'); set_any({-3, 0, -4, 1, -4}, 1, 'W'); set_any({-3, -4, 1, -4, -4}, 2, 'S'); set_any({-3, -4, -4, 1, -4}, 2, '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...