传送门 A - The Number of Even Pairs #include <bits/stdc++.h> #define ll long long using namespace std; int main() { //freopen("in.txt","r",stdin); int n, ...
分类:
其他好文 时间:
2020-03-23 12:38:57
阅读次数:
98
非常经典的最小割模型. code: #include <bits/stdc++.h> #define N 3006 #define ll long long #define setIO(s) freopen(s".in","r",stdin) using namespace std; const l ...
分类:
其他好文 时间:
2020-03-19 21:21:21
阅读次数:
48
题目链接:http://icpc.njust.edu.cn/Problem/Hdu/1711/ 1 #include<bits/stdc++.h> 2 using namespace std; 3 typedef unsigned int ui; 4 typedef long long ll; 5 ...
分类:
其他好文 时间:
2020-03-18 14:05:17
阅读次数:
65
拼接字符串即可解决移位的问题; 代码如下: 1 #include<bits/stdc++.h> 2 using namespace std; 3 typedef unsigned int ui; 4 typedef long long ll; 5 typedef unsigned long long ...
分类:
其他好文 时间:
2020-03-18 14:03:22
阅读次数:
60
2020.3.16 8.freopen调试的时候可以去掉,但是提交的时候记得开起来! 7.线段树维护区间和 开long long ! 开long long ! 开long long ! 2020.3.10 6.多组数据的 初始化! (多次导致程序直接崩溃) 2020.2.28 5. 线段树的标记是累 ...
分类:
其他好文 时间:
2020-03-16 14:27:05
阅读次数:
50
传送门 A - Station and Bus #include <bits/stdc++.h> using namespace std; char s[5]; int main() { //freopen("in.txt","r",stdin); scanf("%s",s); int a=0,b= ...
分类:
其他好文 时间:
2020-03-08 12:25:58
阅读次数:
100
https://www.luogu.com.cn/problem/P1247 #include <bits/stdc++.h> using namespace std; #define int long long const int maxn = 5e5 + 5; int n; int a[maxn ...
分类:
其他好文 时间:
2020-03-06 13:12:20
阅读次数:
59
我们发现,如果我们打数字牌后,就不能打 0 了. 分两种情况讨论即可. code: #include <bits/stdc++.h> #define N 200008 #define ll long long #define setIO(s) freopen(s".in","r",stdin) us ...
分类:
其他好文 时间:
2020-03-04 23:20:53
阅读次数:
88
[Ozon Tech Challenge 2020 (Div.1 + Div.2, Rated] E. Kuroni and the Score Distribution(构造) Kuroni is the coordinator of the next Mathforces round writt ...
分类:
其他好文 时间:
2020-03-04 17:31:35
阅读次数:
130
Some scientists took pictures of thousands of birds in a forest. Assume that all the birds appear in the same picture belong to the same tree. You are ...
分类:
其他好文 时间:
2020-03-04 15:07:02
阅读次数:
86