Online programing algorithm practice form Online Judge

http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=1