分数运算
小雪乃
这个作者很懒,什么都没留下…
展开
-
PAT 甲级 1081. Rational Sum (20)
Given N rational numbers in the form "numerator/denominator", you are supposed to calculate their sum. Input Specification: Each input file contains one test case. Each case starts with a positi原创 2017-10-05 16:42:06 · 180 阅读 · 0 评论 -
PAT 甲级 1088. Rational Arithmetic (20)
For two rational numbers, your task is to implement the basic arithmetics, that is, to calculate their sum, difference, product and quotient. Input Specification: Each input file contains one te原创 2017-10-05 20:19:48 · 275 阅读 · 0 评论