Submission #1241508

#TimeUsernameProblemLanguageResultExecution timeMemory
1241508dostsRobot Contest (IOI23_robot)C++20
16 / 100
69 ms5704 KiB
#include "robot.h" #include <bits/stdc++.h> #pragma GCC optimize("O3,unroll-loops") #pragma GCC target("avx2") //#define int long long #define pii pair<int,int> #define vi vector<int> #define ff first #define ss second #define sp << " " << #define all(x) x.begin(),x.end() #define big(x) ((int)(x.size())) using namespace std; const int MOD = 1e9+7, LIM = 1e6+1, inf = 2e9; map<vi,int> memo; void koy(vi v,int c,char A) { if (memo[v]) return; memo[v] = 1; set_instruction(v,c,A); } void program_pulibot() { for (int i = -2;i<=1;i++) { for (int j = -2;j<=1;j++) { for (int k = -2;k<=1;k++) { for (int jj = -2;jj<=1;jj++) { koy({i,j,k,0,jj},1,'E'); } } } } for (int i = -2;i<=1;i++) { for (int j = -2;j<=1;j++) { koy({0,j,-2,-2,i},1,'T'); } } for (int i = -2;i<=1;i++) { for (int j = -2;j<=1;j++) { for (int k = -2;k<=1;k++) { for (int jj = -2;jj<=1;jj++) { koy({i,j,0,k,jj},1,'S'); } } } } for (int i = -2;i<=1;i++) { for (int j = -2;j<=1;j++) { for (int k = -2;k<=1;k++) { for (int jj = -2;jj<=1;jj++) { koy({i,j,jj,k,0},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...