该文被密码保护。 阅读全文
摘要:
[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的改进 每次使用两条直 阅读全文
摘要:
Position Solution 2×n^2-n+1 证明见分割问题 Code 阅读全文
摘要:
Position: http://codevs.cn/problem/1183/ List Codevs1183 泥泞的道路 List Description Input Output Sample Input Sample Output HINT Solution Code Description 阅读全文
该文被密码保护。 阅读全文
摘要:
std::pair 是可以比较大小的有这样的全局函数 也就是说可以比较大小,先按first比较,如果相等,再按照second比较。(从小到大) 好东西~~记坐标很好,可以奇技淫巧 用法: pair<int,int>a a=make_pair(x,y) a.first→ x a.second→ y 阅读全文
摘要:
连环锁 Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 1260 Accepted: 403 Description 许多人一定很熟悉九连环(如下图),九个环被串在一起,操作规则如下:第一个(右边)环可以任意装卸,如果第k个环没有 阅读全文
摘要:
Chain Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 3414 Accepted: 1126 Description Byteland had not always been a democratic country. Th 阅读全文
该文被密码保护。 阅读全文
该文被密码保护。 阅读全文
摘要:
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 阅读全文
该文被密码保护。 阅读全文
摘要:
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 阅读全文