acm
flytowns
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
hduoj 2102 a计划
bfs #include<iostream> #include<cstring> #include<cstdio> #include<algorithm> #include<queue> #include<cmath> using namespace std; typedef struct { int x; i...原创 2019-01-19 15:23:38 · 189 阅读 · 0 评论 -
hdu2181
dfs #include<iostream> #include<algorithm> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int Map[25][25]; int point; int book[20]; int ans[20]; ...原创 2019-01-19 15:28:43 · 327 阅读 · 2 评论 -
hdu1301
克鲁斯卡尔 #include<iostream> #include<cstdio> #include<algorithm> #include<cstring> using namespace std; struct node { int val; int s; int e; } nn[10050]; int n, m; int...原创 2019-01-20 14:19:52 · 208 阅读 · 0 评论 -
poj 1456
优先队列 贪心 优先队列:每次加入队列 都将最大的放在队首(默认) #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<queue> #include<cmath> using namespace std; str...原创 2019-01-20 16:31:51 · 292 阅读 · 0 评论 -
poj 1601
扩展欧几里得 #include<iostream> #include<cstring> #include<cmath> #include<algorithm> #include<cmath> using namespace std; long long gcd(long long a,long long b) { if(b==0)...原创 2019-01-26 00:09:42 · 154 阅读 · 0 评论 -
Mysterious Bacteria
质因数分解 #include<iostream> #include<cstring> #include<algorithm> #include<cmath> #include<cstdio> using namespace std; int a[1005]; //质因子 int b[1005]; //质因子的个数 const int ...原创 2019-01-26 20:39:44 · 158 阅读 · 0 评论 -
素数打表判断
void biao() { memset(f, 0, sizeof(f)); int i, j; f[0]=1; f[1]=1; for(i=2; i<=N; i++) { if(f[i]==0) { for(j=i*2; j<=N; j+=i) { ...原创 2019-01-27 15:54:02 · 211 阅读 · 0 评论 -
Enlarge GCD
#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<string> #include<cmath> using namespace std; const int maxn = 1.5e7 + 10; int vis...原创 2019-02-16 12:49:42 · 202 阅读 · 0 评论
分享