- 博客(16)
- 收藏
- 关注
原创 HDU 5318 The Goddess Of The Moon(递推+矩阵优化)
HDU 5318 The Goddess Of The Moon(递推+矩阵优化)
2015-07-31 11:27:13 725
原创 HDU 1452 Happy 2004(唯一分解定理)
#include <iostream>#include <cstring>#include <algorithm>#include <cstdio>using namespace std;const int mod = 29;int quick_mod(int a,int b){ int ans = 1; while(b){ if(b&1) ans=ans*a%mod; b>>=1; a=a*a%mod; }
2015-07-27 20:50:13 696
原创 HDU 5235 Friends (2015 Multi-University Training Contest 2 搜索+剪枝)
HDU 5235 Friends (2015 Multi-University Training Contest 2 搜索+剪枝)
2015-07-23 19:39:37 876
原创 HDU 4081 Qin Shi Huang's National Road System(最小生成树/次小生成树)
HDU 4081 Qin Shi Huang's National Road System(最小生成树/次小生成树)
2015-07-12 21:07:22 921
原创 HDU 3641 Treasure Hunting(阶乘素因子分解+二分)
HDU 3641 Treasure Hunting(阶乘素因子分解+二分)
2015-07-06 10:19:25 887
原创 HDU 5277 YJC counts stars (二维平面图求最大团)
HDU 5277 YJC counts stars (二维平面图求最大团)
2015-07-05 10:49:21 924
原创 HDU 4462 Scaring the Birds (暴力枚举DFS)
HDU 4462 Scaring the Birds (暴力枚举DFS)
2015-07-03 19:19:27 983
转载 ACdream 1097 线段相交(直线与线段相交模板)
题目链接:传送门转载地址:传送门分析:枚举两个端点然后与其他的线段判断下是否相交就可以。代码如下:#include #include #include #include #include #include #include #include #include #include #include #include using namespace std;c
2015-07-03 10:30:49 614
原创 UVALive 6665 Dragon’s Cruller (BFS + 优先队列+hash)
UVALive 6665 Dragon’s Cruller (BFS + 优先队列+hash)
2015-07-02 15:28:34 1017
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人