제출 #1259171

#제출 시각아이디문제언어결과실행 시간메모리
1259171nicolo_010로봇 대회 (IOI23_robot)C++20
16 / 100
67 ms5704 KiB
#include <bits/stdc++.h>
#include "robot.h"
using namespace std;
template <typename T>
using v = vector<T>;
using ll = long long;
using pii = pair<int, int>;
#define rep(i, k, n) for (int i = k; i < n; i++)
#define set_instructions set_instruction
#define cout if(0) cout

map<v<int>, int> mp;
 
bool not_used(v<int> S) {
	bool can = !mp.count(S);
	mp[S] = 1;
	return can;
}

void program_pulibot() {
	v<int> S = {0, 0, -2, -2, 0};
	rep(i, -2, 4) {
		rep(j, -2, 4) {
			S[1] = i;
			S[4] =  j;
			if (not_used(S)) set_instructions(S, 1, 'T');
		}
	}
	S = {0, 0, 0, 0, 0};
	rep(i, -2, 4) {
		rep(j, -2, 4) {
			rep(k, -2, 4) {
				S[1] = i;
				S[2] = j;
				S[4] = k;
				if (not_used(S)) set_instructions(S, 1, 'E');
			}
		}
	}
	S = {0, 0, 0, 0, 0};
	rep(i, -2, 4) {
		rep(j, -2, 4) {
			rep(k, -2, 4) {
				S[1] = i;
				S[3] = j;
				S[4] = k;
				if (not_used(S)) set_instructions(S, 1, 'S');
			}
		}
	}
	S = {0, 0, 0, 0, 0};
	rep(i, -2, 4) {
		rep(j, -2, 4) {
			rep(k, -2, 4) {
				S[1] = i;
				S[2] = j;
				S[3] = k;
				if (not_used(S)) set_instructions(S, 1, '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...