摘要:
B - Infinite Prefixes CodeForces - 1295B 做出前缀a [ i ] ,那么对于每一个成立的情况 : a [ i ] + k * d = x 一遍枚举,特判 - 1 和 0的情况。 #include <bits/stdc++.h> using namespace 阅读全文
摘要:
解法 一 : 该式为 a 到 b 上 f ( x ) 的积分,考虑先分割,再求和,当分割的区间足够小的时候,分割的小矩形的面积和即为a到b上的积分 不妨设 小区间的长度为0.000001,直接暴力计算面积和即可。 #include<math.h> #include<stdio.h> const do 阅读全文
摘要:
A - Minimal Square CodeForces - 1360A 水 #include<bits/stdc++.h> using namespace std; const int N=2e5+500; typedef long long ll; int main(){ int t;scan 阅读全文