C. Mind Control You and your n−1 friends have found an array of integers a1,a2,-,an. You have decided to share it in the following way: All n of you stand in a line in a particular order. Each minute, the person at the front of the line chooses eithe…
B. Array Sharpening time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output You're given an array a1,-,an of n non-negative integers. Let's call it sharpened if and only if there exists an integer 1≤k≤…