# 標準出力 read N K # じゃんけんの結果 ## グー 0 ## チョキ 1 ## パー 2 if [ $N = 0 ] ; then if [ $K = 0 ] ; then echo "Drew" elif [ $K = 1 ] ; then echo "Won" else echo "Lost" fi elif [ $N = 1 ]; then if [ $K = 0 ] ; then echo "Lost" elif [ $K = 1 ] ; then echo "Drew" else echo "Won" fi else if [ $K = 0 ] ; then echo "Won" elif [ $K = 1 ] ; then echo "Lost" else echo "Drew" fi fi