码迷,mamicode.com
首页 >  
搜索关键字:calculate prime s    ( 3428个结果
PAT1059. Prime Factors
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
PAT1015. Reversible Primes
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
PAT1088. Rational Arithmetic
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
PAT1081. Rational Sum
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)
经常使用虚拟现实仿真软件总汇(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
杭电ACM 三 大数取模
题目及代码 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
SGU 116 Index of super-prime 数论+完全背包+输出方案
第一次写背包问题的【输出方案】
分类:其他好文   时间:2015-02-19 22:59:54    阅读次数:374
HDU 1241 Prime Ring Problem
#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
poj 3006 Dirichlet's Theorem on Arithmetic Progressions
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
hdu 2138 How many prime numbers
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!