Submission #837012

# Submission time Handle Problem Language Result Execution time Memory
837012 2023-08-24T19:46:40 Z FulopMate Bit Shift Registers (IOI21_registers) C++17
10 / 100
1 ms 296 KB
#include "registers.h"

#include <bits/stdc++.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);
        return;
    }
	append_move(1, 0);
    append_move(2, 0);
    append_right(2, 2, 2);
    append_and(3, 1, 2);
    append_move(4, 3);
    append_move(5, 3);
    append_right(5, 5, 1);
    append_or(6, 4, 5);
    append_not(6, 6);
    append_move(7, 1);
    append_move(8, 1);
    append_right(8, 8, 1);
    append_or(9, 7, 8);
    append_move(10, 2);
    append_move(11, 2);
    append_right(11, 11, 1);
    append_or(12, 10, 11);
    vector<bool> asd(2000);
    asd[0] = 1;
    append_store(13, asd);
    append_and(13, 13, 6);
    append_and(13, 13, 9);
    append_and(13, 13, 12);
    append_or(0, 13, 3);
    return;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Wrong answer detected in grader
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Incorrect min value
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 296 KB Incorrect min value
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Incorrect sorting
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Incorrect sorting
2 Halted 0 ms 0 KB -