Submission #442821

#TimeUsernameProblemLanguageResultExecution timeMemory
442821alan8585Bit Shift Registers (IOI21_registers)C++17
10 / 100
1 ms280 KiB
#include "registers.h" #include <vector> using namespace std; void construct_instructions(int s, int n, int k, int q) { if(k == 2) { append_right(1, 0, 2); vector<bool> v(2000, 0); v[0] = 1; append_store(10, v); v[1] = 1; append_store(3, v); append_and(0, 0, 3); for(int i = 0; i < 3; i++) { append_not(2, 0); append_add(2, 2, 10); append_add(2, 2, 1); append_right(2, 2, 2000 - 1); append_not(2, 2); append_add(2, 2, 10); append_add(0, 0, 2); } } else { append_move(1, 0); append_right(1, 1, 1); append_and(0, 0, 1); } }
#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...