2005-12-23 #116 http://online-judge.uva.es/p/v1/116.html UVa lexicographically smallestな解が求められてるのに気付くまで時間がかかった。