Created
December 16, 2012 03:28
-
-
Save oidong1/4303012 to your computer and use it in GitHub Desktop.
joi予選用
This file contains hidden or 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
| #!/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