Reference implementations of the joke language used in this Codeforces April Fools problem.
This is the current version used on Codeforces. The one used during contest was based on the C++ version below, but it was replaced later with a Rust rewrite due to some implementation issues.
Compile with
rustc -O checker.rs
and run with
./checker <input_file> <output_file> <answer_file>
Compile with
g++ -O2 -o checker checker.cpp
and run with
./checker <type> < <program_file>
where type
is the problem ID in the Codeforces problem.
First modify the input/outputs by editing the code according to your needs. Then compile with
g++ -O2 -o interpreter interpreter.cpp
and run with
./interpreter < <program_file>