- 博客(11)
- 收藏
- 关注
原创 PAT1037Java
PAT笔记1037 Magic CouponThe magic shop in Mars is offering some magic coupons. Each coupon has an integer N printed on it, meaning that when you use this coupon with a product, you may get N times the value of that product back! What is more, the shop als
2020-11-03 21:41:36
138
原创 PAT1070 Java
PAT笔记1070 MooncakeMooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings and crusts can be found in traditional mooncakes according to the region’s culture. Now given the inventory amounts and the
2020-11-03 20:44:57
137
原创 PAT1084 Java
PAT笔记1084 Broken KeyboardOn 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 you
2020-08-18 19:20:57
159
原创 PAT1071 Java
PAT笔记1071 Speech PatternsPeople often have a preference among synonyms of the same word. For example, some may prefer “the police”, while others may prefer “the cops”. Analyzing such patterns can help to narrow down a speaker’s identity, which is useful
2020-08-18 17:07:40
144
原创 PAT1036 Java
PAT笔记1036 Boys vs GirlsThis 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-08-18 16:08:15
121
原创 PAT1534 Java
PAT笔记1534 String SubtractionGiven two strings S1 and S2, S=s1-s2 is defined to be the remaining string after taking all the characters in S2 from S1. Your task is simply to calculate S2-S1 for any given strings. However, it might not be that simple t
2020-08-18 15:22:48
102
原创 PAT1011
PAT笔记1011 World Cup BettingWith 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-08-17 20:37:14
131
原创 PAT1035 Java
PAT笔记1035 PasswordTo prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords since it is hard to distinguish 1 (one) from l (L in lowercase), or 0 (zero) from O (
2020-08-13 22:42:34
164
1
原创 PAT1006 Java
PAT笔记1006 Sign In and Sign OutAt 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, you are supposed to find t
2020-08-13 22:00:44
149
原创 PAT1005 Java
PAT笔记1005 Spell It RightGiven a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English.Input Specification:Each input file contains one test case. Each case occupies one line which
2020-08-13 21:51:12
150
原创 PAT1001 Java
PAT笔记1001 A+BFormatCalculate 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 input file contains one test case. Each ca
2020-08-13 20:06:46
175
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人