This Python package is similar to https://github.com/kyuridenamida/atcoder-tools but simpler version with fewer functionality.
If you happen to find this repository, please use the above atcoder-tools
first since this is just for myself.
I also found a similar npm project. Google it.
This package is not registered at pypi.
pip install git+https://github.com/RyoMazda/splatcoder
splat start-contest https://atcoder.jp/contests/abc174
# Or for short
splat c abc174
A directory named abc174
will be splatted and it contains x.cpp
for x in a, b, c, etc.
splat start-task https://atcoder.jp/contests/abc174/tasks/abc174_a
# Or for short
splat t abc174/tasks/abc174_a
After this, you'll see a file named abc174_a.cpp
splatted at the current directory.
If the name of the current directory is abc174
, file name becomes a.cpp
.
splat x.cpp
This builds the x.cpp file, executes it for the given test cases and the results will be splatted on the standard output.
Every splat command starts from reading config file that is located at ${HOME}/.splatconfig.yml
by default.
You can change the location by setting the environment variable SPLAT_CONFIG_PATH
.
!splatcoder_config
build_command: "g++ -std=c++14"
template_path:
username: "pigimaru"
password: "xxxxxxxxxxxx"
Note that
- the first line is necessary for the yaml loader implemented at
splatcoder/config.py
. username
andpassword
are necessary for generating templates from the ongoing contest's page.