搜索资源列表
TK
- 旅行家问题 一个旅行家想驾驶汽车以最少的费yi 用从一个城市到另一个城市(假设出发时油箱是空的)。给定两个城市之间的距离为D1、汽车油箱的容量为C(以升为单位),每升汽油能行驶的距离为 D2,出发点每升汽油价格P和沿途油站数N(N可以为零),油站i离出发点距离Di,每升汽油价格Pi(i=1,2...N)。计算结果四舍五入至小数点后两位。 如果无法到达目的地,则输出“No Solution\"。-issue a travel home to travel home to drive a car w
Case.to.digital.converter
- 1,可转换万亿以内的人民币金额数字 2,可转换到小数点后2位,精确到分,后面直接舍去,没做四舍五入 3,本程序未作完整字符过滤,请勿尝试无关字符 4,输入的金额可以带逗号比如123,456,000 也可以不带逗号-1, can be converted trillion yuan less than the amount of number 2, can be converted to decimal 2, accurate to the point, followed by dir
math_source
- 用于四舍五入的数学函数集,如rint(x)-rounded to integral value function group, e.g. rint(x)
Fourtheunit
- 制作一个可供小学数学运算的程序。范围为0—100 整数加减乘除四则运算,如结果为小数四舍五入保留小数点后两位。 根据输入题数出题,题目应为随机,每次应不一样。 -Make a for primary school of mathematical. Range of 0 100 integerAdds, subtracts, divides the operation of the fourAs a result of decimals, keep two. after the dec
C-language-a-few-small-programs
- C语言的几个小程序,四舍五入的方式精确到小数点后第四位,把一张一元钞票,换成一分、二分和五分硬币,每种至少11枚,问有多少种方案?-C language, a few small programs:Rounded to the nearest way to fourth place, to a one dollar bill, replaced by a point, two points and five coins, each at least 11, and asked how many
c-language-exercises
- c语言练习题,包括素数、取数字、完数因子、数列的四舍五入、fibonaci累加数列、以及其它的一些源代码-c language exercises, including the prime number, take number, complete the number of factors, several series of rounded, fibonaci cumulative series, as well as some other source
include
- 补充函数double fun(double x[10]),该函数的功能是求长度为N的一维数组x中元素值的平均值,并对所得结果进行四舍五入(保留两位小数)。-Added function double fun (double x [10]), the demand function is the function of the length of one-dimensional array of N elements in the average value of x, and the resul
CALC.rar
- 数学表达式计算命令,By Lxl1638 使用方法: Calculator.EXE {代数表达式}#小数位数(默认6位最多16位) 支持的运算符号: 加"+"、减"-"、乘"*"、除"/"、幂"^"、或"|"、与"&"和括号解释 支持的数学常数: e 表示欧拉常数, pi 表示圆周率π 支持的数学函数: 共计32个
hdu-2048
- 神、上帝以及老天爷 输入数据的第一行是一个整数C,表示测试实例的个数,然后是C 行数据,每行包含一个整数n(1<n<=20),表示参加抽奖的人数。 Output 对于每个测试实例,请输出发生这种情况的百分比,每个实例的输出占一行, 结果保留两位小数(四舍五入),-God, God, and God The first line of input data is an integer C, which means that the number of test case
transporting
- 小明的飞机快要赶不上了! 幸好大厅的路上有一些传送带。每个传送带都有一定的速度,传送带之间没有重叠。 小明自己行走的速度为w,如果传送带的速度为v的话,在传送带上走的速度就是w+v。 但是小明还是很着急,所以他决定跑一段时间t。他跑的速度是r,那么如果传送带的速度为v的话,在传送带上跑的速度就是r+v。 对于时间t,他不一定要连续跑,可以走走再跑。也不一定非要跑够t。 问小明至少需要多少时间才能到达终点。 输入第一行为用例数T,1<=T<=40。 每
x
- ★问题描述: 给出平面上的N 个二维点,求出距离最小的2 个点对。本题中距离定义为他们的直 线距离。例如(0,0) (3,4)的距离为5. ★数据输入: 有多组数据,对于每组数据,第一行是一个数字N 表示点的个数。N=0 的时候说明 输入结束。之后N 行,每行有2 个浮点数x_i,y_i 表示第i 个点的坐标。(1<=N<=10000 0,0<=|x_i|,|y_i|<=10^9) ★结果输出: 输出一个浮点数,表示最近点对的距离除以2,保
PCM编码&解码
- 脉冲编码调制是数字通信的编码方式之一。主要过程是将话音、图像等模拟信号每隔一定时间进行取样,使其离散化,同时将抽样值按分层单位四舍五入取整量化,同时将抽样值按一组二进制码来表示抽样脉冲的幅值。(PCM pulse code modulation is one of the encoding methods of digital communication. The main process is to voice, image and other analog signal at a certa