Submission #1022415

#TimeUsernameProblemLanguageResultExecution timeMemory
1022415woodBit Shift Registers (IOI21_registers)C++17
21 / 100
1 ms348 KiB
#include "registers.h" #include <bits/stdc++.h> using namespace std; void construct_instructions(int s, int n, int k, int q) { if(k>2||s||n>2) return; if(k==1){ append_move(1,0); append_right(1,1,1); append_and(0,0,1); return; } else{ append_move(1,0); append_right(1,1,2); vector<bool> v(2000); v[0] = 1; v[1] = 1; append_store(10,v); append_and(0,10,0); append_not(2,0); //move5 append_not(3,1); v[1] = 0; append_store(10,v); append_add(2,1,2); append_add(2,2,10); append_right(2,2,2); append_not(2,2); //to be removed append_print(2); //move10 append_add(3,0,3); append_add(3,3,10); append_right(3,3,2); append_not(3,3); //to be removed append_print(3); append_and(0,0,2); append_and(1,1,3); //move15 append_or(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...