This post is all about the solution of the "C. Number Game" Educational Codeforces Round 138 (Rated for Div. 2) Problem Statement.

Codeforces logo

Codeforces



Problem Statement :

Alice and Bob are engaged in a match. They have had an n-dimensional array of positive integers named a.


Alice selects a numeric value k0 before beginning the match. The match has k phases, which are ranked from 1 to k. Alice must delete a component from of the array that is less or equitable to ki+1 during in the i-th phase. If the array is not vacant, Bob must then add ki+1 to any of the array's elements. It's worth noting that Alice's and Bob's moves both are part of a single game stage. Alice ends up losing if she fails to delete an element during a stage. If the k-th phase comes to an end with Alice still not having lost, she ends up winning.



Format of Input :

The contribution includes one line with a solitary numeric m (1m105), the highest allowable significance of y.

Format of the Output :

Publish one numeric value for every test case — the shortest possible time taken to kill all beasts.


Also Check this out:-

A. Cowardly Rooks Educational Codeforces Round 138 (Rated for Div. 2) Problem Solution Click Here
B. Death's Blessing Educational Codeforces Round 138 (Rated for Div. 2) Problem Solution Click Here

C. Number Game Educational Codeforces Round 138 (Rated for Div. 2) Problem Solution Click Here

D. Counting Arrays Educational Codeforces Round 138 (Rated for Div. 2) Problem Solution Click Here

Also Read :- Top Programming Languages of 2022 Click Here

Solution of the Problem: Click Here