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 ...

2019-09-16 12:15:00

阅读数 1

评论数 0

PAT 甲级 1052 Linked List Sorting (25 分)(数组模拟链表,没注意到不一定所有节点都在链表里)...

1052Linked List Sorting(25分) A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume t...

2019-09-09 08:59:00

阅读数 7

评论数 0

PAT 甲级 1051 Pop Sequence (25 分)(模拟栈,较简单)

1051Pop Sequence(25分) Given a stack which can keepMnumbers at most. PushNnumbers in the order of 1, 2, 3, ...,Nand pop randomly. You a...

2019-09-07 23:34:00

阅读数 6

评论数 0

PAT 甲级 1050 String Subtraction (20 分) (简单送分,getline(cin,s)的使用)

1050String Subtraction(20分) Given two stringsS​1​​andS​2​​,S=S​1​​−S​2​​is defined to be the remaining string after taking all the chara...

2019-09-07 23:07:00

阅读数 7

评论数 0

PAT 甲级 1049 Counting Ones (30 分)(找规律,较难,想到了一点但没有深入考虑嫌麻烦)***...

1049Counting Ones(30分) The task is simple: given any positive integerN, you are supposed to count the total number of 1's in the decimal...

2019-09-07 21:47:00

阅读数 6

评论数 0

PAT 甲级 1048 Find Coins (25 分)(较简单,开个数组记录一下即可)

1048Find Coins(25分) Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a...

2019-09-05 16:57:00

阅读数 7

评论数 0

PAT 甲级 1047 Student List for Course (25 分)(cout超时,string scanf printf注意点,字符串哈希反哈希)...

1047Student List for Course(25分) Zhejiang University has 40,000 students and provides 2,500 courses. Now given the registered course lis...

2019-09-05 15:00:00

阅读数 5

评论数 0

PAT 甲级 1046 Shortest Distance (20 分)(前缀和,想了一会儿)

1046Shortest Distance(20分) The task is really simple: givenNexits on a highway which forms a simple cycle, you are supposed to tell the ...

2019-09-03 23:46:00

阅读数 7

评论数 0

用Dev C++编写第一个C语言程序

  不少新同学表示对计算机类专业有些担忧,那么可以趁军训期间提前玩玩。   学校一般使用VS2008进行编程,VS2008功能强大,内容丰富,体积也比较大。如果只关注C语言编程的话,有一个非常轻便的软件Dev C++ 。 下载链接 https://sourceforge.net/project...

2019-09-03 17:37:00

阅读数 9

评论数 0

PAT 甲级 1045 Favorite Color Stripe (30 分)(思维dp,最长有序子序列)

1045Favorite Color Stripe(30分) Eva is trying to make her own color stripe out of a given one. She would like to keep only her favorite c...

2019-09-03 13:28:00

阅读数 8

评论数 0

PAT 甲级 1043 Is It a Binary Search Tree (25 分)(链表建树前序后序遍历)*不会用链表建树 *看不懂题...

1043Is It a Binary Search Tree(25分) A Binary Search Tree (BST) is recursively defined as a binary tree which has the following propertie...

2019-09-02 15:25:00

阅读数 6

评论数 0

PAT 甲级 1044 Shopping in Mars (25 分)(滑动窗口,尺取法,也可二分)

1044Shopping in Mars(25分) Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a ...

2019-09-02 14:30:00

阅读数 5

评论数 0

PAT 甲级 1042 Shuffling Machine (20 分)(简单题)

1042Shuffling Machine(20分) Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are...

2019-08-31 12:48:00

阅读数 3

评论数 0

PAT 甲级 1041 Be Unique (20 分)(简单,一遍过)

1041Be Unique(20分) Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of win...

2019-08-31 11:15:00

阅读数 1

评论数 0

PAT 甲级 1040 Longest Symmetric String (25 分)(字符串最长对称字串,遍历)

1040Longest Symmetric String(25分) Given a string, you are supposed to output the length of the longest symmetric sub-string. For example...

2019-08-31 09:36:00

阅读数 1

评论数 0

PAT 甲级 1039 Course List for Student (25 分)(字符串哈希,优先队列,没想到是哈希)*...

1039Course List for Student(25分) Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of a...

2019-08-30 17:38:00

阅读数 1

评论数 0

PAT 甲级 1038 Recover the Smallest Number (30 分)(思维题,贪心)

1038Recover the Smallest Number(30分) Given a collection of number segments, you are supposed to recover the smallest number from them. F...

2019-08-29 16:59:00

阅读数 1

评论数 0

PAT 甲级 1037 Magic Coupon (25 分) (较简单,贪心)

1037Magic Coupon(25分) The magic shop in Mars is offering some magic coupons. Each coupon has an integerNprinted on it, meaning that when...

2019-08-29 16:16:00

阅读数 0

评论数 0

PAT 甲级 1036 Boys vs Girls (25 分)(简单题)

1036Boys vs Girls(25分) This time you are asked to tell the difference between the lowest grade of all the male students and the highest ...

2019-08-27 20:42:00

阅读数 1

评论数 0

PAT 甲级 1035 Password (20 分)(简单题)

1035Password(20分) To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are ...

2019-08-27 19:57:00

阅读数 1

评论数 0

提示
确定要删除当前文章?
取消 删除