AOJ 1300 - Chemist's Math

http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=1300

POJ 3807 - Chemist's Math と同じ.