会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
蟹脑板
你们为什么都这么熟练啊!!!!!!! (╯°Д°)╯︵┻━┻
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2016年8月23日
[刷题]算法竞赛入门经典(第2版) 5-6/UVa1595 - Symmetry
摘要: 题意:平面上给若干点,问它们是不是关于某垂直于x轴的直线对称。代码:(Wrong Answer, –ms)//UVa1595 - Symmetry#include#include#includeusing namespace std;struct point { int x,...
阅读全文
posted @ 2016-08-23 14:35 蟹脑板
阅读(347)
评论(0)
推荐(0)
2016年8月21日
[刷题]算法竞赛入门经典(第2版) 5-5/UVa10391 - Compound Words
摘要: 题意:问在一个词典里,那些单词是复合词,即哪些单词是由两个单词拼出来的。渣渣代码:(Accepted, 30ms)//UVa10391 - Compound Words#include#include#includeusing namespace std;set dic;int m...
阅读全文
posted @ 2016-08-21 17:25 蟹脑板
阅读(160)
评论(0)
推荐(0)
[刷题]算法竞赛入门经典(第2版) 5-4/UVa10763 - Foreign Exchange
摘要: 题意:有若干交换生、若干学校,有人希望从A校到B校,有的想从B到C、C到A等等等等。如果有人想从A到B也刚好有人想从B到A,那么可以交换(不允许一对多、多对一)。看作后如果有人找不到人交换,那么整个交换计划失败。代码:(Accepted, 50ms)//UVa10763 - For...
阅读全文
posted @ 2016-08-21 13:01 蟹脑板
阅读(348)
评论(0)
推荐(0)
2016年8月18日
[刷题]算法竞赛入门经典(第2版) 5-3/UVa10935 - Throwing cards away I
摘要: 书上具体所有题目:http://pan.baidu.com/s/1hssH0KO代码:(Accepted,0 ms)//UVa10935 - Throwing cards away I#include#includeint N;int main(){ //freopen("i...
阅读全文
posted @ 2016-08-18 19:41 蟹脑板
阅读(128)
评论(0)
推荐(0)
[刷题]算法竞赛入门经典(第2版) 5-2/UVa1594 - Ducci Sequence
摘要: 书上具体所有题目:http://pan.baidu.com/s/1hssH0KO代码:(Accepted,20 ms)//UVa1594 - Ducci Sequence#include#include#include#includeusing namespace std;int ...
阅读全文
posted @ 2016-08-18 14:41 蟹脑板
阅读(204)
评论(0)
推荐(0)
2016年8月17日
[刷题]算法竞赛入门经典(第2版) 5-1/UVa1593 - Alignment of Code
摘要: 书上具体所有题目:http://pan.baidu.com/s/1hssH0KO代码:(Accepted,0 ms)//UVa1593 - Alignment of Code#include#include#include#include#include#include#inclu...
阅读全文
posted @ 2016-08-17 18:10 蟹脑板
阅读(261)
评论(0)
推荐(0)
2016年8月16日
[笔记]cin、cout与scanf、printf的效率差异对比分析
摘要: 之前上传UVa227 puzzle时,好不容易AC了,但发现自己用时50(ms),而在VJ上看到人家都是40ms、20ms,于是打开一个20ms的代码查看人家强在哪里。但结果研究了半天感觉差不多,于是想着应该不是算法的问题。然后又想到,网上提交的答案,大家都是用scanf和prin...
阅读全文
posted @ 2016-08-16 18:52 蟹脑板
阅读(3741)
评论(0)
推荐(0)
2016年8月14日
[刷题]算法竞赛入门经典(第2版) 4-10/UVa815 - Flooded!
摘要: 书上具体所有题目:http://pan.baidu.com/s/1hssH0KO代码:(Accepted,0 ms)//UVa815 - Flooded!#include#includeint M, N, W, S[1000], T = 0;int main(){ //fre...
阅读全文
posted @ 2016-08-14 15:20 蟹脑板
阅读(177)
评论(0)
推荐(0)
2016年8月13日
[刷题]算法竞赛入门经典(第2版) 4-9/UVa1591 - Data Mining
摘要: 书上具体所有题目:http://pan.baidu.com/s/1hssH0KO 代码:(Accepted,0 ms)#includeunsigned N, A, B, Sp, Sq, ansA, ansB;unsigned long long Pofs, K, nowK;int ...
阅读全文
posted @ 2016-08-13 15:04 蟹脑板
阅读(158)
评论(0)
推荐(0)
2016年8月11日
[刷题]算法竞赛入门经典(第2版) 4-8/UVa12108 - Extraordinarily Tired Students
摘要: 书上具体所有题目:http://pan.baidu.com/s/1hssH0KO 代码:(Accepted,0 ms)//UVa12108 - Extraordinarily Tired Students#includestruct how_cute_my_sleepy_boys...
阅读全文
posted @ 2016-08-11 11:26 蟹脑板
阅读(160)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告