Baekjoon Online Judge
Solutions of Baekjoon Online Judge.
Languages
- C++17
- Ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux]
- Ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]
- Ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux]
About
Each project directory has some of these files:
input*: STDIN input to the programoutput*: STDOUT output of the program that should be printedmain.cpp: Code compatible with C++17ruby-1.8*.rb: Code compatible with Ruby 1.8.7-p352ruby-1.9*.rb: Code compatible with Ruby 1.9.3p0ruby-2.5*.rb: Code compatible with Ruby 2.6.5p114*.short*.rb: Compressed Ruby code
Testing
To run the test of the problem 1000:
rake test 1000rake spec SPEC_OPTS="-E '^1000 '"This runs the tests of the problems start with 1000:
rake spec SPEC_OPTS='-e 1000'rspec -e 1000To compile and run the binary of the problem 1000:
rake run 1000cd problem/1000
g++ main.cpp -O2 -Wall -lm -std=c++17 && diff -y --suppress-common-lines output <(bash -c '{ ./a.out < input; } 2>&1')You can also run all tests with:
rake spec