题目链接:uva 1434 - YAPTCHA 题目大意:给定n和k,求题目中给定的式子S(n)。 解题思路:威尔逊定理,x为素数时有,((x?1)!+1)%x==0,所以对于本题。假设3*k+7为素数的话,[(3k+6)!+1(3k+7?[(3k+6)!3k+7]]=1 #include <cst
分类:
其他好文 时间:
2016-01-30 13:47:48
阅读次数:
153
程序及分析/* * FileName : random_gen.c * Author : xiahouzuoxin @163.com * Version : v1.0 * Date : Tue 29 Jul 2014 08:31:41 PM CST * Brief : * *...
分类:
其他好文 时间:
2016-01-22 17:32:52
阅读次数:
293
atitit.获取北京时间CST功能api总结O71.获取cst时间(北京时间)两布:1.抓取urltimtstamp>>format到cst 12.设置本机时间setSystime(date);:调用的命令行,仅仅能支持windows和linux系统 23.留意:1582年10月5日—1582年1...
创建虚拟的vlan设备例如:vconfig add eth0 10就创建了一个eth0.10的设备vconfig的使用说明如下:root@hbg:/# vconfigBusyBox v1.22.1 (2015-12-18 15:33:52 CST) multi-call binary.Usage: ...
分类:
其他好文 时间:
2016-01-14 20:33:24
阅读次数:
434
root@hbg:/# tftpBusyBox v1.22.1 (2015-12-18 15:33:52 CST) multi-call binary.Usage: tftp [OPTIONS] HOST [PORT]Transfer a file from/to tftp server -l FI...
分类:
其他好文 时间:
2016-01-11 13:33:09
阅读次数:
223
时区简单理解https://zh.wikipedia.org/wiki/%E6%97%B6%E5%8C%BA上面的链接是时区的wiki说明,下面说说我记住的部分:GMT时区是格林威治标准时间,我把它理解为 “真实时间”UTC时区是根据GMT得来的“世界标准时间”,它的时间和GMT是相同的CST可以指...
分类:
数据库 时间:
2016-01-07 13:15:53
阅读次数:
177
[root@localhost ~]# date2014年 10月 11日 星期六 22:09:30 CST[root@localhost ~]# date +%Y/%m/%d2014/10/11[root@localhost ~]# date +%H:%M22:10[root@localhost ...
分类:
其他好文 时间:
2016-01-03 02:42:50
阅读次数:
231
date命令是显示日期时间的命令date2016年 01月 01日 星期五 15:05:01 CST修改时间的选项是 -sdate -s "2016-01-01 12:56:10"查看日历cal全年日历cal -y同步服务器的时间yum install ntp -yntpdate ntp.fudan...
分类:
系统相关 时间:
2016-01-01 22:56:32
阅读次数:
274
为了学习,在虚拟机中最小化安装了CentOS6.7,使用时发现文件的时间戳跟实际时间不一致,用date查看时间的时候显示:2016年01月01日星期五21:11:43CST然后用date-u显示的时间是正确的:2016年01月01日星期五13:12:20UTC为了解决这个问题,在网上找了一些解决方法,记录如下。世..
分类:
系统相关 时间:
2016-01-01 15:04:41
阅读次数:
417
/** @todo : sphinx实时索引curd操作类,适应sphinx 1.10-beta版* @created :Wed Nov 10 10:38:27 CST 2010* @email:blvming@gmail.com* @website:http://www.sphinxsearch....