![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PAT甲级
朽木可雕_
致力于计算机科学研究
展开
-
PAT_A1065 A+B and C (64bit) (20 分)
题目Given three integers A, B and C in [−263,263][−2^{63},2^{63}][−263,263], you are supposed to tell whether A+B>CA+B>CA+B>C.Input Specification:The first line of the input gives ...原创 2019-08-07 21:49:52 · 176 阅读 · 0 评论 -
PAT_A1041 Be Unique (20 分)
题目:Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a number chosen from [1,104]. The first one who bet...原创 2019-08-07 19:24:19 · 114 阅读 · 0 评论 -
PAT_A1042 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 ga...原创 2019-08-07 19:37:27 · 98 阅读 · 0 评论 -
PAT_A1046 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 co...原创 2019-08-07 21:40:07 · 140 阅读 · 0 评论 -
PAT_A1001 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).Input Specification:Each inpu...原创 2019-08-20 19:02:37 · 119 阅读 · 0 评论 -
PAT_A1002 A+B for Polynomials (25 分)
题目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 info...原创 2019-08-11 22:04:01 · 111 阅读 · 0 评论 -
PAT_A1006 Sign In and Sign Out (25 分)
题目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...原创 2019-08-11 22:46:00 · 175 阅读 · 0 评论