编程练习
文章平均质量分 81
Merlone
什么都不会的程序猿...
展开
-
【PAT (Advanced Level)】1083. List Grades (25)
1083. List Grades (25)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a list of N student records with name, I原创 2014-08-01 15:15:31 · 639 阅读 · 0 评论 -
【PAT (Advanced Level)】1050. String Subtraction (20)
1050. String Subtraction (20)时间限制10 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven two strings S1 and S2, S = S1 - S2原创 2014-08-06 14:31:41 · 622 阅读 · 0 评论 -
【PAT (Advanced Level)】1031. Hello World for U (20)
1031. Hello World for U (20)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven any string of N (>=5) characters,原创 2014-08-01 14:49:39 · 647 阅读 · 0 评论 -
【PAT (Advanced Level)】1011. World Cup Betting (20)
1011. World Cup Betting (20)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueWith the 2010 FIFA World Cup running, fo原创 2014-08-01 15:43:08 · 515 阅读 · 0 评论 -
【PAT (Advanced Level)】1036. Boys vs Girls (25)
1036. Boys vs Girls (25)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThis time you are asked to tell the differen原创 2014-08-01 16:05:48 · 990 阅读 · 0 评论 -
【PAT (Advanced Level)】1049. Counting Ones (30)
1049. Counting Ones (30)时间限制10 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe task is simple: given any positive intege原创 2014-08-06 13:54:47 · 682 阅读 · 0 评论 -
【PAT (Advanced Level)】1005. Spell It Right (20)
1005. Spell It Right (20)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a non-negative integer N, your task i原创 2014-08-05 15:38:33 · 533 阅读 · 0 评论 -
【PAT (Advanced Level)】1042. Shuffling Machine (20)
1042. Shuffling Machine (20)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueShuffling is a procedure used to randomi原创 2014-08-05 16:46:57 · 536 阅读 · 0 评论 -
【PAT (Advanced Level)】1058. A+B in Hogwarts (20)
1058. A+B in Hogwarts (20)时间限制50 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueIf you are a fan of Harry Potter, you would原创 2014-08-05 14:54:58 · 729 阅读 · 0 评论 -
分享几个机试题目
前几天参加完了一个实习生的机试和面试,分享几个题目,有的是我遇到的,有的是以前的。本着交流的原则,我只是提供我的思路和解法,不一定是最优的,欢迎相互交流;1.字符串判断,有且仅有首字母是大写。输入:一串字符,有空格输出:YES, NO例如:Hello world! => YES Hello World! => NO#include #include using name原创 2014-03-28 00:07:57 · 1017 阅读 · 0 评论 -
【PAT (Advanced Level)】1006. Sign In and Sign Out (25)
1006. Sign In and Sign Out (25)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueAt the beginning of every day, the fi原创 2014-08-05 16:13:36 · 591 阅读 · 0 评论 -
【PAT (Advanced Level)】1065. A+B and C (64bit) (20)
1065. A+B and C (64bit) (20)时间限制100 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者HOU, QimingGiven three integers A, B and C in [-2原创 2014-08-04 15:37:14 · 721 阅读 · 0 评论 -
【PAT (Advanced Level)】1008. Elevator (20)
1008. Elevator (20)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe highest building in our city has only one ele原创 2014-08-01 14:11:49 · 543 阅读 · 0 评论 -
【PAT (Advanced Level)】1001. A+B Format (20)
1001. A+B Format (20)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueCalculate a + b and output the sum in standard原创 2014-08-01 13:45:49 · 532 阅读 · 0 评论 -
【PAT (Advanced Level)】1027. Colors in Mars (20)
1027. Colors in Mars (20)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YuePeople in Mars represent the colors in thei原创 2014-08-01 16:23:17 · 478 阅读 · 0 评论 -
【PAT (Advanced Level)】1023. Have Fun with Numbers (20)
1023. Have Fun with Numbers (20)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueNotice that the number 123456789 is原创 2014-08-10 14:14:47 · 470 阅读 · 0 评论