Given any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p1^k1 * p2^k2 *…*pm^km. Input Specif...
分类:
其他好文 时间:
2015-02-21 11:59:24
阅读次数:
182
A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a re...
分类:
其他好文 时间:
2015-02-21 09:42:17
阅读次数:
195
For two rational numbers, your task is to implement the basic arithmetics, that is, to calculate their sum, difference, product and quotient. Input Sp...
分类:
其他好文 时间:
2015-02-20 20:51:10
阅读次数:
221
Given N rational numbers in the form "numerator/denominator", you are supposed to calculate their sum. Input Specification: Each input file contains o...
分类:
其他好文 时间:
2015-02-20 17:25:15
阅读次数:
194
经常使用虚拟现实仿真软件总汇(zz)http://hi.baidu.com/busycai/blog/item/fe57e41e5f25fa1c403417b2.html2007年09月07日 星期五 17:37视景驱动类: OpenGVS 4.5 Vega 3.7 Vega Prime 1...
分类:
其他好文 时间:
2015-02-20 15:14:57
阅读次数:
203
题目及代码
Problem Description
As we know, Big Number is always troublesome. But it's really important in our ACM. And today, your task is to write a program to calculate A mod B.
To make the problem ...
分类:
其他好文 时间:
2015-02-20 14:09:40
阅读次数:
345
#include
#include
#include
#include
#define maxn 25
#define inf 0x3f3f3f3f
using namespace std;
int n;
int a[maxn];
bool vis[maxn];
bool prime(int n){
for(int i=2;i*i<=n;i++){
if(n%i==0)re...
分类:
其他好文 时间:
2015-02-18 14:07:38
阅读次数:
160
DescriptionIfaanddare relatively prime positive integers, the arithmetic sequence beginning withaand increasing byd, i.e.,a,a+d,a+ 2d,a+ 3d,a+ 4d, ......
分类:
其他好文 时间:
2015-02-17 23:33:27
阅读次数:
134
How many prime numbersTime Limit: 3000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7017Accepted Submission(s): ...
分类:
其他好文 时间:
2015-02-17 17:36:16
阅读次数:
128