138. Games of Chess time limit per test: 0.25 sec. memory limit per test: 4096 KB N friends gathered in order to play chess, according to the following rules. In the first game, two of the N friends will play. In the second game, the winner of the fi…
137. Funny Strings time limit per test: 0.25 sec. memory limit per test: 4096 KB Let's consider a string of non-negative integers, containing N elements. Suppose these elements are S1 S2 .. SN, in the order in which they are placed inside the string.…
147. Black-white king time limit per test: 0.25 sec.memory limit per test: 4096 KB input: standard inputoutput: standard output On the chessboard of size NxN leaves only three figures. They are black king, white king and black-white king. The black-w…
121. Bridges painting time limit per test: 0.25 sec. memory limit per test: 4096 KB New Berland consists of N (1£ N£ 100) islands, some of them are connected by bridges. There can be no more than one bridge between any pair of islands. Mr. President…
109. Magic of David Copperfield II time limit per test: 0.25 sec. memory limit per test: 4096 KB The well-known magician David Copperfield loves lo show the following trick: a square with N rows and N columns of different pictures appears on a TV scr…
183. Painting the balls time limit per test: 0.25 sec.memory limit per test: 4096 KB input: standard inputoutput: standard output Petya puts the N white balls in a line and now he wants to paint some of them in black, so that at least two black balls…
Tautology Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 9580 Accepted: 3640 Description WFF 'N PROOF is a logic game played with dice. Each die has six faces representing some subset of the possible symbols K, A, N, C, E, p, q, r, s,…