1st is a Russian who solved 1878 problems,
5th is a Japanese who solved 1698 problems,
14nd is a Taiwanese who solved 1284 problems,
817nd is a Taiwanese (CCU student) who solved 266 problems,
2250rd is me who solved 117 problems,
They are far far far away from me.......
ACM 的題目總是很隱晦 = ="
如果沒有Luck 貓的測資, 這題也有兩星吧 @@
另外, 有特別的測資像是
Input
1
1
Output
Run #1: Accepted
問題出現了, 如何讀掉Input後, 按下 Enter所產生的 /n 呢?
方法一 :
scanf ("%*c"); // 以這題似乎有錯.
方法二 :
scanf ("\n"); // 會讀掉第一次按下的Enter, 如果第二次以後也按Enter也會讀掉, 但是我們只要讀掉第一次.
方法三 :
getchar(); // 只讀掉Input後的Enter, 之後不管按幾次Enter都不會讀掉.