摘要:
1081 Rational Sum (20)(20 分) Given N rational numbers in the form "numerator/denominator", you are supposed to calculate their sum. Input Specificatio 阅读全文
摘要:
int gcd(int a, int b) { if (b == 0) return 0; else return gcd(b, a % b); } struct Fraction { int up, down; }; Fraction Reduction(Fraction result) { if (result.down r.down) { ... 阅读全文