C. Game with Stones time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output scroll down for answer Bob decided to take a break from calculus homework and designed a game for himself. The game is played on a sequence of piles of stones, which can be described with a sequence of integers s1,…,sk , where…
Read moreB. Reverse Sort time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Ashish has a binary string s of length n that he wants to sort in non-decreasing order. He can perform the following operation: Choose a subsequence of any length such that its elements are in non-increasing order. Formally, …
Read moreB. Odd Grasshopper time limit per test 1 second m emory limit per test 256 megabytes input s tandard input output standard output The grasshopper is located on the numeric axis at the point with coordinate x0 . Having nothing else to do he starts jumping between integer points on the axis. Making a jump from a point with coordinate x with a dist…
Read more
© 2020 PICKNEWONE.XYZ All Right Reseved
follow us on