2013年4月16日
摘要: 题目链接。分析:自己写的时候是直接模拟的,但似乎训练指南上的解法更好。偶的代码:View Code #include <iostream>#include <algorithm>#include <cstdio>using namespace std;const int maxn = 1010;struct Job{ int b, j;}a[maxn];int cmp(const Job &x, const Job &y){ return x.j > y.j;}int main(){ int n, cnt=0; while(cin> 阅读全文
posted @ 2013-04-16 13:04 Still_Raining 阅读(258) 评论(0) 推荐(0)