随笔分类 - 模拟
摘要:Description Programmers' kids solve this riddle in 5-10 minutes. How fast can you do it? Programmers' kids solve this riddle in 5-10 minutes. How fast
阅读全文
摘要:A - Remaining Time Time limit : 2sec / Memory limit : 256MB Score : 100 points Problem Statement Dolphin loves programming contests. Today, he will ta
阅读全文
摘要:Description T is a complete binary tree consisting of n vertices. It means that exactly one vertex is a root, and each vertex is either a leaf (and do
阅读全文
摘要:Description n children are standing in a circle and playing the counting-out game. Children are numbered clockwise from 1 to n. In the beginning, the
阅读全文
摘要:Description There are n cities situated along the main road of Berland. Cities are represented by their coordinates — integer numbers a1, a2, ..., an.
阅读全文
摘要:Description One of Timofey's birthday presents is a colourbook in a shape of an infinite plane. On the plane n rectangles with sides parallel to coord
阅读全文
摘要:Description Each New Year Timofey and his friends cut down a tree of n vertices and bring it home. After that they paint all the n its vertices, so th
阅读全文
摘要:Description Young Timofey has a birthday today! He got kit of n cubes as a birthday present from his parents. Every cube has a number ai, which is wri
阅读全文
摘要:Description Comrade Dujikov is busy choosing artists for Timofey's birthday and is recieving calls from Taymyr from Ilia-alpinist. Ilia-alpinist calls
阅读全文
摘要:Description Recently Pashmak has been employed in a transportation company. The company has kbuses and has a contract with a school which has n studen
阅读全文
摘要:Description Pashmak decided to give Parmida a pair of flowers from the garden. There are n flowers in the garden and the i-th of them has a beauty num
阅读全文
摘要:In this problem you are to calculate the sum of all integers from 1 to n, but you should take all powers of two with minus in the sum. For example, fo
阅读全文
摘要:A. Uncowed Forces time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Uncowed Forces time
阅读全文
摘要:A. Divisibility time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Divisibility time limi
阅读全文