제출 #442840

#제출 시각아이디문제언어결과실행 시간메모리
442840alan8585레지스터 (IOI21_registers)C++17
21 / 100
0 ms204 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); // vector<bool> rv(2000, 1); // 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_and(99, 2, 1); // append_move(0, 99); // return; } { append_not(2, 1); append_add(2, 2, 0); append_right(2, 2, 2000 - 1); append_not(2, 2); append_add(2, 2, 10); append_and(89, 2, 0); } append_or(0, 89, 99); // } } 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...