
PAT
pivotone
bug,bug,debug
展开
-
PAT1007 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 the...原创 2019-11-01 20:58:44 · 193 阅读 · 0 评论 -
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’...原创 2019-10-25 16:21:06 · 185 阅读 · 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 cas...原创 2019-10-24 11:06:53 · 179 阅读 · 0 评论 -
PAT 1001 A+B Format
Describe 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...原创 2019-08-15 16:31:17 · 117 阅读 · 0 评论 -
PAT 1002 A+B for Polynomials
Describe This time, you are supposed to find A+B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occupies 2 lines, and each line contains the ...原创 2019-08-15 16:38:36 · 110 阅读 · 0 评论 -
PAT 1003 Emergency
题目 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 in each city and t...原创 2019-10-04 19:18:14 · 141 阅读 · 0 评论