AtCoder environment by Rye + Ruff
curl -sSf https://rye-up.com/get | bash
Run in the atcoder-rye-ruff directory
rye sync
https://github.com/Tatamo/atcoder-cli
npm install -g atcoder-cli
acc login
Activate virtual environment
sourve .venv/bin/activate
Login
oj login https://atcoder.jp/
Copy atcoder-cli-templates to acc config-dir. Check acc config-dir
cp -r atcoder-cli-templates/py `acc config-dir`
nvim `acc config-dir`/config.json
-> default-template:"py"
acc new abc001
rye run oj t -c 'python3 main.py' -d ./tests/
rye run black main.py && rye run ruff --fix main.py && rye run oj t -c 'python3 main.py' -d ./tests/
PyPy
acc s main.py -- --guess-python-interpreter pypy
Python
acc s main.py -- -l 5055
rye run python main.py