pip3 install online-judge-tools
oj login -u <user> -p <password> https://atcoder.jp/login
# edit `.env`
./scripts/test.sh
cat<<EOD | ./a.out
4
4 3 3 2
EOD
Add following task to .vscode/tasks.json
:
{
"version": "2.0.0",
"tasks": [
{
"label": "test",
"type": "shell",
"command": "./test.sh",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
}
]
}
then hit command + shift + b.