随笔分类 - 0J---Codeforces
摘要:A. Olympiad 题目链接:http://codeforces.com/problemset/problem/937/A time limit per test 1 second time limit per test memory limit per test 256 megabytes m
阅读全文
摘要:题目链接:http://codeforces.com/problemset/problem/124/A Petr stands in line of n people, but he doesn't know exactly which position he occupies. He can sa
阅读全文
摘要:题目链接:http://codeforces.com/problemset/problem/456/A One day Dima and Alex had an argument about the price and quality of laptops. Dima thinks that the
阅读全文
摘要:题目链接:http://codeforces.com/problemset/problem/237/A Valera runs a 24/7 fast food cafe. He magically learned that next day n people will visit his cafe
阅读全文
摘要:题目链接:http://codeforces.com/problemset/problem/841/B Leha somehow found an array consisting of n integers. Looking at it, he came up with a task. Two p
阅读全文
摘要:题目链接:http://codeforces.com/problemset/problem/841/A One day Kefa found n baloons. For convenience, we denote color of i-th baloon as si — lowercase le
阅读全文
摘要:Manao is trying to open a rather challenging lock. The lock has n buttons on it and to open it, you should press the buttons in a certain order to ope
阅读全文
摘要:You are a lover of bacteria. You want to raise some bacteria in a box. Initially, the box is empty. Each morning, you can put any number of bacteria i
阅读全文
摘要:Amr loves Geometry. One day he came up with a very interesting problem. Amr has a circle of radius r and center in point (x, y). He wants the circle c
阅读全文
摘要:Some natural number was written on the board. Its sum of digits was not less than k. But you were distracted a bit, and someone changed this number to
阅读全文
摘要:Two boys decided to compete in text typing on the site "Key races". During the competition, they have to type a text consisting of s characters. The f
阅读全文
摘要:Yaroslav has an array that consists of n integers. In one second Yaroslav can swap two neighboring array elements. Now Yaroslav is wondering if he can
阅读全文
摘要:Shaass has decided to hunt some birds. There are n horizontal electricity wires aligned parallel to each other. Wires are numbered 1 to nfrom top to b
阅读全文
摘要:In the city of Ultima Thule job applicants are often offered an IQ test. The test is as follows: the person gets a piece of squared paper with a 4 × 4
阅读全文
摘要:A few years ago, Hitagi encountered a giant crab, who stole the whole of her body weight. Ever since, she tried to avoid contact with others, for fear
阅读全文
摘要:Very soon there will be a parade of victory over alien invaders in Berland. Unfortunately, all soldiers died in the war and now the army consists of e
阅读全文
摘要:Bear Limak wants to become the largest of bears, or at least to become larger than his brother Bob. Right now, Limak and Bob weigh a and b respectivel
阅读全文
摘要:Emuskald needs a fence around his farm, but he is too lazy to build it himself. So he purchased a fence-building robot. He wants the fence to be a reg
阅读全文
摘要:Two players play a simple game. Each player is provided with a box with balls. First player's box contains exactly n1 balls and second player's box co
阅读全文
摘要:Ted has a pineapple. This pineapple is able to bark like a bulldog! At time t (in seconds) it barks for the first time. Then every s seconds after it,
阅读全文