Submission #438205

#TimeUsernameProblemLanguageResultExecution timeMemory
438205OzyBit Shift Registers (IOI21_registers)C++17
0 / 100
1 ms204 KiB
#include "registers.h" #include <bits/stdc++.h> using namespace std; #define rep(i,a,b) for (int i = (a); i <= (b); i++) #define repa(i,a,b) for (int i = (a); i >= (b); i--) #define lli long long int #define debug(a) cout << #a << " = " << a << endl #define debugsl(a) cout << #a << " = " << a << ", " vector<bool> borra; void construct_instructions(int s, int n, int k, int q) { borra.resize(2000,false); rep(i,0,k-1) borra[i] = true; append_right(1,0,k); append_store(5,borra); append_and(0,0,5); if (k == 2) { append_and(2,0,1); append_xor(3,0,1); rep(i,0,k-1) borra[i] = false; borra[0] = true; append_store(6,borra); append_add(3,6,3); append_right(3,3,k); append_add(0,3,2); return; } else if (k == 1){ append_and(0,0,1); return; } }
#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...