You are given an array a of length n consisting of zeros. You perform n actions with this array: during the i-th action, the following sequence of operations ap...
Today is Ignatius’ birthday. He invites a lot of friends. Now it’s dinner time. Ignatius wants to know how many tables he needs at least. You have to notice tha...