摘要:
洛谷试炼场 简单数学问题 "P1147 连续自然数和" 题解: 本题给定一个数n,求连续自然数的和为n,用一个前缀数组,low_bound,upper_bound,查找是否是同一个数。O(nlog(n)). 代码 include include using namespace std; long l 阅读全文
摘要:
青岛赛训练 0 Fantasy of a Summation 时间:10月5号23点30 "https://cn.vjudge.net/contest/258301 problem" 这个题,题意给出是一个k重循环,每个循环i重1到n,循环体为 res = ( res + A[i1] + A[i2] 阅读全文