码迷,mamicode.com
首页 >  
搜索关键字:hdu 3709balanced num    ( 40504个结果
hdu_1282 回文数猜想
(最近水题刷的比较多,不过还是有些收获,所以还是做个记录比较好) http://acm.hdu.edu.cn/showproblem.php?pid=1282 分析:        题目理解起来还是简单的,基本上有两种思路:1) 将int转为string来实现; 2)直接用int做(回文串判断,相加)       第二中思路比较直接,将一个数倒置得到新的数,然后判断是否是回文数...
分类:其他好文   时间:2014-05-05 13:26:07    阅读次数:276
hdu 1163 Eddy's digital Roots(九余数定理)
hdu 1163 Eddy's digital Roots 九余数定理...
分类:其他好文   时间:2014-05-05 13:03:16    阅读次数:232
[ACM] hdu 1029 Ignatius and the Princess IV (动归或hash)
Ignatius and the Princess IV Time Limit : 2000/1000ms (Java/Other)   Memory Limit : 65536/32767K (Java/Other) Total Submission(s) : 7   Accepted Submission(s) : 3 Font: Times New Roman | Verdana | ...
分类:其他好文   时间:2014-05-05 13:01:52    阅读次数:325
HDU 3400 Line belt 三分
点击打开链接...
分类:其他好文   时间:2014-05-04 00:18:08    阅读次数:275
hdu 4494 Teamwork (可行流的最小流)
去年通话邀请赛的B题,当时竟然过的那么少。。。明明是一道很裸的可行流最小流麽。。只要对每种人分别求一下可行最小流加起来就可以了。建图是对每个点拆点,容量上下届都设为v[i],然后每个点间能连边的直接连边就可以了。然后在这个图的基础上转化为可行流最小流,求一下就可以了。。。 #include #include #include #include #include #include #inclu...
分类:其他好文   时间:2014-05-03 23:52:44    阅读次数:405
nefu 650 max num
题目:经典dp题目,求出最大相邻子序列的和。 方法:给出两种方法,一种dp,一种直接暴力(数据量小的时候可以考虑)。 代码1: #include #include using namespace std; int main() { int n; int t=1; cin>>n; int s[100010]; while(t<=n) { ...
分类:其他好文   时间:2014-05-03 17:02:34    阅读次数:324
[ACM] hdu 1087 Super Jumping! Jumping! Jumping! (动态规划)
Super Jumping! Jumping! Jumping! Time Limit : 2000/1000ms (Java/Other)   Memory Limit : 65536/32768K (Java/Other) Total Submission(s) : 6   Accepted Submission(s) : 5 Font: Times New Roman | Verdan...
分类:其他好文   时间:2014-05-03 16:47:07    阅读次数:262
hdu_1228 A + B
http://acm.hdu.edu.cn/showproblem.php?pid=1228 分析:         我只是想练习一下map的用法,不然又忘了。。。 代码: //hdu 1228 #include #include #include #include #include using namespace std; map d; void init()...
分类:其他好文   时间:2014-05-03 15:40:58    阅读次数:232
HDU 4355 Party All the Time 三分
点击打开链接 Party All the Time Time Limit: 6000/2000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 2961    Accepted Submission(s): 939 Problem Description...
分类:其他好文   时间:2014-05-03 15:30:56    阅读次数:374
HDU 2894 欧拉回路
#include #include #include #include #include using namespace std; #define N 20020 struct node{ int from, to, dou, nex; }edge[N]; int head[N], edgenum; void add(int u, int v,int dou){ node E={u,v,dou...
分类:其他好文   时间:2014-05-03 15:25:32    阅读次数:340
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!