PAT
XiangYida
这个作者很懒,什么都没留下…
展开
-
PAT-Public Bike Management (30)
时间限制 1000 ms 内存限制 65536 KB 代码长度限制 100 KB 判断程序 Standard 题目描述 There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the world. One may rent a ...原创 2018-07-23 01:34:25 · 185 阅读 · 0 评论 -
1001 A+B Format (20 分)
Calculate a+b and output the sum in standard format – that is, the digits must be separated into groups of three by commas (unless there are less than four digits). Input Specification: Each input fil...原创 2019-02-17 14:00:43 · 117 阅读 · 0 评论 -
1006 Sign In and Sign Out (25 分)
At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the records of signing in’s and out’s, you...原创 2019-02-17 14:03:10 · 143 阅读 · 0 评论 -
1007 Maximum Subsequence Sum (25 分)
Given a sequence of K integers { N 1 , N 2 , …, N K }. A continuous subsequence is defined to be { N i , N i+1 , …, N j } where 1≤i≤j≤K. The Maximum Subsequence is the contin...原创 2019-02-17 14:04:27 · 259 阅读 · 0 评论 -
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 order. It costs 6 sec...原创 2019-02-17 14:05:33 · 102 阅读 · 0 评论 -
1003 Emergency (25 分)
1003 Emergency (25 分) As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams ...原创 2019-02-27 20:14:42 · 717 阅读 · 0 评论