PAT甲级
文章平均质量分 81
Sitlos
有梦为马,随处可栖。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
PAT甲级 1001. A+B Format (20)
1001. A+B Format (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueCalculate a + b and output the sum in standard原创 2017-07-01 10:20:19 · 257 阅读 · 0 评论 -
PAT甲级 1027. Colors in Mars (20)
1027. Colors in Mars (20)时间限制 400 ms内存限制 65536 kB代码长度限制 16000 B判题程序 Standard 作者 CHEN, YuePeople in Mars represent the colors in their computers in a原创 2017-07-05 22:38:16 · 351 阅读 · 0 评论 -
PAT甲级 1028. List Sorting (25)
1028. List Sorting (25)时间限制 200 ms内存限制 65536 kB代码长度限制 16000 B判题程序 Standard 作者 CHEN, YueExcel can sort records according to any column. Now you are s原创 2017-07-05 22:40:38 · 314 阅读 · 0 评论 -
PAT甲级 1029. Median (25)
1029. Median (25)时间限制 1000 ms内存限制 65536 kB代码长度限制 16000 B判题程序 Standard 作者 CHEN, YueGiven an increasing sequence S of N integers, the median is the nu原创 2017-07-05 22:42:05 · 340 阅读 · 0 评论 -
PAT甲级 1012. The Best Rank (25)
1012. The Best Rank (25)To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mathematics (Calculus or Line...原创 2018-04-06 20:14:20 · 198 阅读 · 0 评论 -
PAT甲级 1014. Waiting in Line (30)
1014. Waiting in Line (30)Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules for the customers to wa...原创 2018-04-06 20:29:19 · 186 阅读 · 0 评论 -
PAT甲级 1031. Hello World for U (20)
1031. Hello World for U (20)Given any string of N (>=5) characters, you are asked to form the characters into the shape of U. For example, "helloworld" can be printed as:h de ll rlowoThat is...原创 2018-04-06 20:32:36 · 187 阅读 · 0 评论 -
PAT甲级 1032. Sharing (25)
To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we may let the words share the same sublist if they share the same suffix. For example,...原创 2018-04-06 20:34:45 · 222 阅读 · 0 评论 -
PAT甲级 1035. Password (20)
To 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 ...原创 2018-04-06 20:36:15 · 214 阅读 · 0 评论 -
PAT甲级 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 ...原创 2018-04-06 20:37:55 · 231 阅读 · 0 评论 -
PAT甲级 1047. Student List for Course (25)
Zhejiang University has 40000 students and provides 2500 courses. Now given the registered course list of each student, you are supposed to output the student name lists of all the courses.Input Speci...原创 2018-04-06 20:38:59 · 237 阅读 · 0 评论 -
PAT甲级 1048. Find Coins (25)
Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which could accept all kinds of coins as payments. However,...原创 2018-04-06 20:39:51 · 206 阅读 · 0 评论 -
PAT甲级 1049. Counting Ones (30)
The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal form of the integers from 1 to N. For example, given N being 12, there are five 1's i...原创 2018-04-06 20:41:25 · 239 阅读 · 0 评论 -
PAT甲级 1023. Have Fun with Numbers (20)
1023. Have Fun with Numbers (20)时间限制 400 ms内存限制 65536 kB代码长度限制 16000 B判题程序 Standard 作者 CHEN, YueNotice that the number 123456789 is a 9-digit number原创 2017-07-05 22:35:20 · 490 阅读 · 0 评论 -
PAT甲级 1019. General Palindromic Number (20)
1019. General Palindromic Number (20)时间限制 400 ms内存限制 65536 kB代码长度限制 16000 B判题程序 Standard 作者 CHEN, YueA number that will be the same when it is writt原创 2017-07-05 22:30:06 · 327 阅读 · 0 评论 -
PAT甲级 1017. Queueing at Bank (25)
1017. Queueing at Bank (25)时间限制 400 ms内存限制 65536 kB代码长度限制 16000 B判题程序 Standard 作者 CHEN, YueSuppose a bank has K windows open for service. There is a原创 2017-07-05 22:26:57 · 479 阅读 · 0 评论 -
PAT甲级 1002. A+B for Polynomials (25)
1002. A+B for Polynomials (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThis time, you are supposed to find A+原创 2017-07-04 08:22:50 · 274 阅读 · 0 评论 -
PAT甲级 1004. Counting Leaves (30)
1004. Counting Leaves (30)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA family hierarchy is usually presented by a原创 2017-07-04 08:25:08 · 346 阅读 · 0 评论 -
PAT甲级 1005. Spell It Right (20)
1005. Spell It Right (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a non-negative integer N, your task i原创 2017-07-04 08:25:18 · 317 阅读 · 0 评论 -
PAT甲级 1003. Emergency (25)
1003. Emergency (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueAs an emergency rescue team leader of a city, yo原创 2017-07-04 08:23:31 · 295 阅读 · 0 评论 -
PAT甲级 1006. Sign In and Sign Out (25)
1006. Sign In and Sign Out (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueAt the beginning of every day, the fi原创 2017-07-05 08:14:37 · 370 阅读 · 0 评论 -
PAT甲级 1007. Maximum Subsequence Sum (25)
1007. Maximum Subsequence Sum (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a sequence of K integers { N原创 2017-07-05 08:15:13 · 297 阅读 · 0 评论 -
PAT甲级 1008. Elevator (20)
1008. Elevator (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe highest building in our city has only one ele原创 2017-07-05 08:15:18 · 361 阅读 · 0 评论 -
PAT甲级 1010. Radix (25)
1010. Radix (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a pair of positive integers, for example, 6 an原创 2017-07-05 08:15:41 · 357 阅读 · 0 评论 -
PAT甲级 1009. Product of Polynomials (25)
1009. Product of Polynomials (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThis time, you are supposed to find原创 2017-07-05 08:15:29 · 321 阅读 · 0 评论 -
PAT甲级 1011. World Cup Betting (20)
1011. World Cup Betting (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueWith the 2010 FIFA World Cup running, fo原创 2017-07-05 08:15:52 · 335 阅读 · 0 评论 -
PAT甲级 1013. Battle Over Cities (25)
1013. Battle Over Cities (25)时间限制 400 ms内存限制 65536 kB代码长度限制 16000 B判题程序 Standard 作者 CHEN, YueIt is vitally important to have all the cities connecte原创 2017-07-05 22:20:43 · 352 阅读 · 0 评论 -
PAT甲级 1015. Reversible Primes (20)
1015. Reversible Primes (20)时间限制 400 ms内存限制 65536 kB代码长度限制 16000 B判题程序 Standard 作者 CHEN, YueA reversible prime in any number system is a prime whose原创 2017-07-05 22:24:31 · 388 阅读 · 0 评论 -
PAT甲级 1050. String Subtraction (20)
Given 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 S1 - S2 for any given strings. However, i...原创 2018-04-07 11:18:17 · 259 阅读 · 0 评论
分享