随笔分类 -  PAT甲级

上一页 1 2 3 4 5 下一页

1055 The World's Richest (25 分)
摘要:1055 The World's Richest (25 分) Forbes magazine publishes every year its list of billionaires based on the annual ranking of the world's wealthiest pe 阅读全文

posted @ 2019-01-31 21:51 ZhangのBlog 阅读(583) 评论(0) 推荐(0)

1048 Find Coins (25 分)散列
摘要: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 阅读全文

posted @ 2019-01-31 20:17 ZhangのBlog 阅读(166) 评论(0) 推荐(0)

1061 Dating (20 分)
摘要:1061 Dating (20 分) Sherlock Holmes received a note with some strange strings: Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm. It to 阅读全文

posted @ 2019-01-31 15:48 ZhangのBlog 阅读(334) 评论(0) 推荐(0)

1042 Shuffling Machine (20 分)简单模拟
摘要:1042 Shuffling Machine (20 分) Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as we 阅读全文

posted @ 2019-01-31 13:34 ZhangのBlog 阅读(123) 评论(0) 推荐(0)

1132 Cut Integer (20 分)
摘要:Cutting an integer means to cut a K digits lone integer Z into two integers of (K/2) digits long integers A and B. For example, after cutting Z = 1673 阅读全文

posted @ 2019-01-29 21:24 ZhangのBlog 阅读(156) 评论(0) 推荐(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 Earch is call 阅读全文

posted @ 2019-01-29 20:53 ZhangのBlog 阅读(140) 评论(0) 推荐(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 阅读全文

posted @ 2019-01-29 18:57 ZhangのBlog 阅读(186) 评论(0) 推荐(0)

1065 A+B and C (64bit) (20 分)大数 溢出
摘要:1065 A+B and C (64bit) (20 分) Given three integers A, B and C in [−2​63​​,2​63​​], you are supposed to tell whether A+B>C. Input Specification: The fi 阅读全文

posted @ 2019-01-29 18:30 ZhangのBlog 阅读(618) 评论(0) 推荐(0)

1107 Social Clusters (30 分)并查集
摘要:1107 Social Clusters (30 分) When register on a social network, you are always asked to specify your hobbies in order to find some potential friends wi 阅读全文

posted @ 2019-01-29 15:56 ZhangのBlog 阅读(629) 评论(0) 推荐(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 mo 阅读全文

posted @ 2019-01-28 13:53 ZhangのBlog 阅读(543) 评论(0) 推荐(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 阅读全文

posted @ 2019-01-28 13:04 ZhangのBlog 阅读(155) 评论(0) 推荐(0)

1063 Set Similarity (25 分)
摘要:1063 Set Similarity (25 分) Given two sets of integers, the similarity of the sets is defined to be N​c​​/N​t​​×100%, where N​c​​ is the number of dist 阅读全文

posted @ 2019-01-27 20:13 ZhangのBlog 阅读(331) 评论(0) 推荐(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 e 阅读全文

posted @ 2019-01-27 19:47 ZhangのBlog 阅读(136) 评论(0) 推荐(0)

1047 Student List for Course (25 分)
摘要:1047 Student List for Course (25 分) Zhejiang University has 40,000 students and provides 2,500 courses. Now given the registered course list of each s 阅读全文

posted @ 2019-01-27 19:06 ZhangのBlog 阅读(172) 评论(0) 推荐(0)

1052 Linked List Sorting (25 分)
摘要:1052 Linked List Sorting (25 分) A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each st 阅读全文

posted @ 2019-01-27 18:32 ZhangのBlog 阅读(117) 评论(0) 推荐(0)

1035 Password (20 分)
摘要: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 阅读全文

posted @ 2019-01-27 16:25 ZhangのBlog 阅读(291) 评论(0) 推荐(0)

1058 A+B in Hogwarts (20 分)
摘要:If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it to Harry, "Seventeen silver 阅读全文

posted @ 2019-01-26 20:42 ZhangのBlog 阅读(143) 评论(0) 推荐(0)

1037 Magic Coupon (25 分)
摘要:The 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 produc 阅读全文

posted @ 2019-01-26 19:57 ZhangのBlog 阅读(103) 评论(0) 推荐(0)

1036 Boys vs Girls (25 分)
摘要:1036 Boys vs Girls (25 分) This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of al 阅读全文

posted @ 2019-01-26 19:17 ZhangのBlog 阅读(125) 评论(0) 推荐(0)

1090 Highest Price in Supply Chain (25 分)
摘要:1090 Highest Price in Supply Chain (25 分) A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in 阅读全文

posted @ 2019-01-26 19:01 ZhangのBlog 阅读(406) 评论(0) 推荐(0)

上一页 1 2 3 4 5 下一页