![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
pat-A
哈哈菌
个人博客:likehui.fun
展开
-
PAT A1081. Rational Sum (20)
Given N rational numbers in the form “numerator/denominator”, you are supposed to calculate their sum.Input Specification:Each input file contains one test case. Each case starts with a positive intege原创 2017-07-11 14:15:19 · 302 阅读 · 0 评论 -
PAT A1033. To Fill or Not to Fill (25)
With highways available, driving a car from Hangzhou to any other city is easy. But since the tank capacity of a car is limited, we have to find gas stations on the way from time to time. Different gas原创 2017-07-11 19:25:10 · 263 阅读 · 0 评论 -
PAT A1015. Reversible Primes (20)
A reversible prime in any number system is a prime whose “reverse” in that number system is also a prime. For example in the decimal system 73 is a reversible prime because its reverse 37 is also a pri原创 2017-07-12 13:27:13 · 284 阅读 · 0 评论 -
PAT A1088 Rational Arithmetic (20)
For two rational numbers, your task is to implement the basic arithmetics, that is, to calculate their sum, difference, product and quotient.Input Specification:Each input file contains one test case,原创 2017-07-09 16:23:00 · 330 阅读 · 0 评论 -
PAT A1092. To Buy or Not to Buy (20)
Eva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorful strings of beads. However the owner of the shop would only sell原创 2017-07-09 17:35:21 · 259 阅读 · 0 评论 -
PAT A1077. Kuchiguse (20)
The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of the speaker’s personality. Such a preference is called “原创 2017-07-09 19:12:54 · 290 阅读 · 0 评论 -
PAT A1025. PAT Ranking (25)
Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supposed to run simultaneously in several places, and the ranklists wi原创 2017-07-23 16:07:10 · 299 阅读 · 0 评论 -
PAT A1107. Social Clusters (30)
When register on a social network, you are always asked to specify your hobbies in order to find some potential friends with the same hobbies. A “social cluster” is a set of people who have some of the原创 2017-09-11 21:33:39 · 285 阅读 · 0 评论