Submission #609028

# Submission time Handle Problem Language Result Execution time Memory
609028 2022-07-27T11:52:24 Z Siffer Bit Shift Registers (IOI21_registers) C++17
21 / 100
1 ms 284 KB
#include "registers.h"

void construct_instructions(int s, int n, int k, int q) {
    append_right(1, 0, k);
    if(k == 1) append_and(0, 0, 1);
    else {
        append_and(2, 1, 0);
        append_left(3, 0, 1);
        append_left(4, 1, 1);
        append_and(5, 4, 0);
        append_and(6, 3, 1);
        append_xor(7, 6, 5);
        append_not(8, 2);
        append_and(9, 8, 7);
        append_left(10, 9, 1998);
        append_right(10, 10, 1999);
        append_or(0, 10, 2);
    }
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
# 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 1 ms 284 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 -