会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
sola94
纵有疾风起 人生不言弃。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
22
下一页
2015年7月20日
poj 3620 Avoid The Lakes(dfs)
摘要: #include#include#include#includeusing namespace std;int mat[200][200];int vis[200][200];int ans,n,m,rt;int op[4][2]={0,-1,0,1,1,0,-1,0};bool isok(int ...
阅读全文
posted @ 2015-07-20 11:04 sola94
阅读(107)
评论(0)
推荐(0)
2015年7月18日
hdu 1014 Uniform Generator(水 枚举 gcd)
摘要: 题意:有一个数列 seed[x+1]=(seed(x)+step)%mod 给出 step 和 mod 如果求出的是以 1。。。mod-1 为循环节的数列 则为 good choice 否则 则是 bad choice思路:1.用标记法 如果 形成循环节时 每个数都被标记到 则good choice...
阅读全文
posted @ 2015-07-18 10:43 sola94
阅读(121)
评论(0)
推荐(0)
2015年7月11日
hdu 4597 Play Game (记忆化搜索 区间dp)
摘要: #include#include#include#include#includeusing namespace std;int dp[30][30][30][30];int vis[30][30][30][30];int a[2][30],sum[2][30];int dfs(int i,int j...
阅读全文
posted @ 2015-07-11 23:38 sola94
阅读(97)
评论(0)
推荐(0)
2015年7月10日
UVA - 10891 Game of Sum(记忆化搜索 区间dp)
摘要: #include#include#include#include#includeusing namespace std;int a[100+10];int dp[120][120];int sum[120];int vis[120][120];int dfs(int f,int t){ int ...
阅读全文
posted @ 2015-07-10 00:30 sola94
阅读(115)
评论(0)
推荐(0)
2015年7月8日
hdu 5233 Gunner II (stl vector map)
摘要: #include#include#include#include#include#include#includeusing namespace std;vector a[100000+100];map temp;int h[100000+100];int shoot[100000+100];int...
阅读全文
posted @ 2015-07-08 16:02 sola94
阅读(117)
评论(0)
推荐(0)
2015年7月3日
poj 2001 Shortest Prefixes(Trie)
摘要: #include#include#include#includeusing namespace std;int ch[30000][30];int val[30000][30];char str[1000+10][20+10];int sz;int idx(char c) {return c-'a'...
阅读全文
posted @ 2015-07-03 01:01 sola94
阅读(101)
评论(0)
推荐(0)
2015年7月2日
CSU 1588 合并果子(贪心 优先队列)
摘要: #include#include#include#include#include#include //friend bool operator b.coun; } priority_queue Q;using namespace std;struct node{ int num; ...
阅读全文
posted @ 2015-07-02 01:43 sola94
阅读(183)
评论(0)
推荐(0)
ACdream 1735 输油管道(排序)
摘要: #include#include#include#include#include#include#include#include#include#includeusing namespace std;int a[1000000+100];int main(){ int n; int i,...
阅读全文
posted @ 2015-07-02 01:42 sola94
阅读(124)
评论(0)
推荐(0)
2015年6月10日
HDU 4221 Greedy?(贪心)
摘要: 题意:思路:#include#include#include#include#include#include#include#include#includeusing namespace std;struct Work{ __int64 c,d;};Work work[100000+10];i...
阅读全文
posted @ 2015-06-10 05:03 sola94
阅读(151)
评论(0)
推荐(0)
HDU 4223 Dynamic Programming?(dp)
摘要: 题意:思路:#include#include#include#include#includeusing namespace std;int a[200];int dp1[1000+10];int dp2[1000+10];int main(){ int t,n; int i,j,k; ...
阅读全文
posted @ 2015-06-10 05:02 sola94
阅读(177)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
22
下一页
公告