제출 #1066776

#제출 시각아이디문제언어결과실행 시간메모리
1066776Gromp15로봇 대회 (IOI23_robot)C++17
6 / 100
104 ms5616 KiB
#include <bits/stdc++.h> #include "robot.h" #define sz(x) (int)x.size() using namespace std; void program_pulibot() { set<vector<int>> vis; auto go = [&](vector<int> v, int col, char who, vector<int> repl) { auto dfs = [&](auto&& s, vector<int> cur, int on) -> void { if (on == 5) { if (vis.count(cur)) return; vis.insert(cur); set_instruction(cur, col, who); return; } if (v[on] == -3) { for (int p : repl) { cur[on] = p; s(s, cur, on+1); } } else s(s, cur, on+1); }; dfs(dfs, v, 0); }; go({0, -2, 0, -3, -3}, 1, 'S', {-2, 0, 1}); go({0, -3, -2, -2, -3}, 1, 'T', {-2, 0, 1}); go({0, -3, -2, -3, -3}, 1, 'E', {-2, 0, 1}); /* string ord = "WSEN"; */ }
#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...