| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1334967 | activedeltorre | 레지스터 (IOI21_registers) | C++20 | 0 ms | 348 KiB |
#include "registers.h"
using namespace std;
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
{
int b=2000;
vector<bool>v(b);
v[0]=1;
append_store(99,v);
append_print(0);///abcd
append_right(1, 0, 2);//cd
append_and(2,0,1);//z(a*c+b*d)
append_right(67,2,1);
append_left(68,67,1);
append_right(3,2,1);//b*d
append_not(44,3);//!z
append_and(4,44,99);//!z pe un bit
append_right(7,0,1);//b
append_right(8,0,3);//d
append_or(9,7,0);
append_or(10,8,1);
append_and(11,9,10);
append_and(12,4,11);
append_and(13,3,0);
append_and(14,13,1);
append_add(68,68,14);
append_add(68,68,12);
append_move(0,68);
for(int i=1;i<=14;i++)
{
append_print(i);
}
}
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
