发表评论取消回复
相关阅读
相关 PAT(甲级)1081 Rational Sum (20point(s))
题目题目链接思路计算分数的加法;1、初始化时将ans 的分子设为0,分母设为1;2、计算过程中,分子,分母都可以为负;3、化简过程中注意三点:分母为负,分子分母都要变号;...
相关 PAT~乙级~1088 三人行 ~python
题目描述: 子曰:“三人行,必有我师焉。择其善者而从之,其不善者而改之。” 本题给定甲、乙、丙三个人的能力值关系为:甲的能力值确定是 2 位正整数;把甲的能力值的 2 个数
相关 Python 实现 PAT:A+B in Hogwarts (20)
[A+B in Hogwarts (20)][A_B in Hogwarts _20] 这题比较简单,P PYTHON 3.5 AB=input().s
相关 Python实现Pat 1050. String Subtraction (20)
[题目][Link 1] Given two strings S1 and S2, S = S1 - S2 is defined to be the remaining
相关 Python实现Pat 1035. Password (20)
[题目][Link 1] To prepare for PAT, the judge sometimes has to generate random passwords
相关 Python实现Pat 1027. Colors in Mars (20)
[题目][Link 1] People in Mars represent the colors in their computers in a similar way
相关 Python实现Pat 1088. Rational Arithmetic (20)
[题目][Link 1] For two rational numbers, your task is to implement the basic arithmetic
相关 1081. Rational Sum (20)
Given N rational numbers in the form "numerator/denominator", you are supposed to calcul
相关 1088. Rational Arithmetic (20)
For two rational numbers, your task is to implement the basic arithmetics, that is, to c
相关 (PAT 1088) Rational Arithmetic (分数运算模拟)
For two rational numbers, your task is to implement the basic arithmetics, that is, to c
还没有评论,来说两句吧...