BISHOPS

Yesterday was Sam's birthday. The most interesting gift was definitely the chessboard. Sam quickly learned the rules of chess and defeated his father, all his friends »

NGM

Nikifor and Trofim play the following game: they write some integer smaller then 2000000000 and take turns one after another. Nikifor is the first to make »

GIRLSNBS

There are G girl students and B boy students in a class that is about to graduate. You need to arrange them in a single row »

AP2

Arithmatic and geometric Progressions are 2 of the well known progressions in maths. Arithmatic progression(AP) is a set in which the difference between 2 numbers »

PT07Y

You are given an unweighted, undirected graph. Write a program to check if it's a tree topology. Input The first line of the input file contains »

STPAR

For sure, the love mobiles will roll again on this summer's street parade. Each year, the organisers decide on a fixed order for the decorated trucks »

FENCE1

There is a wall in your backyard. It is so long that you can’t see its endpoints. You want to build a fence of length »

WILLITST

When Bob was in library in University of Warsaw he saw on one of facades caption :"Will it ever stop?" and below some mysterious code: while »

ARMY

The next MechaGodzilla invasion is on its way to Earth. And once again, Earth will be the battleground for an epic war. MechaGodzilla's army consists of »

STAMPS

Everybody hates Raymond. He’s the largest stamp collector on planet earth and because of that he always makes fun of all the others at the »