随笔分类 -  codefores水题

摘要:Recently you have received two positive integer numbers xx and yy. You forgot them, but you remembered a shuffled list containing all ... 阅读全文
posted @ 2019-01-24 11:53 black_hole6 阅读(243) 评论(0) 推荐(0)
摘要:outputstandard outputYou are given two segments [l1;r1][l1;r1] and [l2;r2][l2;r2] on the xx-axis. It is guaranteed that l1#include#inc... 阅读全文
posted @ 2019-01-24 11:49 black_hole6 阅读(292) 评论(0) 推荐(0)
摘要:You are given a 4x4 grid. You play a game — there is a sequence of tiles, each of them is either 2x1 or 1x2. Your task is to consequen... 阅读全文
posted @ 2019-01-23 13:06 black_hole6 阅读(214) 评论(0) 推荐(0)
摘要:Two people are playing a game with a string ss, consisting of lowercase latin letters.On a player's turn, he should choose two consecu... 阅读全文
posted @ 2019-01-23 13:00 black_hole6 阅读(354) 评论(0) 推荐(0)
摘要:Given a string ss of length nn and integer kk (1≤k≤n1≤k≤n). The string ss has a level xx, if xx is largest non-negative integer, such ... 阅读全文
posted @ 2019-01-21 10:43 black_hole6 阅读(288) 评论(0) 推荐(0)
摘要:Salem gave you nn sticks with integer positive lengths a1,a2,…,ana1,a2,…,an.For every stick, you can change its length to any other po... 阅读全文
posted @ 2019-01-21 10:40 black_hole6 阅读(177) 评论(0) 推荐(0)
摘要:Dreamoon is standing at the position 0 on a number line. Drazil is sending a list of commands through Wi-Fi to Dreamoon's smartphone a... 阅读全文
posted @ 2019-01-19 17:02 black_hole6 阅读(331) 评论(0) 推荐(0)
摘要:Andrew often reads articles in his favorite magazine 2Char. The main feature of these articles is that each of them uses at most two d... 阅读全文
posted @ 2019-01-19 12:14 black_hole6 阅读(153) 评论(0) 推荐(0)
摘要:NN is an experienced internet user and that means he spends a lot of time on the social media. Once he found the following image on th... 阅读全文
posted @ 2019-01-14 23:11 black_hole6 阅读(187) 评论(0) 推荐(0)
摘要:Arkady coordinates rounds on some not really famous competitive programming platform. Each round features nn problems of distinct diff... 阅读全文
posted @ 2019-01-14 23:07 black_hole6 阅读(195) 评论(0) 推荐(0)
摘要:This morning, Roman woke up and opened the browser with nn opened tabs numbered from 11 to nn. There are two kinds of tabs: those with... 阅读全文
posted @ 2019-01-14 23:04 black_hole6 阅读(200) 评论(0) 推荐(0)
摘要:A positive integer xx is called a power of two if it can be represented as x=2yx=2y, where yy is a non-negative integer. So, the power... 阅读全文
posted @ 2018-12-28 16:31 black_hole6 阅读(366) 评论(0) 推荐(0)
摘要:The capital of Berland has n multifloor buildings. The architect who built up the capital was very creative, so all the houses were bu... 阅读全文
posted @ 2018-12-27 20:50 black_hole6 阅读(161) 评论(0) 推荐(0)
摘要:time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp loves ciphers. He has in... 阅读全文
posted @ 2018-12-24 09:34 black_hole6 阅读(288) 评论(0) 推荐(0)
摘要:Berland, 2016. The exchange rate of currency you all know against the burle has increased so much that to simplify the calculations, i... 阅读全文
posted @ 2018-12-22 00:15 black_hole6 阅读(234) 评论(0) 推荐(0)
摘要: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 wan... 阅读全文
posted @ 2018-12-21 23:05 black_hole6 阅读(194) 评论(0) 推荐(0)
摘要:Levko loves tables that consist of n rows and n columns very much. He especially loves beautiful tables. A table is beautiful to Levko... 阅读全文
posted @ 2018-12-21 17:52 black_hole6 阅读(238) 评论(0) 推荐(0)
摘要:"QAQ" is a word to denote an expression of crying. Imagine "Q" as eyes with tears and "A" as a mouth.Now Diamond has given Bort a stri... 阅读全文
posted @ 2018-12-21 17:25 black_hole6 阅读(455) 评论(0) 推荐(0)
摘要:Vova, the Ultimate Thule new shaman, wants to build a pipeline. As there are exactly n houses in Ultimate Thule, Vova wants the city t... 阅读全文
posted @ 2018-12-20 16:24 black_hole6 阅读(179) 评论(0) 推荐(0)
摘要:New Year is coming in Line World! In this world, there are n cells numbered by integers from 1 to n, as a 1 × n board. People live in ... 阅读全文
posted @ 2018-12-20 15:56 black_hole6 阅读(128) 评论(0) 推荐(0)