Submission #1241489

#TimeUsernameProblemLanguageResultExecution timeMemory
1241489dostsRobot Contest (IOI23_robot)C++20
6 / 100
66 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++) { koy({i,j,-2,-2,k},1,'T'); for (int jj = -2;jj<=1;jj++) { if (j != -2) koy({i,-2,j,k,jj},1,'S'); if (k != -2) koy({i,j,-2,k,jj},1,'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...