- 博客(4)
- 收藏
- 关注

原创 Codeforces 1187D:Subarray Sorting
Subarray SortingYou are given an array a1,a2,…,an and an array b1,b2,…,bn.For one operation you can sort in non-decreasing order any subarray a[l…r] of the array aa.For example, if a=[4,2,2,1,3,1]...
2019-07-22 15:05:05
287
原创 Codeforces :1187C Vasya And Array
**Vasya And Array**Vasya has an array a1,a2,…,an.You don’t know this array, but he told you mm facts about this array. The ii-th fact is a triple of numbers titi, lili and riri (0≤ti≤1,1≤li<ri≤n)...
2019-07-13 10:40:33
327
原创 codeforces:1189Candies!
Candies!Consider a sequence of digits of length 2k2k [a1,a2,…,a2k]. We perform the following operation with it: replace pairs (a2i+1,a2i+2) with (a2i+1+a2i+2)mod10 for 0≤i<2k−1. For every ii where...
2019-07-11 10:36:11
361
原创 Count Pairs
Codeforces:1189B Count PairsYou are given a prime number p, n integers a1,a2,…,an, and an integer k.Find the number of pairs of indexes (i,j) (1≤i<j≤n) for which (ai+aj)(ai^ 2 + aj^ 2)≡k mod p.I...
2019-07-11 10:20:02
703
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人