Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Baekjoon Online Judge

CI

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 program
  • output*: STDOUT output of the program that should be printed
  • main.cpp: Code compatible with C++17
  • ruby-1.8*.rb: Code compatible with Ruby 1.8.7-p352
  • ruby-1.9*.rb: Code compatible with Ruby 1.9.3p0
  • ruby-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 1000
rake spec SPEC_OPTS="-E '^1000 '"

This runs the tests of the problems start with 1000:

rake spec SPEC_OPTS='-e 1000'
rspec -e 1000

To compile and run the binary of the problem 1000:

rake run 1000
cd 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

Help

About

Solutions of Baekjoon Online Judge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published