C. Modified GCD
time limit per test 2 seconds
memory limit per test 256 megabytes
题目连接: 传送门
Well, here is another math class task. In mathematics, GCD is the greatest co
这是一道数学挑战,任务是找到两个正整数a和b在给定范围low到high(包括两端)内的最大公约数(GCD)。如果范围内没有公共约数,输出-1。输入包含a、b以及n个查询,每个查询对应一个范围low和high,都在1到10^9之间。你需要对每个查询输出相应结果。
题目连接: 传送门
Well, here is another math class task. In mathematics, GCD is the greatest co
526

被折叠的 条评论
为什么被折叠?