随笔分类 -  Codeforces

摘要:Count Pairs You are given a prime number pp, nn integers a1,a2,…,ana1,a2,…,an, and an integer kk. Find the number of pairs of indexes (i,j)(i,j) (1≤i< 阅读全文
posted @ 2019-07-06 02:22 yzm10 阅读(492) 评论(0) 推荐(0)
摘要:You are given an array a1,a2,…,ana1,a2,…,an and an integer kk. You are asked to divide this array into kk non-empty consecutive subarrays. Every eleme 阅读全文
posted @ 2019-06-30 16:03 yzm10 阅读(454) 评论(0) 推荐(0)
摘要:You are given a function ff written in some basic language. The function accepts an integer value, which is immediately written into some variable xx. 阅读全文
posted @ 2019-06-30 15:13 yzm10 阅读(415) 评论(0) 推荐(0)
摘要:The only difference between the easy and the hard versions is constraints. A subsequence is a string that can be derived from another string by deleti 阅读全文
posted @ 2019-06-28 12:14 yzm10 阅读(752) 评论(0) 推荐(0)