{HDU}{4221}{Greedy}{Greedy}
摘要:
贪心处理,关键是寻找题意中隐含的条件,并且证明贪心算法的正确性。输出一定用"%I64d"而不是"%lld"!#include <iostream>#include <string>#include <cstring>#include <cstdio>#include <algorithm>#include <memory>#include <cmath>#include <bitset>#include <queue>#include <ve 阅读全文
posted @ 2012-05-20 01:13 Lvpengms 阅读(304) 评论(0) 推荐(0) 编辑