A.
Substring Search You are given n strings s1,s2,s3,…,sn and should process m queries. Each query is described by f... |
B.
Treasure There's a hidden treasure in a castle. There are n guards protecting the treasure. But the guards ar... |
C.
Pass the Parcel There are n people in a room. They want to play a game called “pass the parcel”. The people are numb... |
D.
Mathemagic You are given a sequence a of length n. For an arbitrary number x, f(x) can be defined as the number... |
E.
Yet Another Strong Problem You are given a string str consisting of characters 0 and/or 1 with an arbitrary integer n. Without ... |
F.
Broken Wall Alice has built a rectangular wall of N×M squares. The wall is made entirely of rectangular black an... |
G.
Good Array An integer array is a good array if we can make the whole array empty by applying the following oper... |
H.
MEXimum Let’s get straight to the point. You are given a tree. In the tree, each node u has a number au ass... |
I.
SUM Equals LCM Given N, print a sequence of N positive integers A1,A2,…,AN that satisfy the following conditions... |
J.
Average Query You are given an array s1,s2,…,sn of length n and an arbitrary integer x. For an array, c1,c2,…... |