10 2014 档案
摘要:Multiplyand pow Function://计算 (a*b)%c. a,b都是ll的数,直接相乘可能溢出的// a,b,c = c)a %= c; b >>= 1; } return ret;}//计算 x^n %cll pow_mod(ll x,ll n...
阅读全文
摘要:这是一道蛮基础的构造题。 - k +(k - 1) -(k - 2)1 + k , 1 , k , 2, ................... \ / \ / \ / k k-1 k-2如图所示,先构造第一个...
阅读全文
摘要:479D - Long Jumps, 480B - Long JumpsIt is easy to see that the answer is always 0, 1 or 2. If we can already measure both x and y, output 0. Then try ...
阅读全文