#include<iostream> #include<cstring> #include<cmath> #include<cstdio> #include<algorithm> #include<stack> #include<queue> using namespace std; const i ...
分类:
其他好文 时间:
2020-01-28 15:34:42
阅读次数:
71
最大流模板题 注意反向边的意义。 #include<bits/stdc++.h> using namespace std; const int INF = 1e9; const int MAXN = 301; int ma[MAXN][MAXN],pre[MAXN]; int n,m; int bf ...
分类:
其他好文 时间:
2020-01-28 12:16:36
阅读次数:
63
ACboy needs your help again! Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 16823 Accepted Submi ...
分类:
其他好文 时间:
2020-01-27 22:24:33
阅读次数:
94
Text Reverse Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 51495 Accepted Submission(s): 19692 ...
分类:
其他好文 时间:
2020-01-27 21:59:24
阅读次数:
67
圆桌问题 Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 6252 Accepted Submission(s): 2380 Problem De ...
分类:
其他好文 时间:
2020-01-27 21:54:12
阅读次数:
82
最近家庭聚会也真不少,为啥做题这么应景... 水题,加上集合的利用,并查集 ...
分类:
其他好文 时间:
2020-01-27 18:50:08
阅读次数:
68
ZOJ1002 —— Fire net Time Limit: 2000 ms Memory Limit: 65536 KB Suppose that we have a square city with straight streets. A map of a city is a square b ...
分类:
其他好文 时间:
2020-01-27 14:00:53
阅读次数:
112
题意:有T个样例,每个样例输入两个数 a 和 b,让你找到一个数,使得 a + x = c, b + x = d, c 和 d 是质数并且相邻。 解法:打素数表(埃式筛法) 不成立: (b - a)&1 或 b == a 成立: 特殊: a = 1 , b = 2, ans = 1; a = 2, ...
分类:
其他好文 时间:
2020-01-26 20:42:12
阅读次数:
66
CF1A Theatre Square 1. 题意:$n m$的面积铺$a a$的砖块,最少需要多少。 2. 思路:上取整即可,$ans = ((n+a 1)/a) ((m+a 1)/a)$ 3. 代码实现: ...
分类:
其他好文 时间:
2020-01-26 15:57:54
阅读次数:
62
1000: 英文题目: 中文题解: 题解: #include<iostream> using namespace std; int main() { int a, b; int num = 0; while (cin >> a >> b) { num = a + b; cout << num << ...
分类:
其他好文 时间:
2020-01-25 18:16:54
阅读次数:
100