My solutions for problems in book "算法竞赛入门经典".   uvaoj link: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=827