1.耶稣有13个门徒,其中有一个就是出卖耶稣的叛徒,请用排除法找出这位叛徒:13个人围坐一圈,从第一个人开始循环报数,数到三排除,最后剩下的人就是叛徒
int people[13] = {1,2,3,4,5,6,7,8,9,10,11,12,13};
int count = 0;//用来记录报数
int number = 13;//记录活着的人数
int i = 0;/...
分类:
移动开发 时间:
2014-09-03 15:04:56
阅读次数:
220
host1:~#echomidware1|passwd--stdinmidwareChangingpasswordformidware.passwd:Haveexhaustedmaximumnumberofretriesforservice修改/etc/pam.d/common-passwordpasswordrequiredpam_pwhistory.soremember=5retry=3修改remember参数为1,修改完密码之后再将参数恢复。
分类:
其他好文 时间:
2014-09-03 13:18:17
阅读次数:
1296
zoj 3622、Magic Number
水题
先找规律生成区间[1,1内的所有Magic Number,计算出来只有40多个,然后就随便YY了。
void init()
{
int a[5] = {
1,2,5,25,125
};
ll Max = (1ll<<32)-1;
for(ll tmp =1; tmp<=Max; tmp *=10)
{
for(int...
分类:
其他好文 时间:
2014-09-03 13:12:36
阅读次数:
223
2014年9月3日 11:36:10转载的:http://blog.sina.com.cn/s/blog_755168af0100vsik.htmltypeof用法typeof的运算数未定义,返回的就是 "undefined".运算数为数字 typeof(x) = "number"字符串 typeo...
分类:
Web程序 时间:
2014-09-03 12:53:46
阅读次数:
262
js中的数据类型有:Object Null Undefined Number String Boolean转化为boolean类型:Boolean(); 转化规则: 数据类型转化为true的值转化为false的值BooleantruefalseString任何非空的字符串""(...
分类:
Web程序 时间:
2014-09-03 12:43:26
阅读次数:
217
这里需要用到的工具叫做sqlcmd.exe, 它随SQL server的安装而安装. 该可执行程序的位置在: C:\Program Files\Microsoft SQL Server\xxx\Tools\Binn 其中xxx是你所安装的SQL Server的版本号. Version Number ...
分类:
数据库 时间:
2014-09-03 12:32:16
阅读次数:
290
/*
Write a program that prints the numbers from 1 to 100,but for multiples of three print “Fizz” instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of...
分类:
其他好文 时间:
2014-09-03 11:19:16
阅读次数:
221
lda,latent diriclet allocation,是一个最基本的bayesian模型。本文要研究lda基于变分的推导方法。意义是重大的。一、符号的定义: the number of topics: the number of documents: the number of terms ...
分类:
其他好文 时间:
2014-09-03 10:49:46
阅读次数:
239
Big Number
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 26003 Accepted Submission(s): 11810
Problem Description
In many applicati...
分类:
其他好文 时间:
2014-09-03 09:43:46
阅读次数:
160
calculatethenumberofcharacters-统计文件中的字符数,非空白字符数,字母数,输入到文件和屏幕://calculatethenumberofcharacters-统计文件中的字符数,非空白字符数,字母数,输入到文件和屏幕:
#include<iostream>
#include<fstream>
#include<cstdlib>..
分类:
其他好文 时间:
2014-09-03 02:44:56
阅读次数:
227