![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
排序
小耗子001
得到的和得不到的都是收获
展开
-
patA 1012The Best rank
#include <iostream>#include <cstdio>#include <algorithm>#include <cstring>using namespace std;char map[5]={'0','C','M','E','A'};struct student{ char id[15]; int c_score,m_score...原创 2018-04-22 21:30:28 · 207 阅读 · 0 评论 -
patA1012 The Best Rank(有个段错误)
#include <iostream>#include <cstdio>#include <algorithm>#include <cstring>#include <cmath>using namespace std;char map[6]={'0','A','C','M','E'};struct student{ char id[20...原创 2018-04-23 20:04:55 · 392 阅读 · 1 评论 -
patA1012 The Best Rank
#include <iostream>#include <cstdio>#include <cmath>#include <algorithm>using namespace std;struct student{ int id; int grade[4];}stu[2010];char course[]={'A','C','M','E'...原创 2018-04-23 20:05:35 · 180 阅读 · 0 评论 -
patA1028 List Sorting
#include <iostream>#include <cstdio>#include <algorithm>#include <cstring>using namespace std;struct student{ int id; char name[10]; int score;}stu[100002];bool cmp1(student a,...原创 2018-04-23 20:57:19 · 117 阅读 · 0 评论 -
patA1055 The World's Richest
#include <iostream>#include <cstdio>#include <algorithm>#include <cstring>using namespace std;struct richman{ char name[15]; int age; int worth;}man[100005];struct queryman{ in...原创 2018-04-23 21:40:47 · 187 阅读 · 0 评论 -
patA 1075 Pat Judge
#include <iostream>#include <cstdio>#include <cstring>#include <algorithm>using namespace std;int problem[6]={0};struct student{ char id[20]; int is_submit[6]; int hig...原创 2018-04-24 20:34:29 · 182 阅读 · 0 评论 -
PatA 1083 List Grades
#include <iostream>#include <cstdio>#include <algorithm>using namespace std;struct student{ char name[15],id[15]; int grade; bool operator <(const student & a) const { retur...原创 2018-04-24 20:52:51 · 124 阅读 · 0 评论 -
patA 1062. Talent and Virtue
#include <iostream>#include <cstdio> #include <algorithm>#include <cstring>using namespace std;struct person{ char id[15]; int v_score; int g_score; int rank; bool in; person()...原创 2018-04-21 21:55:08 · 169 阅读 · 0 评论