上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 57 下一页
摘要: 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 阅读全文
posted @ 2016-09-12 21:15 樱花落舞 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2016-09-12 20:49 樱花落舞 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2016-09-07 22:21 樱花落舞 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2016-09-04 21:37 樱花落舞 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2016-09-04 21:11 樱花落舞 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2016-09-04 21:01 樱花落舞 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2016-08-24 11:01 樱花落舞 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2016-08-24 10:53 樱花落舞 阅读(201) 评论(0) 推荐(0) 编辑
摘要: Description he only king stands on the standard chess board. You are given his position in format "cd", where c is the column from 'a' to 'h' and d is 阅读全文
posted @ 2016-08-24 10:23 樱花落舞 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Description Katya studies in a fifth grade. Recently her class studied right triangles and the Pythagorean theorem. It appeared, that there are triple 阅读全文
posted @ 2016-08-21 13:06 樱花落舞 阅读(230) 评论(0) 推荐(0) 编辑
上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 57 下一页