2015年7月29日

CodeForces 3B Lorry(贪心背包)

摘要: 题意:有n件物品(n#include#include#include#include#includeusing namespace std;int t,n,m,num1,num2;struct node{ int num; int id,w;}q[500100];int cmp(node... 阅读全文

posted @ 2015-07-29 16:14 大树置林 阅读(209) 评论(0) 推荐(0) 编辑

CodeForces 1B Spreadsheets(模拟)

摘要: 题意:将字母串+数字的格式与R+数字+C+数字的格式相互转换,每种格式均用来表示行列数;思路:模拟;#include#include#include#includeusing namespace std;int t,n,m;string s;char a[500010];int main(){ ... 阅读全文

posted @ 2015-07-29 15:03 大树置林 阅读(195) 评论(0) 推荐(0) 编辑

导航