INVCNT

Let A[0...n - 1] be an array of n distinct positive integers. If i < j and A[i] > A[j] then the pair »

OFFSIDE

Hemisphere Network is the largest television network in Tumbolia, a small country located east of South America (or south of East America). The most popular sport »

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 »