码迷,mamicode.com
首页 >  
搜索关键字:while loading shared    ( 36422个结果
hadoop中日志聚集问题
遇到的问题:当点击上面的logs时,会出现下面问题:这个解决方案为:By default, Hadoop stores the logs of each container in the node where that container was hosted. While this is irre...
分类:其他好文   时间:2014-05-19 10:33:13    阅读次数:369
快速排序
void quickSort(int *a1 , int *a2){ int i=0 , j=a2-a1-1; if (i>=j) return; swap(a1[0] , a1[rand()%j+1]); while( ia1[0]) --j; if(i<j)...
分类:其他好文   时间:2014-05-19 07:43:47    阅读次数:213
linux 判断指定用户对指定目录具有的权限
脚本名:power.sh脚本内容:Shell代码 #!/bin/sh username3=$1 dir_name2=$2 # get existing directory file_path=$dir_name2 while true do if [ -d $fil...
分类:系统相关   时间:2014-05-18 18:49:24    阅读次数:319
UVA 11270 Tiling Dominoes(插头DP)
题目链接:11270 - Tiling Dominoes 和POJ 2411一样的题目,试着用插头DP写了下 代码: #include #include #include using namespace std; int n, m, pre = 0, now = 1; long long dp[2][2222]; int main() { while (~scanf("%d%d",...
分类:其他好文   时间:2014-05-18 14:44:37    阅读次数:264
poj-3438
#include#include#include#includeusing namespace std;int main(){ int t; string s; cin>>t; while(t--) { cin>>s; int ls=s.le...
分类:其他好文   时间:2014-05-18 00:04:05    阅读次数:246
CF 432B :Football Kit
hash做法:#include#includeconst int Max = 100010;int home[Max],away[Max],hash[Max];int main(){ int n,sum,total; int i,j; while(scanf("%d",&n)!=E...
分类:其他好文   时间:2014-05-17 21:44:37    阅读次数:504
2014年百度之星程序设计大赛 资格赛第一题 (longlong)
解题思路:只要看(A-V)*K 这个公式的更新值是否大于等于A ,大于的话继续循环,否则报错注意一点,数据会爆intWA代码:#includeint main(){ long long n ,m, v, k; int t; scanf("%d",&t); while(t--)...
分类:其他好文   时间:2014-05-17 20:49:27    阅读次数:167
Sublime Text 3 Build 3062 全部破解版本下载
Build 3062Release Date: 5 May 2014Added sidebar iconsAdded sidebar loading indicatorsSidebar remembers which folders are expandedFixed a crash in plug...
分类:其他好文   时间:2014-05-17 18:46:18    阅读次数:309
List 循环的高效代码块
高效的代码块: /* Iterator it = al.iterator();//获取迭代器,用于取出集合中的元素。 while(it.hasNext()) { sop(it.next()); } ...
分类:其他好文   时间:2014-05-17 18:28:51    阅读次数:252
KMP超强模板贴一份
while(scanf("%s",str+1)==1){intn=strlen(str+1);next[1]=0;intj=0;for(inti=2;i2#include3#include4#include5#include6#include7#include8usingnamespacestd;9...
分类:其他好文   时间:2014-05-17 18:14:24    阅读次数:270
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!