Blue JeansTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 9909 Accepted: 4180DescriptionThe Genographic Project is a research partnership between IBM and The National Geographic Society that is analyzing DNA from hundreds of thousands of
Special equationsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 189 Accepted Submission(s): 97Special JudgeProblem Description Let f(x) = anxn +...+ a1x +a0, in which ai (0 <= i <= n)
BombsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 326 Accepted Submission(s): 45Problem Description Terrorists are around everywhere, they always make troubles by detonating bombs. The
公式E(x)=n Σ 1/i因為當已經拿到k張不同的時候 拿到不同牌的期望是 (n-k)/n ,1除於這個機率就是 n/(n-k) 然後從1到n加一下就可以了 Problem FCouponsInput: standard inputOutput: standard outputTime Limit: 2 secondsMemory Limit: 32 MB Coupons in cereal boxes are numbered 1 to n, and a set of one of
WalkTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1142 Accepted Submission(s): 195Problem DescriptionBiaoge is planning to walk to amusement park. The city he lives can be abstracted as a 2
Card CollectorTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1715 Accepted Submission(s): 786Special JudgeProblem DescriptionIn your childhood, do you crazy for collecting the beautiful
Maximum Random WalkTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 219 Accepted Submission(s): 120Problem DescriptionConsider the classic random walk: at each step, you have a 1/2 chance of