会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
这个萌新逼很帅
上一页
1
2
3
4
5
下一页
2017年12月14日
UVA 140 递归 尝试剪枝ac10ms
摘要: //uva140 AC10ms /*刘叔书里说起了剪枝,就想试一下,昨晚一直WA,想看刘叔的代码发现他用的是直接枚举,讲道理我觉得剪枝对条件的筛选也需要时间,不一定快,下面是递归和加入 剪枝的AC代码,刚才跑了一下变成20ms,不管了吃饭去*/
阅读全文
posted @ 2017-12-14 11:31 只是个回忆录
阅读(162)
评论(0)
推荐(0)
2017年11月28日
uva 220 模拟黑白棋ac
摘要: #include using namespace std; const int dr[] = { -1,-1,0,1,1, 1, 0,-1 }; const int dc[] = { 0, 1,1,1,0,-1,-1,-1 }; char col; char board[15][15]; char cmd[5]; bool legal(int r, int c) { return r > ...
阅读全文
posted @ 2017-11-28 21:18 只是个回忆录
阅读(161)
评论(0)
推荐(0)
2017年11月27日
UVA127 模拟牌堆AC 120ms
摘要: //用了三小时AC的还是很激动的!!
阅读全文
posted @ 2017-11-27 12:54 只是个回忆录
阅读(115)
评论(0)
推荐(0)
uva804 四分树ac
摘要: //70ms 在输出格式卡了挺久
阅读全文
posted @ 2017-11-27 00:02 只是个回忆录
阅读(132)
评论(0)
推荐(0)
2017年11月26日
uva536 二叉树重建ac
摘要: #include #include #include #include using namespace std; map weight2count; char s[1= '0'&&s[k] second)max = it->second; printf("%d\n", sum-max); } return 0; }
阅读全文
posted @ 2017-11-26 13:02 只是个回忆录
阅读(124)
评论(0)
推荐(0)
uva 804WAWAWA--不想看了以后再说
摘要: #include #include #include using namespace std; int tokens[105]; vector in[105], out[105]; int NP, NT, NF; int solve() { int count = 0, tran_i; for (tran_i = 0;tran_i = 0;i--) { ...
阅读全文
posted @ 2017-11-26 12:57 只是个回忆录
阅读(189)
评论(0)
推荐(0)
2017年11月20日
uva10129 play on words
摘要: #include #include #include char s[1005]; int in[27], out[27]; int g[27][27]; int vis[27]; //int same[27]; int Euler()//返回1表示在图全连通的条件下,是欧拉道路 { int n = 0; for (int i = 1;i 1)return 0; ...
阅读全文
posted @ 2017-11-20 20:41 只是个回忆录
阅读(137)
评论(0)
推荐(0)
2017年11月14日
tree--
摘要: 用数组实现数--好像只能开一棵树
阅读全文
posted @ 2017-11-14 21:30 只是个回忆录
阅读(143)
评论(0)
推荐(0)
2017年11月13日
打印素数表orz
摘要: 记笔记记笔记 #include <stdio.h>#include <math.h>char table[10000003] = {0};void print_table(int h){ int m = sqrt(h + 0.5); for (int i = 4;i <= h;i += 2) tab
阅读全文
posted @ 2017-11-13 22:03 只是个回忆录
阅读(137)
评论(0)
推荐(0)
立个flag
该文被密码保护。
阅读全文
posted @ 2017-11-13 21:35 只是个回忆录
阅读(0)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
导航
博客园
首页
新随笔
联系
订阅
管理
公告