随笔分类 - codefores水题
摘要:Recently you have received two positive integer numbers xx and yy. You forgot them, but you remembered a shuffled list containing all ...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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 ...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:Arkady coordinates rounds on some not really famous competitive programming platform. Each round features nn problems of distinct diff...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:The capital of Berland has n multifloor buildings. The architect who built up the capital was very creative, so all the houses were bu...
阅读全文
摘要:time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp loves ciphers. He has in...
阅读全文
摘要:Berland, 2016. The exchange rate of currency you all know against the burle has increased so much that to simplify the calculations, 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 wan...
阅读全文
摘要:Levko loves tables that consist of n rows and n columns very much. He especially loves beautiful tables. A table is beautiful to Levko...
阅读全文
摘要:"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...
阅读全文
摘要: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...
阅读全文
摘要: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 ...
阅读全文

浙公网安备 33010602011771号