简单模拟
shishiness
这个作者很懒,什么都没留下…
展开
-
pat 甲级 简单模拟 A1065 A+B and C (64bit) (20分)(long long 溢出问题
1065 A+B and C (64bit) (20分)Given three integers A, B and C in [−263,263], you are supposed to tell whether A+B>C.Input Specification:The first line of the input gives the positive number of test cases, T (≤10). Then T test cases follow, eac原创 2020-08-19 01:59:51 · 128 阅读 · 0 评论 -
pat 甲级 简单模拟 A1046 Shortest Distance (20分)
1046 Shortest Distance (20分)The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of exits.Input Specification:Each input file contains one test case. For eac原创 2020-08-20 15:56:31 · 99 阅读 · 0 评论 -
pat 甲级 简单模拟 A1042 Shuffling Machine (20分)(有点小绕
1042 Shuffling Machine (20分)Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid "inside jobs" where employees collaborate with gamblers by performing inadequate原创 2020-07-24 14:29:55 · 70 阅读 · 0 评论 -
pat 甲级 简单模拟 A1036 Boys vs Girls (25分)
1036 Boys vs Girls (25分)This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students.Input Specification:Each input file contains one test case. Each case contains a原创 2020-07-24 12:07:35 · 69 阅读 · 0 评论 -
pat 甲级 简单模拟 A1011 World Cup Betting (20分)
1011 World Cup Betting (20分)With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing battles for the World Cup trophy in South Africa. Similarly, football betting原创 2020-07-24 12:04:15 · 107 阅读 · 0 评论 -
pat 甲级 简单模拟 A1008 Elevator (20分)(水
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 seconds to move the elevator up one fl原创 2020-08-20 15:56:42 · 84 阅读 · 0 评论 -
pat 甲级 简单模拟 A1124 Raffle for Weibo Followers (20分)
1124 Raffle for Weibo Followers (20分)John got a full mark on PAT. He was so happy that he decided to hold a raffle(抽奖) for his followers on Weibo -- that is, he would select winners from every N followers who forwarded his post, and give away gifts. Now原创 2020-07-22 10:22:21 · 69 阅读 · 0 评论