C# 2005


Views
357





C# 2005


Views
314



Challenges to currency stability

The rate at local currencies dimish in value as compared to foreign currencies is very alarming in most West African state. Currently in Ghana a dollar is Ghc4 which is likely not goin to be such at the of this 1st quarter of the year.



C# 2005


Views
888



Tower Breakers Again!

Two players (numbered and ) are playing a game of Tower Breakers! The rules of the game are as follows:
Player always moves first, and both players always move optimally.
Initially there are towers of of various heights.
The players move in alternating turns. In each turn, a player must choose a tower of height and break it down into towers of height such that and .
If the current player is unable to make any move, they lose the game.
Given the value of and the respective height values for all towers, can you determine who will win? If the first player wins, print ; otherwise, print .
Input Format
The first line contains an integer, , denoting the number of test cases.
Each of the subsequent lines defines a test case. Each test case is described over the following two lines:
An integer,N , denoting the number of towers.
N spaceseparated integers,h0,h1,... , where each describes the height of tower .



C# 2005


Views
456





C# 2005


Views
379





C# 2005


Views
652





C# 2005


Views
643





C# 2005


Views
561





C# 2005


Views
551





C# 2005


Views
490




