Submission #1262757

#TimeUsernameProblemLanguageResultExecution timeMemory
1262757ByeWorld레지스터 (IOI21_registers)C++20
21 / 100
0 ms328 KiB
#include "registers.h" #include <bits/stdc++.h> #define pb push_back #define se second #define fi first using namespace std; int c; void mn(int x, int y){ ++c; append_xor(c,x,y); // xor ++c; append_right(c,c-1,1); ++c; append_or(c,c-1,c-2); // 001, log ++c; append_right(c,c-1,1); ++c; append_xor(c,c-2,c-1); // cmn isolate 1 bit ++c; append_and(c,1,c-1); // 000 ato 0100, ngikutin x ++c; append_right(c,c-1,1); // 011 append_or(c,c,c-1); ++c; append_not(c,c-1); // inversenya ++c; append_and(c,x,c-1); ++c; append_and(c,y,c-3); append_add(1,c,c-1); } void construct_instructions(int s, int n, int k, int q) { for(int i=1; i<=n; i++){ append_move(i, 0); append_left(i,i,2000-i*k); append_right(i,i,2000-k); } c = n; for(int i=2; i<=n; i++) mn(1,i); append_move(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...