- 博客(8)
- 资源 (2)
- 收藏
- 关注
原创 Linux下Hadoop环境配置及测试用例
配置Hadoop环境下载安装下载oracle jdk:jdk下载得到:jdk-14.0.2_linux-x64_bin.tar.gz下载Hadoop:Hadoop下载得到:hadoop-3.3.0.tar.gz将二者移动到/usr/local文件夹,分别解压:$ sudo tar xzf hadoop-3.3.0.tar.gz$ sudo mv hadoop-3.3.0 hadoop$ sudo tar xzf jdk-14.0.2_linux-x64_bin.tar.gz配置环境变量
2020-08-10 15:55:41 530
原创 PAT甲级真题 1113 Integer Set Partition (25分) C++实现 (简单划分数组)
题目Given a set of N (> 1) positive integers, you are supposed to partition them into two disjoint sets A1 and A2 of n1 and n2 numbers, respectively. Let S1 and S2 denote the sums of all the numbers in A1 and A2, respectively. You are supposed to make t
2020-08-03 18:40:06 164
原创 PAT甲级真题 1112 Stucked Keyboard (20分) C++实现(键盘坏键问题)
题目On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the characters corresponding to those keys will appear repeatedly on screen for k times.Now given a resulting string on screen, you are supposed to list all th
2020-08-02 21:32:16 388
原创 PAT甲级真题 1111 Online Map (30分) C++实现(两次dijkstra+dfs,复用封装函数)
题目Input our current position and a destination, an online map can recommend several paths. Now your job is to recommend two paths to your user: one is the shortest, and the other is the fastest. It is guaranteed that a path exists for any request.Input
2020-08-01 13:02:47 167
原创 PAT甲级真题 1110 Complete Binary Tree (25分) C++实现(判断完全二叉树)
题目Given a tree, you are supposed to tell if it is a complete binary tree.Input Specification:Each input file contains one test case. For each case, the first line gives a positive integer N (≤20) which is the total number of nodes in the tree – and hen
2020-08-01 12:46:33 222
原创 PAT甲级真题 1109 Group Photo (25分) C++实现(排队问题,左右横跳)
题目Formation is very important when taking a group photo. Given the rules of forming K rows with N people as the following:The number of people in each row must be N/K (round down to the nearest integer), with all the extra people (if any) standing in th
2020-08-01 12:32:47 403
原创 PAT甲级真题 1108 Finding Average (20分) C++实现(stringstream判断string转float/double是否合法)
题目he basic task is simple: given N real numbers, you are supposed to calculate their average. But what makes it complicated is that some of the input numbers might not be legal. A legal input is a real number in [−1000,1000] and is accurate up to no more
2020-08-01 12:21:48 221
原创 PAT甲级真题 1107 Social Clusters (30分) C++实现(并查集:路径压缩+优先级)
题目When register on a social network, you are always asked to specify your hobbies in order to find some potential friends with the same hobbies. A social cluster is a set of people who have some of their hobbies in common. You are supposed to find all th
2020-08-01 12:11:51 196
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人