摘要:传送门:点我 You have an array of logs. Each log is a space delimited string of words. For each log, the first word in each log is an alphanumeric identifie
阅读全文
摘要:传送门:点我 978. Longest Turbulent Subarray 978. Longest Turbulent Subarray A subarray A[i], A[i+1], ..., A[j] of A is said to be turbulent if and only if:
阅读全文
摘要:传送门:点我 格林公式P,Q为关于x,y的函数。 现在为了方便起见,现给出x的积分上限1,积分下限0, y的积分上限x,积分下限0。 P只是关于Y的函数,Q只是关于X的函数。 输入 开始输入为测试组数n。每一组的开始输入Q的项数q和Q关于X的系数以及指数。接下来是P的多项式的项数p和P的关于Y的系数
阅读全文
摘要:LL quick_pow(LL a, LL n){ LL ans = 1LL; a %= p; while(n){ if(n & 1) ans = ans * a % p; a = a * a % p; n >>= 1; } return ans; } LL C(LL n, LL m){ if(n
阅读全文