第一题是UVA judge的1586题 https://vjudge.net/problem#OJId=UVA&probNum=1586&title=&source=&category=all