摘要: 链接: https://ac.nowcoder.com/acm/contest/924/H 题意: 农夫JOHN准备把他的 N(1 using namespace std; typedef long long LL; const int MAXN = 3e5 + 10; const int MOD 阅读全文
posted @ 2019-06-17 01:02 YDDDD 阅读(347) 评论(2) 推荐(0) 编辑
摘要: 链接: https://ac.nowcoder.com/acm/contest/924/G 题意: Farmer John has returned to the County Fair so he can attend the special events (concerts, rodeos, c 阅读全文
posted @ 2019-06-17 00:58 YDDDD 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 链接: https://ac.nowcoder.com/acm/contest/924/F 题意: Farmer John为了满足奶牛对美的享受而安装了人工湖。矩形的人工湖分成M行N列(1 using namespace std; typedef long long LL; const int MA 阅读全文
posted @ 2019-06-17 00:55 YDDDD 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 链接: https://ac.nowcoder.com/acm/contest/924/D 题意: 求在给定区间[start,end]内所有的亲和数对。 亲和数的定义:对于数对(A,B),如果A的除了自己外的所有约数的和等于B,并且B的所有除了自己外的所有约数的和等于A,那么就称(A,B)为一组亲和 阅读全文
posted @ 2019-06-17 00:53 YDDDD 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 链接: https://ac.nowcoder.com/acm/contest/924/C 题意: 农民 John 希望修复围绕农场的一小段围栏。他测量了一下,发现需要N (1 using namespace std; typedef long long LL; const int MAXN = 3 阅读全文
posted @ 2019-06-17 00:48 YDDDD 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 链接: https://ac.nowcoder.com/acm/contest/924/A 题意: Farmer John在网上买干草。他发现了一笔特殊的买卖。他每买一捆大小为A(1 using namespace std; const int maxn = 2e5 + 10; int a[maxn 阅读全文
posted @ 2019-06-17 00:45 YDDDD 阅读(171) 评论(0) 推荐(0) 编辑