AOJ 1300 - Chemist's Mathhttp://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=1300 POJ 3807 - Chemist's Math と同じ.