![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PAT
数理化生天里的计算机
这个作者很懒,什么都没留下…
展开
-
PAT A1055 The World‘s Richest (25 分)
水题直接做。 #include <stdio.h> #include <string.h> #include <algorithm> #define maxn 100010 using namespace std; struct people{ char name[20]; int age; int worth; }peo[maxn]; int m,Amin,Amax; bool cmp(people a,people b) { if(原创 2021-03-24 14:45:38 · 152 阅读 · 0 评论 -
PAT A1016 Phone Bills (25 分) 超时(未解决)
自己写了一个代码只过了测试点0和3.。。。 然后百度发现没有匹配记录的用户不应该输出,于是过了一两天又重新写了一个,代码如下: #include <stdio.h> #include <string.h> #include <algorithm> using namespace std; const int maxn=1100; int per_bill[24]; struct customer{ char id[30];//id char time_s原创 2021-03-24 10:30:10 · 239 阅读 · 0 评论