PAT (Advanced Level) Practice
啊四点半
这个作者很懒,什么都没留下…
展开
-
1008 Elevator (20 分)
1008 Elevator (20 分)The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified...原创 2018-09-25 14:15:40 · 214 阅读 · 0 评论 -
1001 A+B Format (20 分)
1001 A + B格式(20分)计算a + b并以标准格式输出总和 - 也就是说,数字必须用逗号分隔成三个一组(除非少于四个数字)。输入规格:每个输入文件包含一个测试用例。每个案例包含一对整数a和b,其中-106≤a,b≤106。数字用空格分隔。输出规格:对于每个测试用例,您应该在一行中输出a和b的总和。总和必须以标准格式书写。样本输入:-1000000 9样...原创 2018-10-28 19:37:46 · 783 阅读 · 1 评论 -
1050 String Subtraction (20 分)
1050 String Subtraction (20 分)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 calcu...原创 2019-02-15 12:59:05 · 169 阅读 · 1 评论
分享