摘要:
Description Memory is now interested in the de-evolution of objects, specifically triangles. He starts with an equilateral triangle of side length x, 阅读全文
摘要:
Description Memory is performing a walk on the two-dimensional plane, starting at the origin. He is given a string s with his directions for motion: A 阅读全文
摘要:
Description There are n integers b1, b2, ..., bn written in a row. For all i from 1 to n, values ai are defined by the crows performing the following 阅读全文
摘要:
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 阅读全文
摘要:
Description Alex doesn't like boredom. That's why whenever he gets bored, he comes up with games. One long winter evening he came up with a game and d 阅读全文
摘要:
Description Fedya studies in a gymnasium. Fedya's maths hometask is to calculate the following expression: (1n + 2n + 3n + 4n) mod 5 for given value o 阅读全文
摘要:
Description One day Dima and Alex had an argument about the price and quality of laptops. Dima thinks that the more expensive a laptop is, the better 阅读全文
摘要:
Description Find an n × n matrix with different numbers from 1 to n2, so the sum in each row, column and both main diagonals are odd. Input The only l 阅读全文
摘要:
Description You are given n points on a line with their coordinates xi. Find the point x so the sum of distances to the given points is minimal. Descr 阅读全文