![](https://img-blog.csdnimg.cn/20191011133947800.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
codeforces
0k-ok
这个作者很懒,什么都没留下…
展开
-
cf----2019-11-26(Santa Claus and Candies,Timofey and rectangles,Travel Card)
如果可以,可以陪你千年不老,千年只想眷顾你倾城一笑;如果愿意,愿意陪你永世不离,永世只愿留恋你青丝白衣。A new innovative ticketing systems for public transport is introduced in Bytesburg. Now there is a single travel card for all transport. To ma...原创 2019-11-26 12:13:01 · 147 阅读 · 0 评论 -
cf----2019-11-25(USB vs. PS/2,Artsem and Saunders,Code obfuscation)
如果可以,可以陪你千年不老,千年只想眷顾你倾城一笑;如果愿意,愿意陪你永世不离,永世只愿留恋你青丝白衣。Due to the increase in the number of students of Berland State University it was decided to equip a new computer room. You were given the task of...原创 2019-11-25 13:17:42 · 212 阅读 · 0 评论 -
cf----2019-11-24(Mahmoud and a Message, Cartons of milk,The Queue)
如果可以,可以陪你千年不老,千年只想眷顾你倾城一笑;如果愿意,愿意陪你永世不离,永世只愿留恋你青丝白衣。Mahmoud wrote a messagesof lengthn. He wants to send it as a birthday present to his friend Moaz who likes strings. He wrote it on a magical p...原创 2019-11-24 11:17:47 · 165 阅读 · 0 评论 -
cf----2019-11-23(Yet Another Division Into Teams,The Contest,Equalizing Two Strings)
如果可以,可以陪你千年不老,千年只想眷顾你倾城一笑;如果愿意,愿意陪你永世不离,永世只愿留恋你青丝白衣。There arennstudents at your university. The programming skill of theii-th student isaiai. As a coach, you want to divide them into teams to p...原创 2019-11-23 10:53:50 · 140 阅读 · 0 评论 -
cf----2019-11-22(Jon and Orbs,Year of University Entrance,Game of Stones)
思绪不断阻挡着回忆播放,盲目的追寻仍然空空荡荡,灰蒙蒙的夜晚睡意又不知躲到哪去,一转身孤单已躺在身旁。Jon Snow is on the lookout for some orbs required to defeat the white walkers. There arekdifferent types of orbs and he needs at least one of ...原创 2019-11-22 14:53:25 · 517 阅读 · 0 评论 -
cf----2019-11-21(Success Rate,Maximize Sum of Digits,Voltage Keepsake)
思绪不断阻挡着回忆播放,盲目的追寻仍然空空荡荡,灰蒙蒙的夜晚睡意又不知躲到哪去,一转身孤单已躺在身旁。You are an experienced Codeforces user. Today you found out that during your activity on Codeforces you have madeysubmissions, out of whichx...原创 2019-11-21 13:04:43 · 172 阅读 · 0 评论 -
cf----2019-11-20( Anastasia and pebbles,Mice problem,Oleg and shares)
思绪不断阻挡着回忆播放,盲目的追寻仍然空空荡荡,灰蒙蒙的夜晚睡意又不知躲到哪去,一转身孤单已躺在身旁。Anastasia loves going for a walk in Central Uzhlyandian Park. But she became uninterested in simple walking, so she began to collect Uzhlyandian p...原创 2019-11-20 13:41:01 · 199 阅读 · 0 评论 -
cf----2019-11-19(Mike and strings,Marmots (easy),Heidi and Library (easy))
思绪不断阻挡着回忆播放,盲目的追寻仍然空空荡荡,灰蒙蒙的夜晚睡意又不知躲到哪去,一转身孤单已躺在身旁。Mike hasnstringss1, s2, ..., sneach consisting of lowercase English letters. In one move he can choose a stringsi, erase the first charact...原创 2019-11-19 13:03:55 · 220 阅读 · 0 评论 -
cf----2019-11-18(A. Maximal Binary Matrix,D. Magazine Ad,B. Distances to Zero)
思绪不断阻挡着回忆播放,盲目的追寻仍然空空荡荡,灰蒙蒙的夜晚睡意又不知躲到哪去,一转身孤单已躺在身旁。You are given matrix withnrows andncolumns filled with zeroes. You should putkones in it in such a way that the resulting matrix is symmetri...原创 2019-11-18 13:15:37 · 93 阅读 · 0 评论 -
cf----2019-11-17(Roma and Poker,Glad to see you!,T-Shirt Hunt)
思绪不断阻挡着回忆播放,盲目的追寻仍然空空荡荡,灰蒙蒙的夜晚睡意又不知躲到哪去,一转身孤单已躺在身旁。Each evening Roma plays online poker on his favourite website. The rules of poker on this website are a bit strange: there are always two players ...原创 2019-11-17 09:40:48 · 216 阅读 · 0 评论 -
cf----2019-11-16(Sagheer and Nubian Market,Karen and Game,Mister B and PR Shifts)
思绪不断阻挡着回忆播放,盲目的追寻仍然空空荡荡,灰蒙蒙的夜晚睡意又不知躲到哪去,一转身孤单已躺在身旁。On his trip to Luxor and Aswan, Sagheer went to a Nubian market to buy some souvenirs for his friends and relatives. The market has some str...原创 2019-11-16 10:10:17 · 188 阅读 · 0 评论 -
cf----2019-11-15(Matching vs Independent Set,Okabe and Banana Trees,Array Splitting)
思绪不断阻挡着回忆播放,盲目的追寻仍然空空荡荡,灰蒙蒙的夜晚睡意又不知躲到哪去,一转身孤单已躺在身旁。You are given a graph with3⋅n3⋅nvertices andmmedges. You are to find a matching ofnnedges,oran independent set ofnnvertices.A set of e...原创 2019-11-15 13:52:23 · 193 阅读 · 0 评论 -
cf----2019-11-14(Multi-judge Solving,Suitable Replacement,Restaurant Tables)
世上只有一种英雄主义,就是在认清生活真相之后依然热爱生活。Makes solves problems on Decoforces and lots of other different online judges. Each problem is denoted by its difficulty — a positive integer number. Difficulties are m...原创 2019-11-14 21:59:53 · 196 阅读 · 0 评论 -
cf----2019-11-13(Summer sell-off,The Golden Age,The Contest)
世上只有一种英雄主义,就是在认清生活真相之后依然热爱生活。Summer holidays! Someone is going on trips, someone is visiting grandparents, but someone is trying to get a part-time job. This summer Noora decided that she wants ...原创 2019-11-13 15:13:28 · 202 阅读 · 0 评论 -
cf----2019-11-12( Cards Sorting,The Meaningless Game,Jury Marks)
世上只有一种英雄主义,就是在认清生活真相之后依然热爱生活。Vasily has a deck of cards consisting ofncards. There is an integer on each of the cards, this integer is between1and100 000, inclusive. It is possible that som...原创 2019-11-12 13:51:56 · 194 阅读 · 0 评论 -
cf----2019-11-11(Sum of Nestings,Union of Doubly Linked Lists,University Classes)
世上只有一种英雄主义,就是在认清生活真相之后依然热爱生活。Recall that the bracket sequence is considered regular if it is possible to insert symbols '+' and '1' into it so that the result is a correct arithmetic expression....原创 2019-11-11 14:09:02 · 171 阅读 · 0 评论 -
cf----2019-11-10( Interactive LowerBound,Table Decorations,Chess Tourney)
世上只有一种英雄主义,就是在认清生活真相之后依然热爱生活。mt19937是什么鬼?This is an interactive problem.You are given asortedin increasing order singly linked list. You should find the minimum integer in the list which is g...原创 2019-11-10 10:08:33 · 260 阅读 · 0 评论 -
cf----2019-11-09(Travel Cards,Noise Level,Packmen)
世上只有一种英雄主义,就是在认清生活真相之后依然热爱生活。In the evening Polycarp decided to analyze his today's travel expenses on public transport.The bus system in the capital of Berland is arranged in such a way that ...原创 2019-11-09 10:10:23 · 221 阅读 · 0 评论 -
cf----2019-11-08(Round Subset,Flag of Berland,Palindromic characteristics)
世上只有一种英雄主义,就是在认清生活真相之后依然热爱生活。Let's call theroundnessof the number the number of zeros to which it ends.You have an array ofnnumbers. You need to choose a subset of exactlyknumbers so that th...原创 2019-11-08 13:28:44 · 169 阅读 · 0 评论 -
cf----2019-11-07(B. Which floor?,B. Arpa and an exam about geometry,G. Bathroom terminal)
世上只有一种英雄主义,就是在认清生活真相之后依然热爱生活。n a building where Polycarp lives there areequalnumber of flats on each floor. Unfortunately, Polycarp don't remember how many flats are on each floor, but he reme...原创 2019-11-07 13:12:04 · 220 阅读 · 0 评论 -
cf----2019-11-06(Quadcopter Competition, Almost Identity Permutations,Lost in Transliteration)
世上只有一种英雄主义,就是在认清生活真相之后依然热爱生活。Polycarp takes part in a quadcopter competition. According to the rules a flying robot should:start the race from some point of a field, go around the flag, close c...原创 2019-11-06 13:52:18 · 201 阅读 · 0 评论 -
cf----2019-11-05(Wrath,XK Segments, Square Subsets)
世上只有一种英雄主义,就是在认清生活真相之后依然热爱生活。Hands that shed innocent blood!There arenguilty people in a line, thei-th of them holds a claw with lengthLi. The bell rings and every person kills some of peo...原创 2019-11-05 13:47:04 · 154 阅读 · 0 评论 -
cf----2019-11-04(Travelling Salesman ,Jamie and Binary Sequence ,Almost Acyclic Graph)
世上只有一种英雄主义,就是在认清生活真相之后依然热爱生活。The Travelling Salesman spends a lot of time travelling so he tends to get bored. To pass time, he likes to perform operations on numbers. One such operation is to take...原创 2019-11-03 21:27:25 · 182 阅读 · 0 评论 -
cf----2019-08-24(Prefixes and Suffixes,Great Vova Wall (Version 1), Mishka and the Last Exam)
妙笔难书一纸愁肠,苍白的誓言,终究抵不过岁月的遗忘。Ivan wants to play a game with you. He picked some stringssof lengthnnconsisting only of lowercase Latin letters.You don't know this string. Ivan has informed you abo...原创 2019-08-24 10:07:03 · 170 阅读 · 0 评论 -
cf----2019-11-03(Bash and a Tough Math Puzzle,The Monster,Browser)
世上只有一种英雄主义,就是在认清生活真相之后依然热爱生活。Bash likes playing with arrays. He has an arraya1, a2, ...anofnintegers. He likes to guess the greatest common divisor (gcd) of different segments of the array....原创 2019-11-03 09:39:59 · 203 阅读 · 0 评论 -
cf----2019-11-02(Alarm Clock,Almost Difference,Shockers)
世上只有一种英雄主义,就是在认清生活真相之后依然热爱生活。Every evening Vitalya setsnalarm clocks to wake up tomorrow. Every alarm clock rings during exactly one minute and is characterized by one integerai— number of minu...原创 2019-11-02 11:00:19 · 182 阅读 · 0 评论 -
cf----2019-11-01(Water The Garden,Water The Garden,Tea Queue)
世上只有一种英雄主义,就是在认清生活真相之后依然热爱生活。It is winter now, and Max decided it's about time he watered the garden.The garden can be represented asnconsecutive garden beds, numbered from1ton.kbeds conta...原创 2019-11-01 15:08:56 · 281 阅读 · 0 评论 -
cf----2019-10-31(A Twisty Movement,Fifa and Fafa,A Determined Cleanup)
世上只有一种英雄主义,就是在认清生活真相之后依然热爱生活。A dragon symbolizes wisdom, power and wealth. On Lunar New Year's Day, people model a dragon with bamboo strips and clothes, raise them with rods, and hold the rods ...原创 2019-10-31 13:30:49 · 218 阅读 · 0 评论 -
cf----2019-10-30( Matrix Walk,Timetable,Hyperspace Jump (easy))
世上只有一种英雄主义,就是在认清生活真相之后依然热爱生活。There is a matrixAof sizex × yfilled with integers. For every,Ai, j = y(i - 1) + j. Obviously, every integer from[1..xy]occurs exactly once in this matrix....原创 2019-10-30 14:57:23 · 219 阅读 · 0 评论 -
cf----2019-10-29(Points on the line,String Transformation, Our Tanya is Crying Out Loud)
世上只有一种英雄主义,就是在认清生活真相之后依然热爱生活。We've got no test cases. A big olympiad is coming up. But the problemsetters' number one priority should be adding another problem to the round.Thediameterof a m...原创 2019-10-29 12:50:21 · 145 阅读 · 0 评论 -
cf----2019-10-28(Sad powers,Zebras,Not simply beatiful strings)
世上只有一种英雄主义,就是在认清生活真相之后依然热爱生活。You're givenQqueries of the form(L, R).For each query you have to find the number of suchxthatL ≤ x ≤ Rand there exist integer numbersa > 0,p > 1such ...原创 2019-10-28 16:16:50 · 169 阅读 · 0 评论 -
cf----2019-10-27(Bookshelves,Check the string, XOR-pyramid)
世上只有一种英雄主义,就是在认清生活真相之后依然热爱生活。Mr Keks is a typical white-collar in Byteland.He has a bookshelf in his office with some books on it, each book has an integer positive price.Mr Keks defines the va...原创 2019-10-27 19:00:46 · 174 阅读 · 0 评论 -
cf----2019-10-25(Special Permutations,Kill 'Em All,Standard Free2play)
一场游戏一场空,最终最初都由我掌控,好像一身从容,不曾有狼狈伤痛,可深夜一个人该如何相拥?Let's definepi(n)pi(n)as the following permutation:[i,1,2,…,i−1,i+1,…,n][i,1,2,…,i−1,i+1,…,n]. This means that theii-th permutation isalmost id...原创 2019-10-25 12:32:31 · 1385 阅读 · 0 评论 -
cf----2019-10-24(Tritonic Iridescence,Encryption (easy),Maximum Control (easy))
一场游戏一场空,最终最初都由我掌控,好像一身从容,不曾有狼狈伤痛,可深夜一个人该如何相拥?Overlooking the captivating blend of myriads of vernal hues, Arkady the painter lays out a long, long canvas.Arkady has a sufficiently large amoun...原创 2019-10-24 12:58:21 · 182 阅读 · 0 评论 -
cf----2019-10-23( Posterized,Pair Of Lines,Greedy Arkady)
一场游戏一场空,最终最初都由我掌控,好像一身从容,不曾有狼狈伤痛,可深夜一个人该如何相拥?Professor Ibrahim has prepared the final homework for his algorithm’s class. He asked his students to implement the Posterization Image Filter.Their ...原创 2019-10-23 19:21:22 · 212 阅读 · 0 评论 -
cf----2019-10-22( Vasya And Array,Rectangle Painting 1,Yet Another Subarray Problem)
一场游戏一场空,最终最初都由我掌控,好像一身从容,不曾有狼狈伤痛,可深夜一个人该如何相拥?Vasya has an arraya1,a2,…,ana1,a2,…,an.You don't know this array, but he told yoummfacts about this array. Theii-th fact is a triple of numberst...原创 2019-10-22 13:47:00 · 213 阅读 · 0 评论 -
cf----2019-10-21(Alternating Sum,Mind the Gap,Battleship)
一场游戏一场空,最终最初都由我掌控,好像一身从容,不曾有狼狈伤痛,可深夜一个人该如何相拥?You are given two integersaaandbb. Moreover, you are given a sequences0,s1,…,sns0,s1,…,sn. All values inssare integers11or−1−1. It's known tha...原创 2019-10-21 08:37:32 · 215 阅读 · 0 评论 -
cf----2019-10-20(Consecutive Subsequence,Almost Arithmetic Progression,Mentors)
一场游戏一场空,最终最初都由我掌控,好像一身从容,不曾有狼狈伤痛,可深夜一个人该如何相拥?You are given an integer array of lengthnn.You have to choose some subsequence of this array of maximum length such that this subsequence forms a...原创 2019-10-20 11:31:21 · 190 阅读 · 0 评论 -
cf----2019-10-19(Ghosts, Watering System, Messages)
一场游戏一场空,最终最初都由我掌控,好像一身从容,不曾有狼狈伤痛,可深夜一个人该如何相拥?Ghosts live in harmony and peace, they travel the space without any purpose other than scare whoever stands in their way.There arennghosts in the u...原创 2019-10-19 13:41:47 · 183 阅读 · 0 评论 -
cf----2019-10-18(Petr and Permutations,Points and Powers of Two,Liebig's Barrels)
一场游戏一场空,最终最初都由我掌控,好像一身从容,不曾有狼狈伤痛,可深夜一个人该如何相拥?Petr likes to come up with problems about randomly generated data. This time problem is about random permutation. He decided to generate a random pe...原创 2019-10-18 14:46:14 · 200 阅读 · 0 评论