Submission #621208

#TimeUsernameProblemLanguageResultExecution timeMemory
621208amunduzbaevBit Shift Registers (IOI21_registers)C++17
0 / 100
1 ms468 KiB
#include "registers.h" #include "bits/stdc++.h" using namespace std; #ifndef EVAL #include "grader.cpp" #endif const int M = 100; void upd(int i, int j, int p){ append_and(M - 1, i, j); append_left(M - 1, M - 1, p); append_move(M - 2, M - 1); for(int k=0;k<p;k++){ append_right(M - 2, M - 2, 1); append_or(M - 2, M - 2, M - 1); } append_move(M - 1, M - 2); } void construct_instructions(int s, int n, int k, int q) { if(s) assert(false); append_left(1, 0, k); for(int i=k-1;~i;i--){ append_xor(2, 0, 1); append_left(2, 2, i); append_right(2, 2, i); append_or(3, 3, 2); upd(0, 2, i); upd(1, 2, i); append_or(0, 0, M - 1); append_or(1, 1, M - 1); } append_or(2, 0, 1); append_and(3, 3, 2); append_move(0, 3); }
#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...