随笔 - 1659  文章 - 0  评论 - 100  阅读 - 188万
09 2019 档案
PAT 甲级 1063 Set Similarity (25 分) (新学,set的使用,printf 输出%,要%%)
摘要:1063 Set Similarity (25 分) Given two sets of integers, the similarity of the sets is defined to be /, wher... 阅读全文
posted @ 2019-09-29 18:15 蔡军帅 阅读(136) 评论(0) 推荐(0) 编辑
PAT 甲级 1063 Set Similarity (25 分) (新学,set的使用,printf 输出%,要%%)
摘要:1063 Set Similarity (25 分) 1063 Set Similarity (25 分) 1063 Set Similarity (25 分) Given two sets of integers, the similarity of the sets is defined to 阅读全文
posted @ 2019-09-29 18:15 蔡军帅 阅读(217) 评论(0) 推荐(0) 编辑
PAT 甲级 1062 Talent and Virtue (25 分)(简单,结构体排序)
摘要:1062 Talent and Virtue (25 分) 1062 Talent and Virtue (25 分) 1062 Talent and Virtue (25 分) About 900 years ago, a Chinese philosopher Sima Guang wrote 阅读全文
posted @ 2019-09-26 17:57 蔡军帅 阅读(219) 评论(0) 推荐(0) 编辑
PAT 甲级 1062 Talent and Virtue (25 分)(简单,结构体排序)
摘要:1062 Talent and Virtue (25 分) About 900 years ago, a Chinese philosopher Sima Guang wrote a history book i... 阅读全文
posted @ 2019-09-26 17:57 蔡军帅 阅读(94) 评论(0) 推荐(0) 编辑
PAT 甲级 1061 Dating (20 分)(位置也要相同,题目看不懂)
摘要:1061 Dating (20 分) Sherlock Holmes received a note with some strange strings: Let's date! 3485djDkxh4hhGE ... 阅读全文
posted @ 2019-09-23 19:08 蔡军帅 阅读(94) 评论(0) 推荐(0) 编辑
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 蔡军帅 阅读(319) 评论(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 蔡军帅 阅读(506) 评论(0) 推荐(0) 编辑
PAT 甲级 1060 Are They Equal (25 分)(科学计数法,接连做了2天,考虑要全面,坑点多,真麻烦)...
摘要:1060 Are They Equal (25 分) If a machine can save only 3 significant digits, the float numbers 12300 and 12... 阅读全文
posted @ 2019-09-23 14:32 蔡军帅 阅读(121) 评论(0) 推荐(0) 编辑
PAT 甲级 1059 Prime Factors (25 分) ((新学)快速质因数分解,注意1=1)
摘要:1059 Prime Factors (25 分) Given any positive integer N, you are supposed to find all of its prime factors,... 阅读全文
posted @ 2019-09-20 16:46 蔡军帅 阅读(133) 评论(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 蔡军帅 阅读(287) 评论(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 蔡军帅 阅读(190) 评论(0) 推荐(0) 编辑
PAT 甲级 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 magic has its ow... 阅读全文
posted @ 2019-09-20 16:19 蔡军帅 阅读(79) 评论(0) 推荐(0) 编辑
PAT 甲级1057 Stack (30 分)(不会,树状数组+二分)*****
摘要:1057 Stack (30 分) Stack is one of the most fundamental data structures, which is based on the principle of... 阅读全文
posted @ 2019-09-20 16:06 蔡军帅 阅读(107) 评论(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 蔡军帅 阅读(224) 评论(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 蔡军帅 阅读(943) 评论(0) 推荐(0) 编辑
PAT 甲级 1056 Mice and Rice (25 分) (队列,读不懂题,读懂了一遍过)
摘要:1056 Mice and Rice (25 分) Mice and Rice is the name of a programming contest in which each programmer must... 阅读全文
posted @ 2019-09-20 14:15 蔡军帅 阅读(122) 评论(0) 推荐(0) 编辑
PAT 甲级 1055 The World's Richest (25 分)(简单题,要用printf和scanf,否则超时,string 的输入输出要注意)...
摘要:1055 The World's Richest (25 分) Forbes magazine publishes every year its list of billionaires based on... 阅读全文
posted @ 2019-09-18 16:10 蔡军帅 阅读(174) 评论(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 蔡军帅 阅读(393) 评论(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 蔡军帅 阅读(142) 评论(0) 推荐(0) 编辑
PAT 甲级 1054 The Dominant Color (20 分)(简单题)
摘要:1054 The Dominant Color (20 分) Behind the scenes in the computer's memory, color is always talked abou... 阅读全文
posted @ 2019-09-18 15:39 蔡军帅 阅读(90) 评论(0) 推荐(0) 编辑
PAT 甲级 1053 Path of Equal Weight (30 分)(dfs,vector内元素排序,有一小坑点)
摘要:1053 Path of Equal Weight (30 分) Given a non-empty tree with root R, and with weight W​i​​ assigned to... 阅读全文
posted @ 2019-09-18 14:59 蔡军帅 阅读(123) 评论(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 蔡军帅 阅读(544) 评论(1) 推荐(0) 编辑
Node.jsp配环境更新中)
摘要:设置用户密码sudo passwd user1sudo passwd root 创建新用户sudo useradd -d /home/share -m sharesu share设置新用户密码sudo passwd share scp 文件名 share@172.21.12.51:~/tar -zx 阅读全文
posted @ 2019-09-16 12:15 蔡军帅 阅读(307) 评论(0) 推荐(0) 编辑
Node.jsp配环境更新中)
摘要:设置用户密码sudo passwd user1sudo passwd root创建新用户sudo useradd -d /home/share -m sharesu share设置新用户密码sudo pa... 阅读全文
posted @ 2019-09-16 12:15 蔡军帅 阅读(89) 评论(0) 推荐(0) 编辑
PAT 甲级 1052 Linked List Sorting (25 分)(数组模拟链表,没注意到不一定所有节点都在链表里)...
摘要:1052 Linked List Sorting (25 分) A linked list consists of a series of structures, which are not necess... 阅读全文
posted @ 2019-09-09 08:59 蔡军帅 阅读(161) 评论(0) 推荐(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 蔡军帅 阅读(297) 评论(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 蔡军帅 阅读(404) 评论(0) 推荐(0) 编辑
PAT 甲级 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 蔡军帅 阅读(79) 评论(0) 推荐(0) 编辑
PAT 甲级 1050 String Subtraction (20 分) (简单送分,getline(cin,s)的使用)
摘要:1050 String Subtraction (20 分) Given two strings S​1​​ and S​2​​, S=S​1​​−S​2​​ is defined to be the r... 阅读全文
posted @ 2019-09-07 23:07 蔡军帅 阅读(92) 评论(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 蔡军帅 阅读(179) 评论(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 蔡军帅 阅读(234) 评论(0) 推荐(0) 编辑
PAT 甲级 1049 Counting Ones (30 分)(找规律,较难,想到了一点但没有深入考虑嫌麻烦)***...
摘要:1049 Counting Ones (30 分) The task is simple: given any positive integer N, you are supposed to count ... 阅读全文
posted @ 2019-09-07 21:47 蔡军帅 阅读(129) 评论(0) 推荐(0) 编辑
PAT 甲级 1048 Find Coins (25 分)(较简单,开个数组记录一下即可)
摘要:1048 Find Coins (25 分) Eva loves to collect coins from all over the universe, including some other pla... 阅读全文
posted @ 2019-09-05 16:57 蔡军帅 阅读(100) 评论(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 蔡军帅 阅读(571) 评论(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 蔡军帅 阅读(218) 评论(0) 推荐(0) 编辑
PAT 甲级 1047 Student List for Course (25 分)(cout超时,string scanf printf注意点,字符串哈希反哈希)...
摘要:1047 Student List for Course (25 分) Zhejiang University has 40,000 students and provides 2,500 courses... 阅读全文
posted @ 2019-09-05 15:00 蔡军帅 阅读(116) 评论(0) 推荐(0) 编辑
PAT 甲级 1046 Shortest Distance (20 分)(前缀和,想了一会儿)
摘要:1046 Shortest Distance (20 分) The task is really simple: given N exits on a highway which forms a simp... 阅读全文
posted @ 2019-09-03 23:46 蔡军帅 阅读(111) 评论(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 蔡军帅 阅读(272) 评论(0) 推荐(0) 编辑
用Dev C++编写第一个C语言程序
摘要:不少新同学表示对计算机类专业有些担忧,那么可以趁军训期间提前玩玩。 学校一般使用VS2008进行编程,VS2008功能强大,内容丰富,体积也比较大。如果只关注C语言编程的话,有一个非常轻便的软件Dev C++ 。 最新版下载链接 https://www.embarcadero.com/cn/free 阅读全文
posted @ 2019-09-03 17:37 蔡军帅 阅读(4180) 评论(0) 推荐(0) 编辑
用Dev C++编写第一个C语言程序
摘要:不少新同学表示对计算机类专业有些担忧,那么可以趁军训期间提前玩玩。 学校一般使用VS2008进行编程,VS2008功能强大,内容丰富,体积也比较大。如果只关注C语言编程的话,有一个非常轻便的软件De... 阅读全文
posted @ 2019-09-03 17:37 蔡军帅 阅读(405) 评论(0) 推荐(0) 编辑
PAT 甲级 1045 Favorite Color Stripe (30 分)(思维dp,最长有序子序列)
摘要:1045 Favorite Color Stripe (30 分) Eva is trying to make her own color stripe out of a given one. She w... 阅读全文
posted @ 2019-09-03 13:28 蔡军帅 阅读(96) 评论(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 蔡军帅 阅读(369) 评论(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 蔡军帅 阅读(183) 评论(0) 推荐(0) 编辑
PAT 甲级 1043 Is It a Binary Search Tree (25 分)(链表建树前序后序遍历)*不会用链表建树 *看不懂题...
摘要:1043 Is It a Binary Search Tree (25 分) A Binary Search Tree (BST) is recursively defined as a binary t... 阅读全文
posted @ 2019-09-02 15:25 蔡军帅 阅读(120) 评论(0) 推荐(0) 编辑
PAT 甲级 1044 Shopping in Mars (25 分)(滑动窗口,尺取法,也可二分)
摘要:1044 Shopping in Mars (25 分) Shopping in Mars is quite a different experience. The Mars people pay by ... 阅读全文
posted @ 2019-09-02 14:30 蔡军帅 阅读(103) 评论(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 蔡军帅 阅读(269) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示