![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PAT甲级
whl_program
这个作者很懒,什么都没留下…
展开
-
[PAT甲级]1001. A+B Format (20)(AB和的标准输出)
1001. 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).InputEach原创 2017-08-16 18:08:06 · 313 阅读 · 0 评论 -
[PAT甲级]1014. Waiting in Line (30)(银行排队办理业务结束时间 队列的应用)
1014. Waiting in Line (30)原题链接 相似题目 1017. Queueing at Bank (25) 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 p原创 2017-08-29 20:37:37 · 1978 阅读 · 0 评论 -
[PAT甲级]1017. Queueing at Bank (25)(银行办理业务平均等待时间)
1017. Queueing at Bank (25)原题链接 相似题目 1014. Waiting in Line (30) Suppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the waiting area into two p原创 2017-08-30 22:57:07 · 878 阅读 · 0 评论 -
[PAT甲级]1016. Phone Bills (25)(统计用户每月电话账单)
1016. Phone Bills (25)原题链接 A long-distance telephone company charges its customers by the following rules:Making a long-distance call costs a certain amount per minute, depending on the time of day wh原创 2017-08-30 19:18:21 · 660 阅读 · 3 评论 -
[PAT甲级]1015. Reversible Primes (20)(可逆素数判断)
1015. Reversible Primes (20)原题链接这里写链接内容 A reversible prime in any number system is a prime whose “reverse” in that number system is also a prime. For example in the decimal system 73 is a reversible p原创 2017-08-29 21:19:58 · 514 阅读 · 0 评论 -
[PAT甲级]1013. Battle Over Cities (25)(图的遍历,统计强连通分量个数)
1013. Battle Over Cities (25)原题链接 It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed.原创 2017-08-28 01:29:48 · 2589 阅读 · 1 评论 -
[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 L原创 2017-08-26 03:20:23 · 576 阅读 · 0 评论 -
[PAT甲级]1011. 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原创 2017-08-25 16:29:52 · 326 阅读 · 0 评论 -
[PAT甲级]1002. A+B for Polynomials (25)(求两个多项式的和)
1002. A+B for Polynomials (25)原题链接 相似题目 1009. Product of Polynomials (25)(求多项式的积)This time, you are supposed to find A+B where A and B are two polynomials.InputEach input file contains one test case.原创 2017-08-16 18:28:28 · 393 阅读 · 0 评论 -
[PAT甲级]1010. Radix (25)(求另一个数的基数)
1010. Radix (25)原题链接Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is “yes”, if 6 is a decimal number and 110 is a binary number.Now for any pa原创 2017-08-24 18:10:55 · 490 阅读 · 0 评论 -
[PAT甲级]1009. Product of Polynomials (25)(求多项式的积)
1009. Product of Polynomials (25)原题链接 相似题目 1002. 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 contain原创 2017-08-21 01:16:35 · 445 阅读 · 0 评论 -
[PAT甲级]1008. 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原创 2017-08-20 20:42:42 · 425 阅读 · 0 评论 -
[PAT甲级]1007. Maximum Subsequence Sum(求连续最大子序列和)
1007. Maximum Subsequence Sum原题链接Given a sequence of K integers { N1, N2, …, NK }. A continuous subsequence is defined to be { Ni, Ni+1, …, Nj } where 1 <= i <= j <= K. The Maximum Subsequence is the c原创 2017-08-20 19:34:31 · 416 阅读 · 0 评论 -
[PAT甲级]1006. Sign In and Sign Out (25)(找出机房开门锁门的人)
1006. 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 reco原创 2017-08-19 19:20:50 · 329 阅读 · 0 评论 -
[PAT甲级]1005. Spell It Right (20)(求数字各个位上的和,英文输出)
1005. Spell It Right (20)原题链接Given 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 con原创 2017-08-18 21:16:17 · 438 阅读 · 0 评论 -
[PAT甲级]1004. Counting Leaves (30)(求树各层非叶子节点数目)
1004. Counting Leaves (30)原题链接A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child.Input Each input file contains one test case. Each原创 2017-08-17 02:20:07 · 702 阅读 · 0 评论 -
[PAT甲级]1003. Emergency (25)(求城市间最短路径和最大救援队数目)
1003. Emergency (25)原题链接As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams原创 2017-08-16 17:59:32 · 375 阅读 · 0 评论 -
2017年9月17日PAT甲级考试反思
2017年9月17日PAT甲级反思前天跑河南中医药大学考试,早上九点多出发的,碰上地铁大检查,堵二七地铁站一个多小时,十一点多才到达河中医。到地方后发现忘记打印准考证了,问路上的同学打听打印店的位置,12点左右拿到准考证,随后在学校的餐厅搭讪(暂且这么说吧)一个女生,让人家帮我刷了校园卡吃上饭,当然我给人家转了支付宝。饭后找考场,坐楼梯口复习。考试刚开始机房出问题电脑很多,开考时间延迟到了14:45原创 2017-09-19 12:27:46 · 4067 阅读 · 7 评论