pat 1062. Talent and Virtue (25)
摘要:
难得的一次ac题目意思直接,方法就是对virtue talent得分进行判断其归属类型,用0 1 2 3 4 表示 不合格 sage noblemen foolmen foolmen再对序列进行排序 优先级 类型>total grade>virtue>id#include#include#include#includeusing namespace std;#define N 100005struct node{ char id[10]; int v,t,c;}s[N];int cmp(const void *a,const void *b){ struct node *x= 阅读全文
posted @ 2013-09-02 18:42 新一 阅读(365) 评论(0) 推荐(0)
浙公网安备 33010602011771号