2019年7月13日

摘要: 题目描述 对于给出的n个询问,每次求有多少个数对(x,y),满足a≤x≤b,c≤y≤d,且gcd(x,y) = k,gcd(x,y)函数为x和y的最大公约数。 输入输出格式 输入格式: 第一行一个整数n,接下来n行每行五个整数,分别表示a、b、c、d、k 输出格式: 共n行,每行一个整数表示满足要求 阅读全文
posted @ 2019-07-13 14:14 Lis~ 阅读(164) 评论(0) 推荐(0)
 
摘要: Stancu likes space travels but he is a poor software developer and will never be able to buy his own spacecraft. That is why he is preparing to steal 阅读全文
posted @ 2019-07-13 11:47 Lis~ 阅读(334) 评论(0) 推荐(0)