Submission #1218001

#TimeUsernameProblemLanguageResultExecution timeMemory
1218001hengliaoBit Shift Registers (IOI21_registers)C++20
21 / 100
0 ms328 KiB
#include "registers.h" #include<bits/stdc++.h> using namespace std; #define F first #define S second #define pb push_back #define vll vector<ll> #define pll pair<ll, ll> typedef long long ll; void construct_instructions(int s, int n, int k, int q) { if(k==1){ append_move(1, 0); append_right(1, 1, 1); append_and(0, 0, 1); } else{ append_move(1, 0); append_print(1); append_right(1, 1, 2); append_print(1); append_move(2, 0); append_print(2); append_left(2, 2, 1998); append_print(2); append_right(2, 2, 1999); append_print(2); append_move(3, 1); append_print(3); append_right(3, 3, 1); append_print(3); append_and(5, 0, 1); append_print(5); append_xor(6, 2, 3); append_print(6); append_and(7, 6, 2); append_print(7); append_and(8, 7, 1); append_print(8); append_or(5, 5, 8); append_print(5); append_and(7, 6, 3); append_print(7); append_and(8, 7, 0); append_print(8); append_or(5, 5, 8); append_print(5); append_move(0, 5); append_print(0); } }
#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...