文件名称:BigNum
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:18.27kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
大整数问题
设n是一个k(1≤k≤80)位的十进制正整数。
问题1:对于给定的任意整数n,编程计算满足p3+p2+3p≤n的位数为m的p的个数。
问题2:对于给定的任意整数n,编程求解满足p3+p2+3p≤n的p的最大值。
要求:
对于给定的每一个测试文件(形如:numberX_input.txt),分别生成一个结果文件(形如:numberX_out.txt)。比如,对于测试文件number1_input.txt,对应的结果文件为number1_out.txt。
参考数据:
(1) 若n=1908 ; p的最大值=12
(2) 若n= 2000000000000000000000000000002452458671514234457987956856;
p的最大值= 12599210498948731647-Big problem for integer n is a k (1 ≤ k ≤ 80) decimal places positive integer. Question 1: For a given arbitrary integer n, calculated to meet the p3+ P2+ 3p ≤ n the median number m of p. Question 2: For a given arbitrary integer n, Programming Solution to meet the p3+ P2+ 3p ≤ n the p maximum. Requirements: For a given test every file (such as shape: numberX_input.txt), respectively, the results generate a document (such as shape: numberX_out.txt). For example, the test file number1_input.txt, corresponding to the outcome document for the number1_out.txt. Reference: (1) if n = 1908 p maximum = 12 (2) If n = 2000000000000000000000000000002452458671514234457987956856 p maximum = 12599210498948731647
设n是一个k(1≤k≤80)位的十进制正整数。
问题1:对于给定的任意整数n,编程计算满足p3+p2+3p≤n的位数为m的p的个数。
问题2:对于给定的任意整数n,编程求解满足p3+p2+3p≤n的p的最大值。
要求:
对于给定的每一个测试文件(形如:numberX_input.txt),分别生成一个结果文件(形如:numberX_out.txt)。比如,对于测试文件number1_input.txt,对应的结果文件为number1_out.txt。
参考数据:
(1) 若n=1908 ; p的最大值=12
(2) 若n= 2000000000000000000000000000002452458671514234457987956856;
p的最大值= 12599210498948731647-Big problem for integer n is a k (1 ≤ k ≤ 80) decimal places positive integer. Question 1: For a given arbitrary integer n, calculated to meet the p3+ P2+ 3p ≤ n the median number m of p. Question 2: For a given arbitrary integer n, Programming Solution to meet the p3+ P2+ 3p ≤ n the p maximum. Requirements: For a given test every file (such as shape: numberX_input.txt), respectively, the results generate a document (such as shape: numberX_out.txt). For example, the test file number1_input.txt, corresponding to the outcome document for the number1_out.txt. Reference: (1) if n = 1908 p maximum = 12 (2) If n = 2000000000000000000000000000002452458671514234457987956856 p maximum = 12599210498948731647
相关搜索: bignum
(系统自动生成,下载前可以参看下载内容)
下载文件列表
zy_1_BigNum/BigNum.cpp
zy_1_BigNum/BigNum.h
zy_1_BigNum/BigNum_c.h
zy_1_BigNum/Big_zy.dsp
zy_1_BigNum/Big_zy.dsw
zy_1_BigNum/Big_zy.ncb
zy_1_BigNum/Big_zy.plg
zy_1_BigNum/cyio.h
zy_1_BigNum/numberX_ input.txt
zy_1_BigNum/numberX_out.txt
zy_1_BigNum/ZY2_Big_problem.cpp
zy_1_BigNum/Big_zy.opt
zy_1_BigNum/Debug
zy_1_BigNum
zy_1_BigNum/BigNum.h
zy_1_BigNum/BigNum_c.h
zy_1_BigNum/Big_zy.dsp
zy_1_BigNum/Big_zy.dsw
zy_1_BigNum/Big_zy.ncb
zy_1_BigNum/Big_zy.plg
zy_1_BigNum/cyio.h
zy_1_BigNum/numberX_ input.txt
zy_1_BigNum/numberX_out.txt
zy_1_BigNum/ZY2_Big_problem.cpp
zy_1_BigNum/Big_zy.opt
zy_1_BigNum/Debug
zy_1_BigNum
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.