首先想到的是,将这个数进行素因子分解,得到所有的因子,然后取最大的。
首先写一个判断一个数是否是素数的方法: #judge a number whether a prime def
judgePrime(self,number,pme): if number < 2: ...
分类:
编程语言 时间:
2014-05-01 09:05:26
阅读次数:
3333
Problem XHuge ModInput:standard
inputOutput:standard outputTime Limit:1 secondThe operator for exponentiation is
different from the addition, subtract...
分类:
其他好文 时间:
2014-05-01 09:03:35
阅读次数:
540
转载自:http://blog.sina.com.cn/s/blog_7776b9d3010144f9.html在UNIX
系统中,一个进程结束了,但是他的父进程没有等待(调用wait / waitpid)他, 那么他将变成一个僵尸进程.
但是如果该进程的父进程已经先结束了,那么该进程就不会变成僵尸...
分类:
系统相关 时间:
2014-05-01 09:02:18
阅读次数:
441
告诉你若干个( 2 #include 3 #include 4 #include 5
#include 6 #include 7 #include 8 #include 9 #include 10 using namespace std; 11
12 #define...
分类:
其他好文 时间:
2014-05-01 09:01:34
阅读次数:
360
用C#代码实现二进制与十进制的互相转换代码如下:123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676...
分类:
其他好文 时间:
2014-05-01 09:00:57
阅读次数:
323
判断valid,没有更好的方法,只能brute force。 1 class Solution { 2
public: 3 bool isValidSudoku(vector > &board) { 4 5 int n; 6 for (int...
分类:
其他好文 时间:
2014-05-01 08:54:28
阅读次数:
332
本题与POJ 1655的区别是要把所有重心的点按顺序输出出来。// poj3107
Godfather#include #include #define NDEBUG#define MAXN 50005using namespace
std;int N;int edgefw[MAXN*2], ...
分类:
其他好文 时间:
2014-05-01 08:53:09
阅读次数:
284
InterceptorManager PluginManageropenfire
插件的中servlet 在web-custom.xml 中的配置 url 一定要小写,访问时不区别大写小 否则404如: Sample1Servlet
com.myyule.openfire.plugin.S...
分类:
其他好文 时间:
2014-05-01 08:42:11
阅读次数:
305