- 博客(5)
- 收藏
- 关注
原创 PAT 甲级 1017 Queueing at Bank (25分)
Suppose a bank hasKwindows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. All the customers have to wait in line behind the yellow li...
2020-01-30 23:25:05 189 1
原创 PAT 甲级 1016 Phone Bills (25分)
A long-distance telephone company charges its customers by the following rules: Making a long-distance call costs a certain amount per minute, depending on the time of day when the call is made. When...
2020-01-30 11:57:40 127
原创 PAT 甲级 1013 Battle Over Cities (25分)
t is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We must know immediately if we need...
2020-01-29 18:50:27 134
原创 PAT 甲级 1007 Maximum Subsequence Sum (25分)
Given a sequence ofKintegers {N1,N2, ...,NK}. A continuous subsequence is defined to be {Ni,Ni+1, ...,Nj} where1≤i≤j≤K. The Maximum Subsequence is the continuous subsequen...
2020-01-28 10:06:50 148
原创 PAT 甲级 1001 A+B Format (20 分)
Calculatea+band 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 ...
2020-01-21 17:20:09 112
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人