Submission #902316

# Submission time Handle Problem Language Result Execution time Memory
902316 2024-01-10T08:24:37 Z abcvuitunggio Bit Shift Registers (IOI21_registers) C++17
33 / 100
1 ms 756 KB
#include "registers.h"
#include <bits/stdc++.h>
const int b=2000;
void construct_instructions(int s, int n, int k, int q){
    append_move(2,0);
    append_left(2,2,b-k);
    append_right(2,2,b-k);
    for (int i=1;i<n;i++){
        append_move(1,0);
        append_left(1,1,b-k*(i+1));
        append_right(1,1,b-k);
        append_not(3,1);
        append_add(4,2,3);
        append_right(4,4,k);
        append_not(5,4);
        append_and(4,4,2);
        append_and(5,5,1);
        append_add(5,4,5);
        append_move(2,5);
    }
    append_move(0,2);
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 352 KB Output is correct
2 Correct 1 ms 600 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 1 ms 616 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 360 KB Wrong answer detected in grader
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 756 KB Incorrect sorting
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 756 KB Incorrect sorting
2 Halted 0 ms 0 KB -