下面是ACM比赛中常用的几个库 #include<bits/stdc++.h> #include <iostream> #include <cstdio> #include <fstream> #include <algorithm> #include <cmath> #include <deque ...
分类:
其他好文 时间:
2020-10-13 17:54:20
阅读次数:
37
B - A Tide of Riverscape CodeForces - 989B 努力把可能不一样的变成不一样的,两种情况。两个一个为“.”,一个为“1”或“0”。第二种是都为“.”。 有这样的就可以不一样。 #include<bits/stdc++.h> using namespace std ...
分类:
其他好文 时间:
2020-10-13 17:19:55
阅读次数:
14
题:http://acm.hdu.edu.cn/showproblem.php?pid=3949 分析:对查询的k进行二进制分解位上线性基的异或和 #include<bits/stdc++.h> using namespace std; #define pb push_back typedef lo ...
分类:
其他好文 时间:
2020-10-12 20:30:09
阅读次数:
29
震惊,我居然不会数细胞。 菜的离谱。 T1: 100 \(\rightarrow\) 80 T4: 20 \(\rightarrow\) 0 T1:松鼠的新家 震惊,我建边居然不开二倍,那没事了。 树上差分裸题。 #include <bits/stdc++.h> using namespace st ...
分类:
其他好文 时间:
2020-10-09 21:10:31
阅读次数:
20
实验方法 //输出运行时间 #include <bits/stdc++.h> using namespace std; const int MODE = 10000; int main(){ freopen("a1.txt", "w", stdout); int k = 100; while(k-- ...
分类:
其他好文 时间:
2020-10-09 20:18:04
阅读次数:
24
链接 Virtual participation A. Suborrays 观察发现任何排列均满足题意。 #include<bits/stdc++.h> using namespace std; int N; int main(){ ios::sync_with_stdio(0); cin.tie( ...
分类:
其他好文 时间:
2020-10-08 19:22:44
阅读次数:
15
2019-2020 ICPC Northwestern European Regional Programming Contest (NWERC 2019) I-Inverted Deck #include<bits/stdc++.h> using namespace std; const int ...
分类:
其他好文 时间:
2020-10-07 20:36:52
阅读次数:
20
#include<bits/stdc++.h> using namespace std; struct dt{ int cs,bs; }que[210]; int n,a,b,ans=-1; int yd[205]; int book[205]; int f,r; bool fs=false; vo ...
分类:
其他好文 时间:
2020-10-07 20:27:24
阅读次数:
30
#include <bits/stdc++.h> using namespace std; stack<char> stack_op; stack<int> stack_num; char str[10000]; string change; int pow(int x, int y) { int ...
分类:
其他好文 时间:
2020-10-06 20:08:42
阅读次数:
25
查询回文子串个数: #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<double,int> pii; const int N = 3e5+5; const int M = 1e6+5; c ...
分类:
其他好文 时间:
2020-10-05 22:16:55
阅读次数:
30