![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
pat advance practice
文章平均质量分 61
汪少升
这个作者很懒,什么都没留下…
展开
-
Review pat1055 compare cin with scanf,etc..
Now that we prefer to ,why we use in some acm原创 2014-05-13 13:36:21 · 503 阅读 · 0 评论 -
pat 1055 how to improve the performance
#include #include #include #include using namespace std; struct Person { char name[9]; int age; int worth; }; struct Comp { bool operator()(Person const &per_a,Person const &per_b) { if(per_a原创 2014-05-12 20:50:27 · 417 阅读 · 0 评论 -
pat1080 graduate admission
#include #include #include #include using namespace std; #define N 40001 #define M 101 #define K 6 struct Applicant { int id,ge,gi; double fg; int rank; int prefer[K]; }; struct School { in原创 2014-07-31 14:14:38 · 405 阅读 · 0 评论 -
PAT 1050 String Subtraction
Given two strings S1 and S2, S = S1 - S2 is defined to be the remaining string after taking all the characters in S2 from S1. Your task is simply to calculate S1 - S2 for any given strings. However,原创 2014-08-23 14:12:38 · 350 阅读 · 0 评论 -
PAT 1014 Waiting in Line
Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules for the customers to wait in line are: The s原创 2014-08-25 14:57:20 · 347 阅读 · 0 评论 -
PAT 1025 反转链表
#include #include #define MAXNODE 100001 struct Node { int data; char addr[8]; char next[8]; }node[MAXNODE]; struct Node *pnode[MAXNODE]; int main(void) { char ad[8]; int nnode, k; in原创 2016-07-08 15:46:44 · 387 阅读 · 0 评论 -
PAT1025 反转链表
原创 2016-07-08 20:37:30 · 336 阅读 · 0 评论 -
PAT 1026 Table tennis
使用了3个优先队列和两个普通队列。原创 2016-08-20 12:14:06 · 334 阅读 · 0 评论