上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 29 下一页
摘要: 斐波纳切数列·二改 1 #include <iostream> 2 #include <algorithm> 3 #include <cstdio> 4 #include <cstring> 5 #include <cstdlib> 6 #include <queue> 7 #include <st 阅读全文
posted @ 2017-02-01 14:10 KingSann 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 数字三角形 1 #include <iostream> 2 #include <algorithm> 3 #include <cstdio> 4 #include <cstring> 5 #include <cstdlib> 6 #include <queue> 7 #include <string 阅读全文
posted @ 2017-02-01 13:50 KingSann 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <algorithm> 3 #include <cstdio> 4 #include <cstring> 5 #include <cstdlib> 6 #include <queue> 7 #include <string> 8 #i 阅读全文
posted @ 2017-02-01 10:13 KingSann 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 本来以为是欧式距离啥玩意乱搞。。。然后其实是bfs暴搜。。。 1 #include <iostream> 2 #include <algorithm> 3 #include <cstdio> 4 #include <cstring> 5 #include <cstdlib> 6 #include < 阅读全文
posted @ 2017-02-01 09:39 KingSann 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 水题。。除完之后判断是否需要再来一块。。。 (貌似用ceil()的人更多一些) 1 #include <iostream> 2 #include <algorithm> 3 #include <cstdio> 4 #include <cstring> 5 #include <cstdlib> 6 u 阅读全文
posted @ 2017-02-01 08:51 KingSann 阅读(73) 评论(0) 推荐(0) 编辑
摘要: http://hzwer.com/844.html 1 #include <iostream> 2 #include <algorithm> 3 #include <cstdio> 4 #include <cstring> 5 #include <cstdlib> 6 using namespace 阅读全文
posted @ 2017-02-01 08:15 KingSann 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 同田忌赛马 1 #include <iostream> 2 #include <algorithm> 3 #include <cstdio> 4 #include <cstring> 5 #include <cstdlib> 6 using namespace std; 7 8 const int 阅读全文
posted @ 2017-01-31 23:44 KingSann 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 压缩一下块,然后区间dp。 左右两边合并的时候的代价是是否加起来大于2。(是否需要再插入一个球) 1 uses math; 2 var _color:array[0..1000] of Longint; 3 _tot:array[0..1000] of Longint; 4 src:array[0. 阅读全文
posted @ 2017-01-31 21:49 KingSann 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 扫一遍凸包,然后卡一圈壳。 (pascal好玄) 1 type Point=record 2 x,y:Real; 3 end; 4 var i,j,n,top,his,p1,p2:longint; 5 p,stack:array[0..10010] of Point; 6 ans:Real; 7 8 阅读全文
posted @ 2017-01-31 20:53 KingSann 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 1 var i,j,k,n,m,len,head,tail,p,tot,ans1,ans2,x:Longint; 2 ch:array[0..20000] of array[0..30] of Longint; 3 fail:array[0..20000] of Longint; 4 fg:arra 阅读全文
posted @ 2017-01-31 18:20 KingSann 阅读(72) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 29 下一页