PAT
LuciusZhao
这个作者很懒,什么都没留下…
展开
-
PAT甲级1006. Sign In and Sign Out
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原创 2017-07-31 18:57:12 · 450 阅读 · 0 评论 -
PAT甲级1060. Are They Equal
Now given the number of significant digits on a machine and two float numbers, you are supposed to tell if they are treated equal in that machine.原创 2017-08-02 05:56:49 · 392 阅读 · 0 评论 -
PAT甲级1011. World Cup Betting
The rule of winning was simple: first select any three of the games. Then for each selected game, bet on one of the three possible results -- namely W for win, T for tie, and L for lose. There was an odd assign原创 2017-08-02 06:13:42 · 313 阅读 · 0 评论 -
PAT甲级1001. A+B Format
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).InputEach input fil原创 2017-07-28 10:07:01 · 299 阅读 · 0 评论 -
PAT甲级1005. Spell It Right
Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English.Input Specification:Each input file contains one test case. Each cas原创 2017-07-28 10:45:17 · 287 阅读 · 0 评论 -
PAT甲级1008. Elevator
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 seco原创 2017-07-28 11:14:12 · 577 阅读 · 0 评论 -
PAT甲级1002. A+B for Polynomials
This time, you are supposed to find A+B where A and B are two polynomials.InputEach input file contains one test case. Each case occupies 2 lines, and each line contains the information of a polynomial原创 2017-07-28 17:31:01 · 388 阅读 · 0 评论 -
PAT甲级1007. Maximum Subsequence Sum
Given a sequence of K integers { N1, N2, …, NK }. A continuous subsequence is defined to be { Ni, Ni+1, …, Nj } where 1 <= i <= j <= K. The Maximum Subsequence is the continuous subsequence which has t原创 2017-07-29 06:24:45 · 575 阅读 · 0 评论