-
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
-
boost2014a
说明: 可以实现储能的充放电控制,通过改变电压参考值可以控制蓄电池的充放电,加入滤波以后,波形不错(It can realize the charge and discharge control of energy storage. By changing the voltage reference value, the charge and discharge of the battery can be controlled. After adding the filter, the waveform is good.)
- 2019-01-05 16:47:48下载
- 积分:1
-
下垂控制
说明: 所谓下垂控制就是选择与传统发电机相似的频率一次下垂特性曲线(Droop Character)作为微源的控制方式,即分别通过P/f下垂控制和Q/V下垂控制来获取稳定的频率和电压,这种控制方法对微网中的微源输出的有功功率和无功功率分别进行控制,无需机组间的通信协调,实现了微源即插即用和对等控制的目标,保证了孤岛下微电网内电力平衡和频率的统一,具有简单可靠的特点(The so-called droop control is to select the Droop Character, which is similar to the traditional generator, as the control mode of micro-source. That is to say, the stable frequency and voltage are obtained by P/f droop control and Q/V droop control respectively. This control method controls the active power and reactive power of micro-source output in the micro-grid separately, without the need of communication coordination between the units. It realizes the goal of micro-source plug-and-play and peer-to-peer control, guarantees the unification of power balance and frequency in micro-grid under islands, and has the characteristics of simplicity and reliability.)
- 2019-01-26 21:07:14下载
- 积分:1
-
nPASEngine v2.82 vi销售版本
说明: 一款强大的反反调试工具成品,重建了调试体系,实现了隐藏断点等功能,可直接调试大多数软件(A powerful anti debugging tool finished product, rebuilt the debugging system, realized the function of hiding breakpoints, etc., can debug most software directly)
- 2020-06-15 22:51:15下载
- 积分:1
-
cpubbs_com_data_converte
利用LABVIEW把数字装换成ASCII值的一种算法(Use the digital outfit into LABVIEW ASCII value of an algorithm)
- 2012-03-02 14:39:11下载
- 积分:1
-
这是一个弹球的游戏,不过有些粗糙。基本功能还是可以的
这是一个弹球的游戏,不过有些粗糙。基本功能还是可以的-This is a pinball game, but some rough. Basic functions can still be the
- 2022-05-07 15:04:24下载
- 积分:1
-
ELM_code
对一个向量,XY都是它本身,做皮尔逊相关系数,得到一个对称矩阵且对角线为1(For a vector, XY is itself, making a Pearson correlation coefficient, and obtaining a symmetric matrix with a diagonal of 1.)
- 2018-05-21 12:41:38下载
- 积分:1
-
数字示波器DPO-4034操作规程
Dpo-4034 operating procedure for digital oscilloscope
- 2020-06-18 11:40:01下载
- 积分:1
-
该算法为变速积分PID控制
用MATlab开发,能够管直接运行
该算法为变速积分PID控制
用MATlab开发,能够管直接运行-The algorithm for variable-speed integral PID control Matlab development, be able to pipe directly run
- 2023-03-25 09:30:03下载
- 积分:1
-
LPC2387
microcontroller consists of an ARM7TDMI-S CPU
- 2019-02-05 23:04:12下载
- 积分:1