摘要:
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< 阅读全文
摘要:
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 阅读全文
摘要:
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. 阅读全文
摘要:
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 阅读全文
摘要:
DreamGrid has just found an integer sequence in his right pocket. As DreamGrid is bored, he decides to play with the sequence. He can perform the foll 阅读全文