首先想到的是,将这个数进行素因子分解,得到所有的因子,然后取最大的。
首先写一个判断一个数是否是素数的方法: #judge a number whether a prime def
judgePrime(self,number,pme): if number < 2: ...
分类:
编程语言 时间:
2014-05-01 09:05:26
阅读次数:
3333
RAM:RamdomAccessMemory易挥发性随机存取存储器,高速存取,读写时间相等,且与地址无关,如计算机内存等。 ROM:Read Only
Memory只读存储器。 断电后信息不丢失,如计算机启动用的BIOS芯片。存取速度很低,(较RAM而言)且不能改写。由于不能改写信息,不能升级,.....
分类:
其他好文 时间:
2014-05-01 04:09:17
阅读次数:
320
ROMROM 是英文Read-Only
Memory的缩写,翻译成中文就是"只能读取的记忆",计算机术语叫"只读存储器"。这种存储器里的内容是人们在制作好它之后,用电子工艺预先写进去的。在这之后一般就不能修改它里面的内容了,而只能从中读取内容基本信息中文名称只读存储外文名称ROM英文全称Read-O...
分类:
其他好文 时间:
2014-05-01 04:04:06
阅读次数:
385
这个方法太厉害了
别人的记录一下#include#include#include#include#include#include#includeusing namespace
std;#define MAX_PRIME 31700#define PRIME_NUM 3500int Primes[ P...
分类:
其他好文 时间:
2014-05-01 03:48:49
阅读次数:
276
最近要做一个文件打开和保存的对话框,现将相关的代码记录如下,用以备忘!
所用控件:
2个静态标签(Static Text):用以显示功能标签;
2个文本框(Edit):用以显示打开的文件路径全名要保存的文件路径全名,设置其Read Only属性为true将文本框设置为不可编辑;
2个按钮(Button):用以浏览文件;
打开文件对话框
CFileDialog打开的对话框...
分类:
其他好文 时间:
2014-04-29 13:17:21
阅读次数:
301
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down or right at...
分类:
其他好文 时间:
2014-04-28 10:46:41
阅读次数:
311
paip.多维理念 输入法的外码输入理论跟文字输出类型精髓
通常,我们的输入法使用的外码是拼音,但是,这个的用户体验很差..
应该使用多个外码类型...
##按照词汇来源,有如下几个
固有词ati
来自english英文
other语言(西班牙语,阿拉伯语,粤语,汉语,日语,韩语etc)
##外码使用的文字 only 拉丁文..
##外码的拼写格式
...
分类:
其他好文 时间:
2014-04-28 10:17:42
阅读次数:
312
There is no involute formulation concerning factitiously activity of SKB Kontur in this problem. Moreover, there is no formulation at all.
Input
There is the only number N, 1 ≤ N ≤ 109.
O...
分类:
其他好文 时间:
2014-04-27 21:38:05
阅读次数:
544
RSA is one of the most powerful methods to encrypt data. The RSA algorithm is described as follow:
> choose two large prime integer p, q
> calculate n = p × q, calculate F(n) = (p - 1) × (q - 1)
...
分类:
其他好文 时间:
2014-04-27 21:37:59
阅读次数:
315