-
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
-
国家集训队2000论文集_7820159
说明: National Training Team 2000 Proceedings
- 2020-06-23 02:40:01下载
- 积分:1
-
CTC 测试文件 standard_sim_tb
CTC 测试文件 standard_sim_tb-CTC test file standard_sim_tb
- 2022-02-25 17:01:31下载
- 积分:1
-
gui_dyn_14_3
动态电路分析,用户输入电阻、电容、电容初始电压。(Dynamic Circuits, user input resistance, capacitance, initial voltage of the capacitor.)
- 2016-10-11 11:07:37下载
- 积分:1
-
noma
说明: resource allocation 5g mmWave noma
- 2021-04-19 10:38:51下载
- 积分:1
-
一款好用的滤波器设计软件,好好用哈,希望有人喜欢
一款好用的滤波器设计软件,好好用哈,希望有人喜欢-A-to-use filter design software, make good use of Kazakhstan, I hope some people like
- 2022-03-05 03:57:52下载
- 积分:1
-
edit标签和右键菜单
edit标签和右键菜单
edit标签和右键菜单
edit标签和右键菜单
-edit labels and right-click menus and edit labels Right menu edit labels and right-click menus Edi t labeling and right-click menus and edit labels right edit menu and right-click menus labeling
- 2022-03-25 09:51:58下载
- 积分:1
-
resonance-demodulation
LabVIEW下自动实现共振解调,广泛应用于轴承信号故障诊断。(LabVIEW automatically achieve resonance demodulation, the signal is widely used in bearing fault diagnosis.)
- 2011-11-11 19:54:00下载
- 积分:1
-
Ionospheric error delay
根据卫星参数完成电离层误差延时和对流层误差延时模型的仿真,从而对码伪距测量数据进行校正,以提高卫星定位精度。(The ionospheric error delay and tropospheric error delay models are simulated according to satellite parameters, and the code pseudo-range measurement data are corrected to improve satellite positioning accuracy.)
- 2018-11-11 09:41:56下载
- 积分:1
-
caffe-windows
caffe架构相关资料 介绍在window环境下的相关开发(Caffe architecture related materials introduced in the window environment of the relevant development)
- 2020-06-20 03:40:01下载
- 积分:1