
ACM—HDU
文章平均质量分 77
GreenHand
喜欢编程,喜欢象棋,喜欢台球。
追寻同道中人
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
hdu-1164涮素数+质因子分解
<br />#include<iostream> #include<math.h> #include<fstream> using namespace std; const int maxn = 65535; bool isprime[maxn]; int prime[maxn/2]; int ans[32]; int getprime(int n) { memset(isprime, true, sizeof(isprime)); int i, j, k = 0; int s原创 2011-06-01 10:55:00 · 609 阅读 · 0 评论 -
2066-多源多汇最短路
/**********************************************************************/|2011-06-10 14:58:51 Accepted 2066 15MS 4220K 2307 B C++| 题意:求一个含多个源点多个汇点的多源多汇最短路问题,直接加一个超级源点| 和超级汇点即可, 不过要小心找最大节点时一定要找准哦,原创 2011-06-10 15:04:00 · 2614 阅读 · 0 评论 -
2544- dijkstra+heap 模板水过
/**************************************/|直接求最短路就行了,不过注意是无向图/**************************************/#include#include#includeusing namespace std;const int INF = 0x3f3f3f3f;const int maxn原创 2011-06-10 11:08:00 · 788 阅读 · 0 评论