
PAT
文章平均质量分 79
Aimer1027
这个作者很懒,什么都没留下…
展开
-
pat1003
1003. Emergency (25)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueAs an emergency rescue team leader of a city, yo原创 2014-07-15 23:44:28 · 551 阅读 · 0 评论 -
pat1052
1052. Linked List Sorting (25)时间限制 400 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueA linked list consists of a series of structures, which原创 2014-07-31 21:27:34 · 587 阅读 · 0 评论 -
pat1074_备份
1074. Reversing Linked List (25)时间限制 300 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueGiven a constant K and a singly linked list L, you ar原创 2014-08-01 01:11:55 · 513 阅读 · 0 评论 -
pat1051
1051. Pop Sequence (25)时间限制 10 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueGiven a stack which can keep M numbers at most. Push N numbers原创 2014-08-01 14:44:45 · 593 阅读 · 0 评论 -
pat1073
#include #include using namespace std ;int pow ( int i ){ int n ; int result = 1 ; for ( n = 0 ; n < i ; n++ ) result *= 10 ; return result ;}int getBase (char base[] ){ int原创 2014-07-14 10:20:39 · 656 阅读 · 0 评论 -
pat1015_错题备份
1015. Reversible Primes (20)时间限制 400 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, YueA reversible prime in any number system is a prime whose "reverse" in that number原创 2014-07-30 21:17:39 · 442 阅读 · 0 评论 -
pat1050
1050. String Subtraction (20)时间限制 10 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard作者 CHEN, YueGiven two strings S1 and S2, S = S1 - S2 is defined to be the remaining strin原创 2014-07-30 21:07:53 · 436 阅读 · 0 评论 -
pat1008
1008. Elevator (20)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe highest building in our city has only one elevator. A request lis原创 2014-07-10 09:02:42 · 464 阅读 · 0 评论 -
pat1028
#include #include #include #include #define MAX 100000using namespace std ;struct stuNode{ char ID [10]; char name[10] ; int score ; stuNode () {} stuNode ( char *id , char *na原创 2014-07-10 10:37:44 · 466 阅读 · 0 评论 -
pat1005
1005. Spell It Right (20)时间限制 400 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard 作者 CHEN, YueGiven a non-negative integer N, your task is to compute the原创 2014-07-09 08:30:16 · 450 阅读 · 0 评论 -
pat1012
1012. The Best Rank (25)时间限制 400 ms 内存限制32000 kB代码长度限制 16000 B判题程序 Standard 作者 CHEN, YueTo evaluate the performance of our first year CS majored stud原创 2014-07-23 12:27:51 · 557 阅读 · 0 评论 -
pat1002
1002. A+B for Polynomials 解题报告:这道题目jiy原创 2014-07-03 13:42:12 · 498 阅读 · 0 评论 -
pat1004
1004. Counting Leaves (30)时间限制 400 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard 作者 CHEN, YueA family hierarchy is usually presented by a pedigree tree.原创 2014-07-22 11:19:32 · 553 阅读 · 0 评论 -
pat1010
#include #include #include #define a 10 #define MAXN 15using namespace std ;char num1[MAXN], num2[MAXN];char temp[MAXN] ;char tempX [MAXN] ;int radix , tag ;int num_10 = 0 ;int getPow (原创 2014-07-17 17:56:01 · 489 阅读 · 0 评论 -
pat1011
#include #include double map[3][5] ;int list[3] ;char c[] = {'W','T','L'} ;void inPut(){ for ( int i = 0 ; i < 3 ; i++ ) { double max = -100 ; int loc = 0 ; for (int j = 0 ; j < 3 ; j原创 2014-07-22 19:27:12 · 524 阅读 · 0 评论 -
pat_1001
错题存档#include #include #include #include using namespace std ;stack s ;void getChar( long num ){ char a ; long counter = 0 ; while ( num ) { a= (num%10)+'0' ; s.p原创 2014-06-30 17:36:52 · 455 阅读 · 0 评论 -
pat1009
1009. Product of Polynomials (25)时间限制 400 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard 作者 CHEN, YueThis time, you are supposed to find A*B where A and B原创 2014-07-17 15:27:25 · 531 阅读 · 0 评论 -
pat_练习题_2-06
2-06. 数列求和(20)时间限制 100 ms内存限制 32000 kB代码长度限制 8000 B判题程序 Standard 给定某数字A(1求数列之和S = A + AA + AAA + … + AA…A(N个A)。例如A=1, N=3时,S = 1 + 11 + 111 = 123。原创 2014-07-16 10:58:47 · 872 阅读 · 0 评论 -
pat1078 错题备份
1078. Hashing (25)时间限制100 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe task of this problem is simple: insert a sequence of distinct positi原创 2014-07-31 23:32:13 · 568 阅读 · 0 评论