XM Reserves Time Limit: 10000/10000 MS (Java/Others) Memory Limit: 102400/102400 K (Java/Others)Total Submission(s): 99 Accepted Submission(s): 45 Problem Description As an eligible Ingress Resistance Agent you should know your power source, th…
Shell Necklace Time Limit: 16000/8000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 647 Accepted Submission(s): 287 Problem Description Perhaps the sea‘s definition of a shell is the pearl. However, in my view,…
Problem Description As an eligible Ingress Resistance Agent you should know your power source, the Exotic Matter.We call it XM, which is the driving force behind all of our actions in Ingress.XM allows us to construct items through hacking portals, t…
http://acm.hdu.edu.cn/showproblem.php?pid=4609 题意:给你n个数,问任意取三边能够,构成三角形的概率为多少. 思路:使用FFT对所有长度的个数进行卷积(\(C = \{x + y| x \in A, y \in B \} \)),得到所有两边和情况数,再考虑去掉重复的情况.找边并计数的时候再去掉不可能的情况.具体操作看bin神的博客 另FFT还可以用来进行多项式和高精度乘法,又难懂又难用的东西=x= /** @Date : 2016-12-04…
A * B Problem Plus Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 16111 Accepted Submission(s): 3261 Problem Description Calculate A * B. Input Each line will contain two integers A and B…
3-idiots Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7804 Accepted Submission(s): 2724 Problem Description King OMeGa catched three men who had been streaking in the street. Looking as i…