首页 > 其他
AAS代码运行-第4章
[root@node1 aas]# lsch02 ch03 spark-1.2.1-bin-hadoop2.4 spark-1.2.1-bin-hadoop2.4.tgz[root@node1 aas]# cd spark-1.2.1-bin-hadoop2.4[root@node1 spar...
分类:其他   时间:2015-12-06 11:14:35    收藏:0  评论:0  赞:0  阅读:185
1010. Radix (25)
简直是哭着做出来的,起码提交了22遍。创纪录了。。。首先不能像上次那样枚举进制数,那样输入987654321 10 1 10 的话十分钟都算不完,题中只有一个超时很照顾人了。。。考虑近似计算,利用y=a*x^n+b 算出n,进制数如果有,也不会超过n,因此考虑由n向下寻找。注意,进制数不能小于数中最...
分类:其他   时间:2015-12-06 11:14:15    收藏:0  评论:0  赞:0  阅读:207
1017. Queueing at Bank (25)
排队模型时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueSuppose a bank has K windows open for service. There is a yellow line in front of the wi...
分类:其他   时间:2015-12-06 11:14:05    收藏:0  评论:0  赞:0  阅读:161
o] TortoiseGit错误 - Could not get all refs. libgit2 returned: corrupted loose reference file
因无法追溯的同步操作错误或工程文件错误,造成Git 同步时报错:Could not get all refs. libgit2 returned: corrupted loose reference file因对git相关配置不熟悉,造成手动修复时错改文件,越错越离谱,所以在解决问题前需要清楚Git...
分类:其他   时间:2015-12-06 11:13:55    收藏:0  评论:0  赞:0  阅读:7363
求最大公约数(辗转相除法)
public static int gcd(int a, int b) { int n1 = Math.abs(a); int n2 = Math.abs(b); int remainder = n1 % n2; while (remainder > 0) { n1 = n2; n2 ...
分类:其他   时间:2015-12-06 11:13:45    收藏:0  评论:0  赞:0  阅读:138
1029. Median (25)
1,注意algorithm 里面有merge函数2,scanf 比cin快许多,大约是后者1/33,输入long int 用scanf("%ld", &a[i]); 是小写的l时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGive...
分类:其他   时间:2015-12-06 11:13:35    收藏:0  评论:0  赞:0  阅读:203
集合的异或运算(对称差)
1、集合的异或运算(AΔB)定义属于A或属于B,但不同时属于A和B的元素的集合称为A和B的对称差,即A和B的异或。注:草绿色部分即为 AΔB2、对称差(异或)运算的定律2.1 AΔB = (A-B)∪(B-A) = (A∪B)-(A∩B)该公式的证明已在 集合的证明及相关习题 中证明了2.2 对称差...
分类:其他   时间:2015-12-06 11:13:15    收藏:0  评论:0  赞:0  阅读:350
1027. Colors in Mars (20)
People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-digit number, wher...
分类:其他   时间:2015-12-06 11:13:05    收藏:0  评论:0  赞:0  阅读:242
Zookeeper工作原理二
ZooKeeper是Hadoop的正式子项目,它是一个针对大型分布式系统的可靠协调系统,提供的功能包括:配置维护、名字服务、分布式同步、组服务等。ZooKeeper的目标就是封装好复杂易出错的关键服务,将简单易用的接口和性能高效、功能稳定的系统提供给用户。Zookeeper是Google的Chubb...
分类:其他   时间:2015-12-06 11:12:55    收藏:0  评论:0  赞:0  阅读:158
图片拉伸方法以及修改图片渲染模式以及如何把一个控制器包装成一个导航控制器
当我们给导航控制器的左侧或右侧的item设置图片的时候,设置完成后无论图片是什么颜色,将图片添加到item上的时候会被系统渲染成蓝色,这个时候如果我们想要使用图片本来的颜色,那么就可以用到下面这个方法:下面这个方法就是对图片进行拉伸:- (void)viewDidLoad { [super v...
分类:其他   时间:2015-12-06 11:12:45    收藏:0  评论:0  赞:0  阅读:121
Zookeeper工作原理一
ZooKeeper是一个分布式的,开放源码的分布式应用程序协调服务,它包含一个简单的原语集,分布式应用程序可以基于它实现同步服务,配置维护和命名服务等。Zookeeper是hadoop的一个子项目,其发展历程无需赘述。在分布式应用中,由于工程师不能很好地使用锁机制,以及基于消息的协调机制不适合在某些...
分类:其他   时间:2015-12-06 11:12:35    收藏:0  评论:0  赞:0  阅读:145
1033. To Fill or Not to Fill (25)
贪心算法的模拟题。时间限制10 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者ZHANG, GuochuanWith highways available, driving a car from Hangzhou to any other city is easy...
分类:其他   时间:2015-12-06 11:12:15    收藏:0  评论:0  赞:0  阅读:181
1005. Spell It Right (20)
注意字符串的输入方法char a[100] = { 0 };scanf("%s", &a);时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a non-negative integer N, your task is t...
分类:其他   时间:2015-12-06 11:11:35    收藏:0  评论:0  赞:0  阅读:211
1007. Maximum Subsequence Sum (25)
Given a sequence of K integers { N1, N2, ..., NK }. A continuous subsequence is defined to be { Ni, Ni+1, ..., Nj } where 1 #include #include using na...
分类:其他   时间:2015-12-06 11:11:06    收藏:0  评论:0  赞:0  阅读:146
获取浏览器ip地址
$(document).ready(function(){ var url = 'http://chaxun.1616.net/s.php?type=ip&output=json&callback=?&_='+Math.random(); $.getJ...
分类:其他   时间:2015-12-06 11:10:55    收藏:0  评论:0  赞:0  阅读:135
信息安全系统设计基础第十二周总结
第 11 章 网络编程11.1 客户端-服务器编程模型每个网络应用都是基于客户端一服务器模型的。一个应用是由一个服务器进程和一个或者多个客户端进程组成。服务器管理某种资源,并且通过操作这种资源来为它的客户端提供某种服务。客户端一服务器模型中的基本操作是事务,由四步组成:1.当一个客户端需要服务时,它...
分类:其他   时间:2015-12-06 09:59:15    收藏:0  评论:0  赞:0  阅读:226
1002. A+B for Polynomials (25)
注意输入输出的:1,输入小数的语句 scanf("%lf", &a)2,输出一位小数的语句 printf("%.1f", count);时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThis time, you are suppo...
分类:其他   时间:2015-12-06 09:58:55    收藏:0  评论:0  赞:0  阅读:194
[LeetCode]Longest Palindromic Substring
public class Solution { public String longestPalindrome(String s) { int length = s.length(); String result = ""; for (int i = ...
分类:其他   时间:2015-12-06 09:58:35    收藏:0  评论:0  赞:0  阅读:210
1001. A+B Format
时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueCalculate a + b and output the sum in standard format -- that is, the digits must be separat...
分类:其他   时间:2015-12-06 09:58:15    收藏:0  评论:0  赞:0  阅读:198
信息安全系统设计基础第十三周总结
第11章 网络编程1.网络应用随处可见。任何时候你浏览Web、发送Email或者弹出一个X window,你就正在使用一个网络应用程序。有趣的是,所有的网络应用都是基于相同的基本编程模型有着相似的整体逻辑结构,并且依赖相同的编程接口。2.网络应用依赖于很多在系统研究中已经学习过的概念,例如,进程、信...
分类:其他   时间:2015-12-06 09:58:05    收藏:0  评论:0  赞:0  阅读:199
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!