https://github.com/yous/acmicpc-net
Solutions of Baekjoon Online Judge
https://github.com/yous/acmicpc-net
Last synced: about 2 months ago
JSON representation
Solutions of Baekjoon Online Judge
- Host: GitHub
- URL: https://github.com/yous/acmicpc-net
- Owner: yous
- Created: 2013-10-04T22:47:53.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2025-03-30T08:20:27.000Z (2 months ago)
- Last Synced: 2025-04-11T04:43:13.239Z (about 2 months ago)
- Language: C++
- Homepage:
- Size: 1.8 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Baekjoon Online Judge
[](https://github.com/yous/acmicpc-net/actions/workflows/main.yml)
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:
``` sh
rake test 1000
`````` sh
rake spec SPEC_OPTS="-E '^1000 '"
```This runs the tests of the problems start with 1000:
``` sh
rake spec SPEC_OPTS='-e 1000'
`````` sh
rspec -e 1000
```To compile and run the binary of the problem 1000:
``` sh
rake run 1000
`````` sh
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:
``` sh
rake spec
```## [Help][]
[Baekjoon Online Judge]: https://www.acmicpc.net
[Help]: https://www.acmicpc.net/help/judge