摘要: 链接: https://codeforces.com/contest/1230/problem/A 题意: Dawid has four bags of candies. The i th of them contains ai candies. Also, Dawid has two friend 阅读全文
posted @ 2019-10-03 21:17 YDDDD 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 链接: https://codeforces.com/contest/1228/problem/E 题意: You have n×n square grid and an integer k. Put an integer in each cell while satisfying the cond 阅读全文
posted @ 2019-10-03 19:40 YDDDD 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 链接: https://codeforces.com/contest/1228/problem/D 题意: You have a simple undirected graph consisting of n vertices and m edges. The graph doesn't conta 阅读全文
posted @ 2019-10-03 16:53 YDDDD 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 链接: https://codeforces.com/contest/1228/problem/C 题意: Let's introduce some definitions that will be needed later. Let prime(x) be the set of prime div 阅读全文
posted @ 2019-10-03 14:27 YDDDD 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 链接: https://codeforces.com/contest/1228/problem/B 题意: Suppose there is a h×w grid consisting of empty or full cells. Let's make some definitions: ri i 阅读全文
posted @ 2019-10-03 13:09 YDDDD 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 链接: https://codeforces.com/contest/1228/problem/A 题意: You have two integers l and r. Find an integer x which satisfies the conditions below: l≤x≤r. Al 阅读全文
posted @ 2019-10-03 12:37 YDDDD 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 链接: https://codeforces.com/contest/1234/problem/E 题意: Let's define pi(n) as the following permutation: [i,1,2,…,i−1,i+1,…,n]. This means that the i th 阅读全文
posted @ 2019-10-03 12:25 YDDDD 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 链接: https://codeforces.com/contest/1234/problem/D 题意: You are given a string s consisting of lowercase Latin letters and q queries for this string. Re 阅读全文
posted @ 2019-10-03 00:21 YDDDD 阅读(396) 评论(0) 推荐(0) 编辑