-
PAT
Given N rational numbers in the form "numerator/denominator", you are supposed to calculate their sum.
输入描述:
Each input file contains one test case. Each case starts with a positive integer N (<=100), followed in the next line N rational numbers "a1/b1 a2/b2 ..." where all the numerators and denominators are in the range of "long int". If there is a negative number, then the sign must appear in front of the numerator.
输出描述:
For each test case, output the sum in the simplest form "integer numerator/denominator" where "integer" is the integer part of the sum, "numerator" < "denominator", and the numerator and the denominator have no common factor. You must output only the fractional part if the integer part is 0.(Input Description:
Each input file contains one test case. Each case starts with a positive integer N (<=100), followed in the next line N rational numbers "a1/b1 a2/b2 ..." where all the numerators and denominators are in the range of "long int". If there is a negative number, then the sign must appear in front of the numerator.
Output Description:
For each test case, output the sum in the simplest form "integer numerator/denominator" where "integer" is the integer part of the sum, "numerator" < "denominator", and the numerator and the denominator have no common factor. You must output only the fractional part if the integer part is 0.)
- 2019-03-02 14:33:27下载
- 积分:1
-
stm8s_dali_lib
dali灯光(一个时间灯光控制标准)协议通讯函数库(Dali light protocol communication function library)
- 2018-04-10 09:51:40下载
- 积分:1
-
SCE-UA算法代码
一种高效全局优化算法,广泛用于水文模型参数优选(A high efficient global optimization algorithm widely used for parameter optimization of hydrological model)
- 2018-01-08 20:30:35下载
- 积分:1
-
power_wind_dfig
说明: 超好用的双馈风机接入单机无穷大系统,超详细的风机模型,可用于分析风机并网特性,文件包含风机继电保护与控制模块(The super - used doubly fed fan is connected to the single machine infinite system. The ultra detailed fan model can be used to analyze the characteristics of the fan's grid connection. The file contains the fan relay protection and control module.)
- 2018-05-24 20:51:53下载
- 积分:1
-
PFA
PFA imaging processing in SAR signal processing
- 2021-01-18 21:48:42下载
- 积分:1
-
Tx
说明: PIC18F46K22 MASTER SAMPLE C CODE
- 2018-02-16 15:14:13下载
- 积分:1
-
DCT
说明: 针对.jpg文件的图片隐写算法实现,图片隐写jsteg算法,matlab实现。(Picture steganography)
- 2020-06-17 07:00:02下载
- 积分:1
-
msp430f149 spi fet140_spi0_01.s43
msp430f149 spi fet140_spi0_01.s43
- 2023-06-26 22:45:02下载
- 积分:1
-
伪随机码,运用语音发射,噪声为发射信号,音乐为噪声信号。...
伪随机码,运用语音发射,噪声为发射信号,音乐为噪声信号。-Pseudo-random code, the use of voice-launch, launch signal noise, music for the noise signal.
- 2023-07-26 00:25:02下载
- 积分:1
-
非等宽汉字点阵字库制作软件
非等宽汉字点阵字库制作软件-non-Chinese lattice-width font creation software.
- 2022-05-08 04:26:54下载
- 积分:1