首先对要求的数进行质因数分解,然后求各因数的幂的积数,比如600=2^3*3^1*5^2那么因子个数是(3+1)*(1+1)*(2+1)=24public class TestYuman{ public static void main(String[] args){ i...
分类:
其他好文 时间:
2015-07-12 21:33:51
阅读次数:
180
演讲效果太差,读稿子不好,列个大纲,唱歌唱欢乐一点的吧,下次好好讲.不要找借口,不会就是不会,不会就是不够努力学习还是要靠自觉班长:尽量使用新学的东西,多用才能熟悉,考试时候写最保险的有问题,Q上问总监问问师兄只要是思考过就可以问,别怕丢人吃饭时候跟同学讨论下,记不住的拍照放手机里看周四 1.今天的...
分类:
其他好文 时间:
2015-07-12 21:32:27
阅读次数:
93
安装hadoop要先做以下准备:1.jdk,安装教程在http://www.cnblogs.com/stardjyeah/p/4640917.html2.ssh无密码验证,配置教程在http://www.cnblogs.com/stardjyeah/p/4641524.html3.linux静态ip...
分类:
其他好文 时间:
2015-07-12 21:34:33
阅读次数:
161
题意:一个int类型正整数,求它的二进制形式有多少个1思路:除2递归,可以解出,看了discuss里面有个解更牛,一行结束战斗,是用n&(n-1)再递归,其实并不是很懂怎么想出来这么做的,可能是自己对二进制的处理根本不怎么了解吧,但是这样做结果是对的代码:int hammingWeight(uint...
分类:
其他好文 时间:
2015-07-12 21:33:41
阅读次数:
90
一、表视图的结构1、表视图由头部视图、尾部视图、中间一连串单元格组成2、头部视图由tableHeaderView属性设置,尾部视图由tableFooterView属性设置3、分组表格由一连串section视图组成,每个section又包含一个连续的单元格4、每个section视图也有头部视图和尾部视...
分类:
其他好文 时间:
2015-07-12 21:33:26
阅读次数:
121
1. 检出项目到本地git clone git@github.com:michaelliao/gitskills.git2. 查看当前工作区状态git status3. 添加文件或文件夹至版本库添加文件至版本库git add index.html添加文件夹至版本库 git add img/3. 确认...
分类:
其他好文 时间:
2015-07-12 21:32:37
阅读次数:
96
问题描述Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.For example:Given n = 13,Retu...
分类:
其他好文 时间:
2015-07-12 21:30:33
阅读次数:
114
Link 数据类型如下:class Link: """A linked list. >>> s = Link(1, Link(2, Link(3, Link(4)))) >>> len(s) 4 >>> s[2] 3 >>> s Link(1, Lin...
分类:
其他好文 时间:
2015-07-12 21:30:29
阅读次数:
332
setInterval与clearIntersetInterval按照指定的周期单位为毫秒来调用函数或计算表达式。setInterval(function,time)返回值:定时器的ID值,可用于clearInterval()方法停止指定的定时器。setInterval()方法会不停地调用函数,直到...
分类:
其他好文 时间:
2015-07-12 21:29:15
阅读次数:
111
[hadoop@master hadoop]$ hive -S -e 'set -v'|grep querylog|grep -E -v 'CLASSPATH|class'hive.querylog.enable.plan.progress=truehive.querylog.location=/h...
分类:
其他好文 时间:
2015-07-12 21:29:54
阅读次数:
93
总结一句话,Hash是一种典型的空间换时间,代价就是需要使用更大的空间,除了要储存源数据外还要额外的储存,hash关系的数据!【转】哈希表和哈希函数是大学数据结构中的课程,实际开发中我们经常用到Hashtable这种结构,当遇到键-值对存储,采用Hashtable比ArrayList查找的性能高。为...
分类:
其他好文 时间:
2015-07-12 21:27:00
阅读次数:
131
一、部署方式
1、三种简单的部署方式:
(1)、即直接将项目从IDE 集成开发环境(eclipse myeclipse) 部署到tomcat具体的步骤见
Eclipse中的Web项目自动部署到Tomcat
(2)、war包的部署就是将你的工程打成war包直接拷贝到 tomcat 默认的加载目录下,一般不修改的话都是在webapps 下,也就是conf/servlet/host...
分类:
其他好文 时间:
2015-07-12 20:26:13
阅读次数:
204
/*
Write a program to print the value of EOF.
*/
#include
main()
{
printf("EOF is %d\n", EOF);
}
/*
Output:
EOF is -1
*/...
分类:
其他好文 时间:
2015-07-12 20:24:24
阅读次数:
103
基于STM32W108芯片,编写串口测试程序,测试串口通信,完成PC通过串口与STM32W108进行通信。...
分类:
其他好文 时间:
2015-07-12 20:25:13
阅读次数:
232
/*
Write a program to count blanks, tabs, and newlines.
*/
#include
/* count blanks, tabs, and newlines */
main()
{
int c, nb, nt, nl;
nb = 0; /* number of blanks */
nt = 0; /* number of t...
分类:
其他好文 时间:
2015-07-12 20:23:41
阅读次数:
103
/*
Write a program to copy its input to its output, replacing each string of one or
more blanks by a single blank.
*/
#include
#define NONBLANK 'a'
/* replace string of blanks with a single blank...
分类:
其他好文 时间:
2015-07-12 20:22:41
阅读次数:
127
/*
Write a program to copy its input to its output, replacing each tab by \t, each
backspace by \b, and each backslash by \\. This makes tabs and backspaces visible
in an unambiguous way.
*/
#inclu...
分类:
其他好文 时间:
2015-07-12 20:25:20
阅读次数:
93