Solutions for AtCoder problems.
install online-judge-tools
pip3 install online-judge-tools
create .vscode/tasks.json
{
"tasks": [
{
"type": "shell",
"label": "test_atcoder_sample",
"command": "${workspaceFolder}/onlinejudge/cpp-test.sh",
"args": [
"${relativeFileDirname}",
"${fileBasenameNoExtension}",
"${file}"
],
"group": {
"kind": "test",
"isDefault": true
}
},
{
"type": "shell",
"label": "submit_to_atcoder",
"command": "${workspaceFolder}/onlinejudge/cpp-submit.sh",
"args": [
"${relativeFileDirname}",
"${fileBasenameNoExtension}",
"${file}"
],
"group": {
"kind": "build",
"isDefault": true
}
}
],
"version": "2.0.0"
}
example: create solutions for A,B,C of ABC 123
new.sh abc 123 a,b,c