Created
June 15, 2022 06:10
-
-
Save smatsuodev/eb557671fb6aeb1543de80022ebf12d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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