自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

zhang35的博客

不着急,不害怕,不要脸

  • 博客(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

Partrition Manager 绿色版

一个功能强大,使用简单的硬盘分区管理软件,能自由分配当前分区大小

2011-09-05

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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