Skip to content

Instantly share code, notes, and snippets.

@smatsuodev
Created June 15, 2022 06:10
Show Gist options
  • Save smatsuodev/eb557671fb6aeb1543de80022ebf12d6 to your computer and use it in GitHub Desktop.
Save smatsuodev/eb557671fb6aeb1543de80022ebf12d6 to your computer and use it in GitHub Desktop.
function atget
set -l contest_id $argv[1]
set -l problem $argv[2]
while test -z $contest_id
read -P "contest_id: " contest_id
end
cd $atcoder_cpp_dir
if test -e $contest_id
rm -rf $contest_id
end
acc new $contest_id --choice all --template cpp
cd $contest_id
if test -n $problem -a -e $problem
cd $problem
end
code main.cpp
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment