Submission #509840

#TimeUsernameProblemLanguageResultExecution timeMemory
509840cig32Bit Shift Registers (IOI21_registers)C++17
21 / 100
1 ms292 KiB
#include "registers.h" #include <bits/stdc++.h> using namespace std; void construct_instructions(int s, int n, int k, int q) { const int b = 2000; //Subtask group 1: 21 points if(k == 1) { append_right(1, 0, 1); vector<bool> oh(b); oh[0] = 1; append_store(2, oh); append_and(0, 0, 2); append_and(0, 0, 1); return; } if(k == 2) { append_right(1, 0, 2); vector<bool> oh(b); oh[0] = oh[1] = 1; append_store(2, oh); append_and(0, 0, 2); for(int i=0; i<3; i++) { append_move(2, 1); for(int j=0; j<k; j++) { int tar = (i == 2 && j == k-1 ? 0 : 2); append_add(tar, 0, 2); append_right(tar, tar, 1); } if(i < 2) append_move(0, 2); } } }
#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...