摘要:
解法1: #include<bits/stdc++.h> using namespace std; int n,m,i,f,k[5001],s[5001],sub[5001]; bool cmp(int a,int b){ if(s[a] == s[b]){ return k[a]<k[b]; } 阅读全文
posted @ 2019-11-24 14:57
JasonPeng1
阅读(132)
评论(0)
推荐(0)
摘要:
#include<bits/stdc++.h> using namespace std; set<int> s; int a[105]; int main(){ int n; cin>>n; for(int i=0;i<n;++i){ cin>>a[i]; s.insert(a[i]); } cou 阅读全文
posted @ 2019-11-24 14:55
JasonPeng1
阅读(288)
评论(0)
推荐(0)
摘要:
#include<iostream> using namespace std; int n,a[1000001]; void qsort(int l,int r){ int mid = a[(l+r)/2];//中间数 int i = l,j = r; do{ while(a[i]<mid) i++ 阅读全文
posted @ 2019-11-24 14:53
JasonPeng1
阅读(150)
评论(0)
推荐(0)
摘要:
2019-11-24 11:48:55 阅读全文
posted @ 2019-11-24 11:49
JasonPeng1
阅读(105)
评论(0)
推荐(0)
摘要:
2019-11-24 11:26:52 dfs.replication 代表数据节点冗余度。 默认是3,如果只有1个数据节点则配置为1 代表默认目录 格式化后显示: 伪分布模式 特点:在单机上,模拟一个分布式的环境,具备Hadoop的所有功能。配置: 需要配置的信息: hdfs-site.xml < 阅读全文
posted @ 2019-11-24 11:48
JasonPeng1
阅读(162)
评论(0)
推荐(0)
摘要:
2019-11-24 11:23:48 本地模式 特点:没有HDFS,只能测试MapReduce程序(本地数据:Linux的文件)配置:hadoop-env.sh 26行 export JAVA_HOME=/root/training/jdk1.8.0_144 配置 1.在Hadoop目录下找到配置 阅读全文
posted @ 2019-11-24 11:25
JasonPeng1
阅读(128)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2019-11-24 10:51
JasonPeng1
阅读(695)
评论(0)
推荐(0)
摘要:
2019-11-24 10:04:17 解法1: O(N平方)复杂度 #include<bits/stdc++.h> #include <stdlib.h> #include <stdio.h> using namespace std; int main(){ int n,m,s=0; bool v 阅读全文
posted @ 2019-11-24 10:24
JasonPeng1
阅读(168)
评论(0)
推荐(0)

浙公网安备 33010602011771号