摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=4293这题单拉出来写篇吧 确实不错的一题将每个人说的话 转化一下 可以算出它处在哪个段中 题目就转换成了求不相交的最大段数 注意区间相同的情况 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 struct node 8 { 9 int l,r;10 }p[510];11 int dp[510],w[510][510];12 bool cmp(node a,node b)13 {14 ... 阅读全文
posted @ 2013-08-10 19:31
_雨
阅读(211)
评论(0)
推荐(0)
摘要:
记次CF吧 1题。。。B题。。因为循环的i没设成long long 却参与了运算 结果就悲剧了 一直交 一直挂 。。上题A 水。。 第一次少了个空格还。。 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 #define LL long long 8 LL x,y; 9 int main()10 {11 int i,j,k,n,m;12 cin>>x>>y;13 if((x0)||(x>0&&y0)25 cout 2 #include 3 阅读全文
posted @ 2013-08-10 01:55
_雨
阅读(354)
评论(0)
推荐(0)