上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
该文被密码保护。 阅读全文
posted @ 2016-10-15 09:53 _Mashiro 阅读(10) 评论(0) 推荐(0) 编辑
摘要: [a]n条直线最多分平面问题 n条直线,最多可以把平面分为多少个区域? 见K 切糕 递推关系:都将原来所有的区域分成两半,因此第n条直线会在原来的基础上再添加n个平面 f[0]=1,f[1]=2...f[n]=f[n-1]+n 推导公式f[n]=n*(n+1)/2+1 [b]a的改进 每次使用两条直 阅读全文
posted @ 2016-10-14 22:33 _Mashiro 阅读(420) 评论(0) 推荐(2) 编辑
摘要: Position Solution 2×n^2-n+1 证明见分割问题 Code 阅读全文
posted @ 2016-10-14 22:32 _Mashiro 阅读(466) 评论(0) 推荐(0) 编辑
摘要: Position: http://codevs.cn/problem/1183/ List Codevs1183 泥泞的道路 List Description Input Output Sample Input Sample Output HINT Solution Code Description 阅读全文
posted @ 2016-10-13 23:05 _Mashiro 阅读(244) 评论(0) 推荐(1) 编辑
该文被密码保护。 阅读全文
posted @ 2016-10-13 17:04 _Mashiro 阅读(20) 评论(0) 推荐(0) 编辑
摘要: std::pair 是可以比较大小的有这样的全局函数 也就是说可以比较大小,先按first比较,如果相等,再按照second比较。(从小到大) 好东西~~记坐标很好,可以奇技淫巧 用法: pair<int,int>a a=make_pair(x,y) a.first→ x a.second→ y 阅读全文
posted @ 2016-10-13 15:52 _Mashiro 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 连环锁 Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 1260 Accepted: 403 Description 许多人一定很熟悉九连环(如下图),九个环被串在一起,操作规则如下:第一个(右边)环可以任意装卸,如果第k个环没有 阅读全文
posted @ 2016-10-12 18:52 _Mashiro 阅读(611) 评论(0) 推荐(0) 编辑
摘要: Chain Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 3414 Accepted: 1126 Description Byteland had not always been a democratic country. Th 阅读全文
posted @ 2016-10-12 18:04 _Mashiro 阅读(488) 评论(0) 推荐(1) 编辑
该文被密码保护。 阅读全文
posted @ 2016-10-12 17:47 _Mashiro 阅读(8) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-10-12 17:29 _Mashiro 阅读(11) 评论(0) 推荐(0) 编辑
摘要: Piotr's Ants Porsition:Uva 10881 白书P9 中文改编题:【T^T】【FJUT】第二届新生赛真S题地震了 "One thing is for certain: there is no stopping them;the ants will soon be here. A 阅读全文
posted @ 2016-10-11 20:37 _Mashiro 阅读(157) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-10-11 12:46 _Mashiro 阅读(3) 评论(0) 推荐(0) 编辑
摘要: E. Beautiful Subarrays time limit per test: 3 seconds memory limit per test: 512 megabytes input: standard input output: standard output One day, ZS t 阅读全文
posted @ 2016-10-10 12:53 _Mashiro 阅读(575) 评论(0) 推荐(0) 编辑
摘要: 借光光,YZC的福气(今天拿到Rank1),本来还可以更好的,前面吃M去了,ABC都很晚切,而且异常兴奋,结果WA了好多发,但还是由于水题看题不清,分析不清导致的 A Home W的数学 Describe:我们都知道,Home W的数学最厉害了。有一天,他又开始开动脑筋了,他想:“为什么数字总是要从 阅读全文
posted @ 2016-10-09 22:56 _Mashiro 阅读(721) 评论(3) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-10-09 22:43 _Mashiro 阅读(5) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页