diff --git a/make_contest.sh b/make_contest.sh index 6565378..eba15bf 100644 --- a/make_contest.sh +++ b/make_contest.sh @@ -1,4 +1,11 @@ #!/bin/sh -mkdir $1 -curl -Lk https://codeforces.com/contest/$1/problems -o $1/index.html \ No newline at end of file +function get_contest() { + mkdir $1 + curl -Lk https://codeforces.com/contest/$1/problems -o $1/index.html +} + +for contest in "$@" +do + get_contest $contest; +done