Submission #614165

#TimeUsernameProblemLanguageResultExecution timeMemory
614165StrawHatWess레지스터 (IOI21_registers)C++17
10 / 100
1 ms212 KiB
#include "registers.h" #include <bits/stdc++.h> using namespace std; typedef vector<int>vi; #define pb push_back #define sz(x) (int)x.size() #define all(x) begin(x), end(x) #define FOR(i,a,b) for(int i=a; i<b; i++) //--------------------------------------------------- int B=2000; 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); return; } vector<bool> vec(B,0); vec[0]=1; append_store(99,vec); //c1 c2 append_move(1,0); append_right(1,1,2); append_and(2,0,1); append_add(3,0,1); append_move(4,3); append_and(4,4,99); append_move(5,3); append_right(5,5,1); append_and(5,5,99); append_and(6,4,5); append_move(7,0); append_and(7,7,99); append_move(8,0); append_right(8,8,1); append_and(8,8,99); append_or(9,7,8); append_move(10,1); append_move(11,1); append_right(11,11,1); append_or(12,10,11); append_and(13,9,12); append_and(14,6,13); append_add(0,2,14); }
#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...