gcd and lcm
文章平均质量分 64
最大公约数和最小公倍数
我爱卷粉
不会学到会。
展开
-
E - Cheap Kangaroo
Time limit 1000 ms Memory limit 262144 kB OS Windows There are N kangaroos going out to eat at an Indian restaurant. The ith kangaroo wants to eat exactly xi food. The kan...原创 2018-07-27 09:15:20 · 264 阅读 · 0 评论 -
D - GCD and LCM
Time limit 1000 ms Memory limit 131072 kB OS LinuxWrite a program which computes the greatest common divisor (GCD) and the least common multiple (LCM) of given a and b.InputInput c...原创 2018-07-25 10:24:01 · 249 阅读 · 0 评论 -
C - GCD LCM
The GCD of two positive integers is the largest integer that divides both the integers without anyremainder. The LCM of two positive integers is the smallest positive integer that is divisible by bot...原创 2018-07-25 10:05:00 · 328 阅读 · 0 评论