
贪心
Linfanty
啦啦啦~
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
G - Tian Ji -- The Horse Racing
https://vjudge.net/contest/149236#problem/G http://blog.youkuaiyun.com/lawrencesgj/article/details/8001638 dovebs:动态规划 http://blog.youkuaiyun.com/u012773338/article/details/29352841 NowAndForever: sort(t转载 2017-02-03 23:34:10 · 446 阅读 · 0 评论 -
寒假训练(2)——贪心 E - Wooden Sticks
There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodworking machine in one by one fashion. It needs some time, called翻译 2017-02-03 15:34:53 · 384 阅读 · 0 评论 -
寒假训练(2)——贪心 D - Moving Tables
题目 https://vjudge.net/contest/149236#problem/D 首先 scanf时就swap 排序 很方便 for(int j=0; j<N; j++) { scanf("%d %d",&begin,&end); if(begin>end) swap(begin,end); for(int k=(begin+1)/2; k<=(end+1)/2;原创 2017-02-01 03:49:07 · 548 阅读 · 0 评论