
PAT全解析
PAT题目全解析
iimT
个人博客 iimt.me
大三计科狗,喜欢音乐、运动、编程,人生最大的快感来自于创造。目前致力于前端开发方向,坐标浙江绍兴,很乐意你与我交流。
展开
-
1072 Gas Station (30 分)
1072 Gas Station (30 分)A gas station has to be built at such a location that the minimum distance between the station and any of the residential housing is as far away as possible. However it must gu...原创 2019-08-26 16:28:23 · 210 阅读 · 0 评论 -
1086 Tree Traversals Again (25 分)
1086 Tree Traversals Again (25 分)An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the keys numbered f...原创 2019-09-02 21:27:27 · 388 阅读 · 0 评论 -
1081 Rational Sum (20 分)
1081 Rational Sum (20 分)Given N rational numbers in the form numerator/denominator, you are supposed to calculate their sum.Input Specification:Each input file contains one test case. Each case sta...原创 2019-08-31 21:00:21 · 261 阅读 · 0 评论 -
1080 Graduate Admission (30 分)
1080 Graduate Admission (30 分)It is said that in 2011, there are about 100 graduate schools ready to proceed over 40,000 applications in Zhejiang Province. It would help a lot if you could write a pr...原创 2019-08-31 20:01:25 · 307 阅读 · 0 评论 -
1079 Total Sales of Supply Chain (25 分)
1079 Total Sales of Supply Chain (25 分)A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer.Starting...原创 2019-08-29 18:57:28 · 256 阅读 · 0 评论 -
1078 Hashing (25 分)
1078 Hashing (25 分)The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. The hash function is defined t...原创 2019-08-29 18:06:29 · 180 阅读 · 0 评论 -
1077 Kuchiguse (20 分)
1077 Kuchiguse (20 分)The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of the speaker’s personality. Such a...原创 2019-08-29 16:14:25 · 132 阅读 · 0 评论 -
1076 Forwards on Weibo (30 分)
1076 Forwards on Weibo (30 分)Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social network is formed wit...原创 2019-08-29 15:42:08 · 129 阅读 · 0 评论 -
1075 PAT Judge (25 分)
1075 PAT Judge (25 分)The ranklist of PAT is generated from the status list, which shows the scores of the submissions. This time you are supposed to generate the ranklist for PAT.Input Specification...原创 2019-08-29 15:37:22 · 178 阅读 · 0 评论 -
1074 Reversing Linked List (25 分)
1074 Reversing Linked List (25 分)Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1→2→3→4→5→6, if K=3, then yo...原创 2019-08-29 15:30:49 · 280 阅读 · 0 评论 -
1073 Scientific Notation (20 分)
1073 Scientific Notation (20 分)Scientific notation is the way that scientists easily handle very large numbers or very small numbers. The notation matches the regular expression [±][1-9].[0-9]+E[±][0...原创 2019-08-29 15:26:16 · 149 阅读 · 0 评论 -
PAT-考前总结
1. C/C++ 基础1. 1 类型[外链图片转存失败(img-8gQYHE7a-1567838578901)(D:\Learning\CS\DS\PAT\Advanced\PAT考前总结\QQ截图20190904165005.jpg)]1.2 输入输出1.2.1 scanf与cin的速度以及解决方案scanf在输入上比cin要快,如果非要用cin,又要追求速度,可以使用ios::sy...原创 2019-09-07 14:43:27 · 589 阅读 · 0 评论