Skip to content

Instantly share code, notes, and snippets.

@oidong1
Created December 16, 2012 03:28
Show Gist options
  • Select an option

  • Save oidong1/4303012 to your computer and use it in GitHub Desktop.

Select an option

Save oidong1/4303012 to your computer and use it in GitHub Desktop.
joi予選用
#!/bin/sh
if [ $# != 1 ]; then
echo "usage: 引数ちがうっぽい" 1>&2
exit 0
fi
GREEN=$'\e[0;32;1m'
RED=$'\e[0;31;1m'
WHITE=$'\e[0;37;1m'
echo "${RED} START: ${WHITE}solve${1}"
a=0
while [ $a -ne 5 ]
do
a=`expr $a + 1`
ruby solve${1}.rb <2013-yo-t${1}-in${a}.txt >result${1}-${a}
echo "${GREEN} done ${WHITE}solve${1} -> result${1}-${a}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment