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 · 544 阅读 · 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 · 464 阅读 · 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 · 447 阅读 · 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 · 387 阅读 · 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 · 388 阅读 · 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 · 436 阅读 · 0 评论 -
PAT1025 反转链表
原创 2016-07-08 20:37:30 · 399 阅读 · 0 评论 -
PAT 1026 Table tennis
使用了3个优先队列和两个普通队列。原创 2016-08-20 12:14:06 · 406 阅读 · 0 评论
分享