上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 60 下一页
摘要: 链接: 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) 编辑
摘要: 链接: https://codeforces.com/contest/1182/problem/C 题意: You are given n words, each of which consists of lowercase alphabet letters. Each word contains 阅读全文
posted @ 2019-06-12 15:21 YDDDD 阅读(555) 评论(6) 推荐(0) 编辑
摘要: 链接: https://codeforces.com/contest/1182/problem/B 题意: You have a given picture with size w×h. Determine if the given picture has a single "+" shape or 阅读全文
posted @ 2019-06-12 15:17 YDDDD 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 链接: https://codeforces.com/contest/1182/problem/A 题意: You have a given integer n. Find the number of ways to fill all 3×n tiles with the shape describ 阅读全文
posted @ 2019-06-12 15:14 YDDDD 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 链接: https://codeforces.com/contest/1176/problem/C 题意: You are given an array a consisting of n integers. Each ai is one of the six following numbers: 阅读全文
posted @ 2019-06-10 16:56 YDDDD 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 链接: https://codeforces.com/contest/1176/problem/B 题意: You are given an array a consisting of n integers a1,a2,…,an. In one operation you can choose tw 阅读全文
posted @ 2019-06-10 16:54 YDDDD 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 链接: https://codeforces.com/contest/1176/problem/A 题意: You are given an integer n. You can perform any of the following operations with this number an 阅读全文
posted @ 2019-06-10 16:51 YDDDD 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 链接: https://ac.nowcoder.com/acm/contest/918/A 题意: 为了准备即将到来的蹄球锦标赛,Farmer John正在训练他的N头奶牛(方便起见,编号为1…N,其中1≤N≤100)进行传球。这些奶牛在牛棚一侧沿直线排列,第i号奶牛位于距离牛棚xi的地方(1≤xi 阅读全文
posted @ 2019-06-10 14:49 YDDDD 阅读(293) 评论(0) 推荐(0) 编辑
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 60 下一页