UVA 10689 - Yet another Number Sequence
题目链接
题意:斐波那契给前两项,求出第n项,并保留m位
思路:挺裸的矩阵快速幂,就是取模的值是10^m
代码:
#include
#include
const int mod[5] = {0, 10, 100, 1000, 10000};
int t, a, b, n, m;
s...
分类:
其他好文 时间:
2014-07-22 00:31:37
阅读次数:
279
一:简介rpm包的命名格式:name-version-relase.arch.rpmversion:major,minor,release,同源代码release:rpm自身的发行号,与程序源代码的发行号无关,仅用于标示对rpm包不同制作的修订;同时,release还包含此包适用的OSbash-4.2.3-3.centos5arch:适用于的硬件平台,可靠..
分类:
其他好文 时间:
2014-07-21 12:48:24
阅读次数:
217
rpm包的使用:用rpm包管理器所打包后的程序包都是以rpm结尾的源代码:name-version.tar.{gz,bz2,xz}version:major.minor.releaserpm包的命名格式name-version-relase.arch.rpmversion:major.minor.release,同源代码主版本号.次版本号.修订版本号release:rpm自身的发行号,与..
分类:
其他好文 时间:
2014-07-21 12:42:54
阅读次数:
271
之前介绍了使用ansibleplaybok安装zabbix客户端、mysql服务端、nginx,现在介绍一下安装lnmp环境。下面是安装nginx的信息:nginx_user:wwwnginx用户
nginx_port:80nginx监听端口
nginx_web_dir:/data/webroot/nginxnginx的目录
nginx_version:1.4.3nginx的版本
pcre_version:8...
分类:
其他好文 时间:
2014-07-21 12:18:35
阅读次数:
403
liferay version : liferay-portal-6.1.1-ce-ga2
server : tomcat 7.0.25
Liferay是很庞大,Portal 自带几十个 Portlet, 但是完全可以自己根据需求选择性加载 Portal 自带的 Portlet。
好处就是:
1,启动速度(性能)的提升
2,界面能变得更加简洁,毕竟不需要的 Port...
分类:
其他好文 时间:
2014-07-21 11:36:25
阅读次数:
203
Maximum repetition substring
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 6638
Accepted: 2007
Description
The repetition number of a string is defined a...
分类:
其他好文 时间:
2014-07-21 11:35:34
阅读次数:
244
#include
#include
int main()
{
int num1,num2;
int *num1_p=&num1,*num2_p=&num2,*pointer;
printf("Input the first number:");
scanf("%d",num1_p);
printf("Input the second num...
分类:
其他好文 时间:
2014-07-21 11:14:14
阅读次数:
180
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2014-07-21 09:07:24
阅读次数:
207
I-number
Time Limit: 5000ms Memory limit: 65536K 有疑问?点这里^_^
题目描述
The I-number of x is defined to be an integer y, which satisfied the the conditions below:
1. y>x;
2. the sum of each...
分类:
其他好文 时间:
2014-07-20 23:24:13
阅读次数:
298
问题一:出现控制台坏的响应错误一Bad request控制台出现错误如下:Bad Requestrequest: http://hostIP:8983/solr/update?wt=javabin&version=1解决方法:出现以上错误的原因是,solr服务器上配置的Field和javabean提...
分类:
编程语言 时间:
2014-07-20 23:03:50
阅读次数:
391