my answers for Aizu Online Judge ( http://judge.u-aizu.ac.jp/onlinejudge/index.jsp )