Problem Description
Agrael likes play a simple game with his friend Animal during the classes. In this Game there are n piles of stones numbered from 1 to n, the 1st pile has M1 stones, the 2nd pile has M2 stones, ... and the n-th pile contain Mn stones. A...
分类:
其他好文 时间:
2015-03-30 16:33:51
阅读次数:
141
第一步:安装将下载的程序解压至D:\maven新建环境变量M2_HOME=D:\maven将D:\maven\bin添加至Path在cmd中执行:mvn –v 在D:\learn_source\2015\j2EE\maven_2015\maven-ch01新建pom.xml 4....
分类:
其他好文 时间:
2015-03-30 11:09:36
阅读次数:
118
static void Main(string[] args) { while (true) { int m1 = 31; int m2 = 28; int m3 = 31; int m4 = 30; int m5 = 31; int m6 = 30; int m7 = 31; int m8 = 3...
分类:
其他好文 时间:
2015-03-27 22:11:15
阅读次数:
214
1.检查ReplicaSet的状态使用db.runCommand({"replSetGetStatus":1});或者rs.status();2.检查复制延迟时间source:m1.example.net:30001
syncedTo:TueOct02201211:33:40GMT-0400(EDT)
=7475secsago(2.08hrs)source:m2.example.net:30002
syncedTo:TueOct02201211:33:40GMT-0400(E..
分类:
数据库 时间:
2015-03-19 18:36:06
阅读次数:
168
#include using namespace std;void Chu(int a,int b,int m2,int min,int max,int i){ do b=rand(); while(bmax||b==0); if(m2==2&&a%b!=0) { do b=rand(); ...
分类:
其他好文 时间:
2015-03-19 18:10:40
阅读次数:
165
题目大意:
题目前边的描述是多余的。。。一个正整N除以M1余M1-a,除以M2余M2-a,除以M3余M3-a,
即除以Mi余Mi-a(a < Mi < 100),求满足条件的最小的数。
思路:
这是一道中国剩余定理的基础题。由题目得出N % Mi + a = Mi,即得:N + a = 0(mod Mi)。也
就是所有的Mi都能整除N+a。那么题目就变为了求N个Mi的最小公倍数,最后再减去a。...
分类:
其他好文 时间:
2015-03-19 16:30:05
阅读次数:
128
例一:匹配长度为1-15的域名#-*-encoding:utf-8-*-import reregex=re.compile('^www[.][a-z]{1,15}[.](com|org)')m1=re.match(regex, 'www.baidu.com')#m2=re.match(regex, ...
分类:
编程语言 时间:
2015-03-19 09:54:44
阅读次数:
135
如果我说的没错,你可能想看到的界面大致如下: 右边m2的红色标记一直是你的疑惑,你会有这样的疑问:怎么我的项目就没有这些操作呢? 那一定是你的项目不符合基本maven项目的规范。 按照如下的操作步骤创建项目即...
分类:
其他好文 时间:
2015-03-18 07:52:56
阅读次数:
312
export JAVA_HOME=/home/lhp/mysoft/jdk1.7.0_71
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export M2_HOME=/home/lhp/mysoft/apache-maven-3.2.5
export PATH=${J...
分类:
系统相关 时间:
2015-03-17 18:23:59
阅读次数:
223
#########################################网络架构#########################################(一)网络架构M1:192.168.1.138主服务器,存储块服务器,客户端M2:192.168.1.139日志服务器,备份主控服务器,存储块服务器(二)双机切换测试1停止M1上的mfsmaster[root@M1~]#/data/..
分类:
其他好文 时间:
2015-03-17 14:28:23
阅读次数:
176