08 2024 档案
摘要:codeforces ECR 169 A #include<bits/stdc++.h> using namespace std; const int maxn=50; int a[maxn]; void solve() { int n; cin>>n; for(int i=1;i<=n;i++)c
阅读全文
摘要:A. Find K Distinct Points with Fixed Center 思路 简单构造 ,我居然在这个题上因为没看懂英文还有机翻英太过逆天导致我WA了好几发...... AC code: #include<bits/stdc++.h> #define int long long us
阅读全文
摘要:欧拉筛线性筛质数 经典题解 我的乱搞筛法和欧拉线性筛法的速度对比: 模版code #include <bits/stdc++.h> using namespace std; const int maxn = 100000009; bool a[100000009]; int read() { int
阅读全文
摘要:线段树维护区间方差 方差 区间方差 还教室 解题思路: 利用线段树维护 与 两个数列 ,然后使用一个 来记录是否进行了区间加,最后输出方差的时候使用 \[s^2 =\sum\limits_{i=1
阅读全文
摘要:牛客多校 8 - A Haitang and Game Given a set , dXqwq and Haitang take turns performing the following operations, with dXqwq going first: Fi
阅读全文
摘要:小白逛公园 注意线段树的分块思维,以及分治的思维,写了好久,还看了题解 AC code #include <bits/stdc++.h> using namespace std; #define int long long // P4513 小白逛公园 int read() { int x = 0,
阅读全文