
水题
文章平均质量分 69
感觉自己就是个bug
这个作者很懒,什么都没留下…
展开
-
1084 Broken Keyboard (20 分)
1084 Broken Keyboard (20 分)On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on screen.Now given a string that you are supposed to type, and the string that yo原创 2021-03-02 13:23:46 · 68 阅读 · 0 评论 -
1093 Count PAT‘s (25 分)
1093 Count PAT’s (25 分)The string APPAPT contains two PAT’s as substrings. The first one is formed by the 2nd, the 4th, and the 6th characters, and the second one is formed by the 3rd, the 4th, and the 6th characters.Now given any string, you are suppose原创 2021-03-01 14:32:29 · 53 阅读 · 0 评论 -
1100 Mars Numbers (20 分)
1100 Mars Numbers (20 分)People on Mars count their numbers with base 13:Zero on Earth is called “tret” on Mars.The numbers 1 to 12 on Earth is called “jan, feb, mar, apr, may, jun, jly, aug, sep, oct, nov, dec” on Mars, respectively.For the next higher原创 2021-03-01 12:47:25 · 59 阅读 · 0 评论 -
1113 Integer Set Partition (25 分)
1113 Integer Set Partition (25 分)Given a set of N (>1) positive integers, you are supposed to partition them into two disjoint sets A1 and A2 of n1 and n2 numbers, respectively. Let S1 and S2 denote the sums of all the numbers in原创 2021-02-26 13:40:22 · 114 阅读 · 0 评论 -
1116 Come on! Let‘s C (20 分)
1116 Come on! Let’s C (20 分)“Let’s C” is a popular and fun programming contest hosted by the College of Computer Science and Technology, Zhejiang University. Since the idea of the contest is for fun, the award rules are funny as the following:0、 The Cham原创 2021-02-26 12:54:36 · 106 阅读 · 0 评论 -
1124 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 y原创 2021-02-25 12:27:39 · 124 阅读 · 1 评论 -
1125 Chain the Ropes (25 分)
1125 Chain the Ropes (25 分)Given some segments of rope, you are supposed to chain them into one rope. Each time you may only fold two segments into loops and chain them into one piece, as shown by the figure. The resulting chain will be treated as another原创 2021-02-25 12:15:19 · 70 阅读 · 0 评论 -
1128 N Queens Puzzle (20 分)
1128 N Queens Puzzle (20 分)The “eight queens puzzle” is the problem of placing eight chess queens on an 8×8 chessboard so that no two queens threaten each other. Thus, a solution requires that no two queens share the same row, column, or diagonal. The eig原创 2021-02-25 10:47:25 · 55 阅读 · 0 评论 -
1140 Look-and-say Sequence (20 分)
1140 Look-and-say Sequence (20 分)Look-and-say sequence is a sequence of integers as the following:D, D1, D111, D113, D11231, D112213111, …where D is in [0, 9] except 1. The (n+1)st number is a kind of description of the nth number. For example, the 2nd原创 2021-02-23 15:28:01 · 78 阅读 · 0 评论 -
1144 The Missing Number (20 分)
1144 The Missing Number (20 分)Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list.Input Specification:Each input file contains one test case. For each case, the first line gives a positive integer N (≤1原创 2021-02-23 12:09:32 · 101 阅读 · 0 评论