摘要: 一开始不知道在想啥,竟然写了个双重for循环的。T T一直WA,又没效率。T T然后在纸上模拟演算,改了,就AC了以后做题果断要先模拟一下例子。。。能加深对题目的理解。当教训吧。。太懒导致写了好久。.#include #include#includeusing namespace std; int ... 阅读全文
posted @ 2013-07-22 20:53 hr_whisper 阅读(150) 评论(0) 推荐(0)
摘要: 挺简单的贪心。直觉告诉我直接从时间长的任务开始交代就好了。可是总觉得怪怪的。直接敲了代码上去就AC了。然后看了看书发现思路没错:)#include using namespace std; const int MAXN=1000+10;int B[MAXN],J[MAXN];int main()... 阅读全文
posted @ 2013-07-22 11:45 hr_whisper 阅读(129) 评论(0) 推荐(0)
摘要: 很简单的题目,今天开始训练指南之旅~一次AC 嘻嘻。直接排序比较就可以了。#include #includeusing namespace std; const int MAXN=20000+10;int dragon[MAXN],knight[MAXN];int main() { int... 阅读全文
posted @ 2013-07-22 10:45 hr_whisper 阅读(127) 评论(0) 推荐(0)