数学问题
math
Mongo_girl
哈哈哈哈哈哈哈哈
展开
-
HDU-2601-An easy problem
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2601An easy problemProblem DescriptionWhen Teddy was a child , he was always thinking about some simple math problems ,such as “What it’s 1原创 2017-07-29 21:24:13 · 243 阅读 · 0 评论 -
【算法笔记】— 数学问题之分数的四则运算
1.分数的表示struct Fraction{ int up;//分子 int down;//分母 };①分数的表示形式为假分数②如果分数为负数,则让分子为负数,分母为正数③如果分数恰为0,则让分子为0,分母为1④分数要求最简(即分子和分母没有除了1以外的公约数)2.分数的化简Fraction reduction(Fraction res){ if(res.do...原创 2019-02-01 15:02:28 · 682 阅读 · 0 评论 -
PAT (Advanced Level) Practice — 1088 Rational Arithmetic (20 分)
题目链接:https://pintia.cn/problem-sets/994805342720868352/problems/994805378443755520For two rational numbers, your task is to implement the basic arithmetics, that is, to calculate their sum, differen...原创 2019-02-01 17:20:49 · 183 阅读 · 0 评论