题解 CF1525A 【Potion-making溶液配制】
📝
内容提要
水题 题目要求: 配制一份浓度为 $x$% 的溶液,并且添加最少的溶剂与溶质。 显而易见,将 $\frac{x}{100}$ 化为最简后的分母就是答案。 code: #include <iostream>#include <algorithm>#include <cmath>using namespace std;/*int gcd(int a, int b) { if(b ==...
➡️