随笔分类 -  PAT

上一页 1 2 3 4 5 6 下一页
PAT 甲级 1061 Dating (20 分)(位置也要相同,题目看不懂)
摘要:1061 Dating (20 分) 1061 Dating (20 分) 1061 Dating (20 分) Sherlock Holmes received a note with some strange strings: Let's date! 3485djDkxh4hhGE 2984ak 阅读全文
posted @ 2019-09-23 19:08 蔡军帅 阅读(324) 评论(0) 推荐(0)
PAT 甲级 1060 Are They Equal (25 分)(科学计数法,接连做了2天,考虑要全面,坑点多,真麻烦)
摘要:1060 Are They Equal (25 分) 1060 Are They Equal (25 分) 1060 Are They Equal (25 分) If a machine can save only 3 significant digits, the float numbers 12 阅读全文
posted @ 2019-09-23 14:32 蔡军帅 阅读(525) 评论(0) 推荐(0)
PAT 甲级 1059 Prime Factors (25 分) ((新学)快速质因数分解,注意1=1)
摘要:1059 Prime Factors (25 分) 1059 Prime Factors (25 分) 1059 Prime Factors (25 分) Given any positive integer N, you are supposed to find all of its prime 阅读全文
posted @ 2019-09-20 16:46 蔡军帅 阅读(290) 评论(0) 推荐(0)
PAT 甲级 1058 A+B in Hogwarts (20 分) (简单题)
摘要:1058 A+B in Hogwarts (20 分) 1058 A+B in Hogwarts (20 分) 1058 A+B in Hogwarts (20 分) If you are a fan of Harry Potter, you would know the world of magi 阅读全文
posted @ 2019-09-20 16:19 蔡军帅 阅读(197) 评论(0) 推荐(0)
PAT 甲级1057 Stack (30 分)(不会,树状数组+二分)*****
摘要:1057 Stack (30 分) 1057 Stack (30 分) 1057 Stack (30 分) Stack is one of the most fundamental data structures, which is based on the principle of Last In 阅读全文
posted @ 2019-09-20 16:06 蔡军帅 阅读(226) 评论(0) 推荐(0)
PAT 甲级 1056 Mice and Rice (25 分) (队列,读不懂题,读懂了一遍过)
摘要:1056 Mice and Rice (25 分) 1056 Mice and Rice (25 分) 1056 Mice and Rice (25 分) Mice and Rice is the name of a programming contest in which each program 阅读全文
posted @ 2019-09-20 14:15 蔡军帅 阅读(954) 评论(0) 推荐(0)
PAT 甲级 1055 The World's Richest (25 分)(简单题,要用printf和scanf,否则超时,string 的输入输出要注意)
摘要:1055 The World's Richest (25 分) 1055 The World's Richest (25 分) 1055 The World's Richest (25 分) Forbes magazine publishes every year its list of billi 阅读全文
posted @ 2019-09-18 16:10 蔡军帅 阅读(397) 评论(0) 推荐(0)
PAT 甲级 1054 The Dominant Color (20 分)(简单题)
摘要:1054 The Dominant Color (20 分) 1054 The Dominant Color (20 分) 1054 The Dominant Color (20 分) Behind the scenes in the computer's memory, color is alwa 阅读全文
posted @ 2019-09-18 15:39 蔡军帅 阅读(149) 评论(0) 推荐(0)
PAT 甲级 1053 Path of Equal Weight (30 分)(dfs,vector内元素排序,有一小坑点)
摘要:1053 Path of Equal Weight (30 分) 1053 Path of Equal Weight (30 分) 1053 Path of Equal Weight (30 分) Given a non-empty tree with root R, and with weight 阅读全文
posted @ 2019-09-18 14:59 蔡军帅 阅读(551) 评论(1) 推荐(0)
PAT 甲级 1052 Linked List Sorting (25 分)(数组模拟链表,没注意到不一定所有节点都在链表里)
摘要:1052 Linked List Sorting (25 分) 1052 Linked List Sorting (25 分) 1052 Linked List Sorting (25 分) A linked list consists of a series of structures, whic 阅读全文
posted @ 2019-09-09 08:59 蔡军帅 阅读(303) 评论(0) 推荐(0)
PAT 甲级 1051 Pop Sequence (25 分)(模拟栈,较简单)
摘要:1051 Pop Sequence (25 分) 1051 Pop Sequence (25 分) 1051 Pop Sequence (25 分) Given a stack which can keep M numbers at most. Push N numbers in the order 阅读全文
posted @ 2019-09-07 23:34 蔡军帅 阅读(416) 评论(0) 推荐(0)
PAT 甲级 1050 String Subtraction (20 分) (简单送分,getline(cin,s)的使用)
摘要:1050 String Subtraction (20 分) 1050 String Subtraction (20 分) 1050 String Subtraction (20 分) Given two strings S​1​​ and S​2​​, S=S​1​​−S​2​​ is defin 阅读全文
posted @ 2019-09-07 23:07 蔡军帅 阅读(186) 评论(0) 推荐(0)
PAT 甲级 1049 Counting Ones (30 分)(找规律,较难,想到了一点但没有深入考虑嫌麻烦)***
摘要:1049 Counting Ones (30 分) 1049 Counting Ones (30 分) 1049 Counting Ones (30 分) The task is simple: given any positive integer N, you are supposed to co 阅读全文
posted @ 2019-09-07 21:47 蔡军帅 阅读(251) 评论(0) 推荐(0)
PAT 甲级 1048 Find Coins (25 分)(较简单,开个数组记录一下即可)
摘要:1048 Find Coins (25 分) 1048 Find Coins (25 分) 1048 Find Coins (25 分) Eva loves to collect coins from all over the universe, including some other plane 阅读全文
posted @ 2019-09-05 16:57 蔡军帅 阅读(579) 评论(0) 推荐(0)
PAT 甲级 1047 Student List for Course (25 分)(cout超时,string scanf printf注意点,字符串哈希反哈希)
摘要:1047 Student List for Course (25 分) 1047 Student List for Course (25 分) 1047 Student List for Course (25 分) Zhejiang University has 40,000 students an 阅读全文
posted @ 2019-09-05 15:00 蔡军帅 阅读(222) 评论(0) 推荐(0)
PAT 甲级 1046 Shortest Distance (20 分)(前缀和,想了一会儿)
摘要:1046 Shortest Distance (20 分) 1046 Shortest Distance (20 分) 1046 Shortest Distance (20 分) The task is really simple: given N exits on a highway which 阅读全文
posted @ 2019-09-03 23:46 蔡军帅 阅读(280) 评论(0) 推荐(0)
PAT 甲级 1045 Favorite Color Stripe (30 分)(思维dp,最长有序子序列)
摘要:1045 Favorite Color Stripe (30 分) 1045 Favorite Color Stripe (30 分) 1045 Favorite Color Stripe (30 分) Eva is trying to make her own color stripe out o 阅读全文
posted @ 2019-09-03 13:28 蔡军帅 阅读(386) 评论(0) 推荐(0)
PAT 甲级 1043 Is It a Binary Search Tree (25 分)(链表建树前序后序遍历)*不会用链表建树 *看不懂题
摘要:1043 Is It a Binary Search Tree (25 分) 1043 Is It a Binary Search Tree (25 分) 1043 Is It a Binary Search Tree (25 分) A Binary Search Tree (BST) is rec 阅读全文
posted @ 2019-09-02 15:25 蔡军帅 阅读(187) 评论(0) 推荐(0)
PAT 甲级 1044 Shopping in Mars (25 分)(滑动窗口,尺取法,也可二分)
摘要:1044 Shopping in Mars (25 分) 1044 Shopping in Mars (25 分) 1044 Shopping in Mars (25 分) Shopping in Mars is quite a different experience. The Mars peop 阅读全文
posted @ 2019-09-02 14:30 蔡军帅 阅读(276) 评论(0) 推荐(0)
PAT 甲级 1042 Shuffling Machine (20 分)(简单题)
摘要:1042 Shuffling Machine (20 分) 1042 Shuffling Machine (20 分) 1042 Shuffling Machine (20 分) Shuffling is a procedure used to randomize a deck of playing 阅读全文
posted @ 2019-08-31 12:48 蔡军帅 阅读(347) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 下一页