摘要:
题目传送门 1 /* 2 题意:给出一种方案使得abs (A - G) 6 #include 7 #include 8 #include 9 #include 10 using namespace std;11 12 const int MAXN = 1e6 + 10;13 cons... 阅读全文
posted @ 2015-06-10 16:13
Running_Time
阅读(164)
评论(0)
推荐(0)
摘要:
题目传送门 1 /* 2 贪心:排序后,当a[3] > 2 * (a[1] + a[2]), 可以最多的2个,其他的都是1个,ggr,ggb, ggr。。。 ans = a[1] + a[2]; 3 或先2个+1个,然后k个rgb。。。r = x + k; g = 2 * (x + z) +... 阅读全文
posted @ 2015-06-10 16:00
Running_Time
阅读(143)
评论(0)
推荐(0)
摘要:
题目传送门 1 /* 2 贪心:按照能选的个数和点数降序排序,当条件不符合就break,水题啊! 3 */ 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 10 const int MAXN =... 阅读全文
posted @ 2015-06-10 15:54
Running_Time
阅读(136)
评论(0)
推荐(0)
摘要:
题目传送门 1 /* 2 贪心:每一次选取最多的线段,最大能放置nuts,直到放完为止,很贪婪! 3 题目读不懂多读几遍:) 4 */ 5 #include 6 #include 7 #include 8 #include 9 using namespace std;10 1... 阅读全文
posted @ 2015-06-10 15:49
Running_Time
阅读(136)
评论(0)
推荐(0)

浙公网安备 33010602011771号