码迷,mamicode.com
首页 >  
搜索关键字:hdu 1518 square    ( 32957个结果
Ignatius and the Princess IV HDU - 1029 基础dp
#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
HDU 1532 最大流
最大流模板题 注意反向边的意义。 #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
queue的使用-Hdu 1702
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
stack的使用-Hdu 1062
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
vector的使用-Hdu 4841
圆桌问题 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
HDU 1213
最近家庭聚会也真不少,为啥做题这么应景... 水题,加上集合的利用,并查集 ...
分类:其他好文   时间:2020-01-27 18:50:08    阅读次数:68
ZOJ1002 —— 深度优先搜索
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
HDU 3823 埃式筛法打表
题意:有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
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
hdu 1000+1089~1096 题解
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
32957条   上一页 1 ... 64 65 66 67 68 ... 3296 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!