Submission #807746

# Submission time Handle Problem Language Result Execution time Memory
807746 2023-08-05T00:30:48 Z vjudge1 Bit Shift Registers (IOI21_registers) C++17
21 / 100
0 ms 252 KB
#include "registers.h"
#define MOVE append_move
#define STORE append_store
#define AND append_and
#define OR append_or
#define XOR append_xor
#define NOT append_not
#define LEFT append_left
#define RIGHT append_right
#define ADD append_add
#define print append_print
void construct_instructions(int s, int n, int k, int q) {
    RIGHT(1,0,k);
    if(k==1) {
        return AND(0,1,0);
    }
    AND(2, 1, 0);
    LEFT(3, 0, 1);
    LEFT(4, 1, 1);
    AND(5, 4, 0);
    AND(6, 3, 1);
    XOR(7, 6, 5);
    NOT(8, 2);
    AND(9, 8, 7);
    LEFT(10, 9, 1998);
    RIGHT(10, 10, 1999);
    OR(0, 10, 2);
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 252 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 0 ms 212 KB Incorrect min value
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Incorrect min value
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 252 KB Incorrect sorting
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 252 KB Incorrect sorting
2 Halted 0 ms 0 KB -