2014年1月21日
摘要: 原题地址:http://codeforces.com/problemset/problem/383/A题目大意:有 n 头奶牛,全部看着左边或者右边,现在开始给奶牛挤奶,给一头奶牛挤奶时,所有能看到它的奶牛会损失一升奶,已经挤过的奶牛不会再损失,求一种挤奶顺序,使得失去的牛奶数最少。(1 3 #include 4 #include 5 6 using namespace std; 7 8 const int maxn = 200005; 9 10 inline int getint()11 {12 int ans(0); char w = getchar();13 w... 阅读全文
posted @ 2014-01-21 12:31 SnowyJone 阅读(501) 评论(0) 推荐(0) 编辑