CF#263,昨天沒打,今天寫了一下,前三題都沒有難度吧。A. Appleman and Easy Tasktime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputToastman came up with a very easy task. He gives it to Appleman, but Appleman doesn't know how
HDU1097 A hard puzzle,hdu1097hardpuzzleA hard puzzleTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 29415 Accepted Submission(s): 10581Problem
UESTC-888-Absurdistan Roads(kruskal+floyd),kruskal演算法The people of Absurdistan discovered how to build roads only last year. After the discovery, every city decided to build their own road connecting their city with another city. Each newly built
Leetcode 動態規劃 Trapping Rain Water,leetcodetrapping本文為senlie原創,轉載請保留此地址:http://blog.csdn.net/zhengsenlieTrapping Rain Water Total Accepted: 14568 Total Submissions: 50810My SubmissionsGiven n non-negative integers
HDOJ 4814 Golden Radio Base,hdoj4814利用題目中給出的公式和hint可以得到兩個有用的公式:phi^(n) = phi^(n-1)+phi^(n-2)2*(phi^n) = phi^(n+1)+phi^(n-2)可以計算出phi^100遠大於10^9,所以推測最後得到的phi進位的數整數和小數部分應該不會超過100位,事實表明,50位就能過。所以最終變成了簡單的類比。Golden Radio BaseTime Limit: 10000/5