Codeforces - 1152C - Neko does Maths
地址https://codeforces.com/contest/1152/problem/C原文地址https://www.lucien.ink/archives/423/题意给你 $a$ 和 $b$ ,找到一个最小的 $k$ ,使得 $lcm(a + k, b + k)$ 最小。题解不妨设 $a > b$ ,则有:枚举 $a - b$ 的所有因子即可。代码https://paste...
地址https://codeforces.com/contest/1152/problem/C原文地址https://www.lucien.ink/archives/423/题意给你 $a$ 和 $b$ ,找到一个最小的 $k$ ,使得 $lcm(a + k, b + k)$ 最小。题解不妨设 $a > b$ ,则有:枚举 $a - b$ 的所有因子即可。代码https://paste...
题目链接http://poj.org/problem?id=2689题目DescriptionThe branch of mathematics called number theory is about properties of numbers. One of the areas that has captured the interest of number theoreticians...
题目链接http://codeforces.com/contest/987/problem/B题目Year 2118. Androids are in mass production for decades now, and they do all the work for humans. But androids have to go to school to be able to sol...
题解链接题目链接https://arc060.contest.atcoder.jp/tasks/arc060_b题目Problem StatementFor integers b(b≥2) and n(n≥1), let the function f(b,n) be defined as follows:$f(b,n)=n$, when $n<b$$f(b,n)=f(b, floor(...
题目链接:http://exam.upc.edu.cn/problem.php?id=5579题目:题目描述Snuke is having another barbeque party.This time, he will make one serving of Skewer Meal.He has a stock of N Skewer Meal Packs. The i-th Skewe...