02 2020 档案

摘要:Constanze is the smartest girl in her village but she has bad eyesight. One day, she was able to invent an incredible machine! When you pronounce lett 阅读全文
posted @ 2020-02-29 18:00 DeaL57 阅读(260) 评论(0) 推荐(0)
摘要:Little penguin Polo has an n × m matrix, consisting of integers. Let's index the matrix rows from 1 to n from top to bottom and let's index the column 阅读全文
posted @ 2020-02-29 11:03 DeaL57 阅读(189) 评论(0) 推荐(0)
摘要:You have a garland consisting of nn lamps. Each lamp is colored red, green or blue. The color of the ii-th lamp is sisi ('R', 'G' and 'B' — colors of 阅读全文
posted @ 2020-02-29 10:10 DeaL57 阅读(124) 评论(0) 推荐(0)
摘要:Finally, a basketball court has been opened in SIS, so Demid has decided to hold a basketball exercise session. 2⋅n2⋅n students have come to Demid's e 阅读全文
posted @ 2020-02-29 09:51 DeaL57 阅读(223) 评论(0) 推荐(0)
摘要:A number is called quasibinary if its decimal representation contains only digits 0 or 1. For example, numbers 0, 1, 101, 110011 — are quasibinary and 阅读全文
posted @ 2020-02-29 09:07 DeaL57 阅读(205) 评论(0) 推荐(0)
摘要:Vasya has n days of vacations! So he decided to improve his IT skills and do sport. Vasya knows the following information about each of this n days: w 阅读全文
posted @ 2020-02-29 01:11 DeaL57 阅读(248) 评论(0) 推荐(0)
摘要:You have a positive integer m and a non-negative integer s. Your task is to find the smallest and the largest of the numbers that have length m and su 阅读全文
posted @ 2020-02-28 22:43 DeaL57 阅读(190) 评论(0) 推荐(0)
摘要:NEKO#ΦωΦ has just got a new maze game on her PC! The game's main puzzle is a maze, in the forms of a 2×n2×n rectangle grid. NEKO's task is to lead a N 阅读全文
posted @ 2020-02-27 22:10 DeaL57 阅读(200) 评论(0) 推荐(0)
摘要:Bajtek is learning to skate on ice. He's a beginner, so his only mode of transportation is pushing off from a snow drift to the north, east, south or 阅读全文
posted @ 2020-02-27 19:18 DeaL57 阅读(291) 评论(0) 推荐(0)
摘要:Alice's hair is growing by leaps and bounds. Maybe the cause of it is the excess of vitamins, or maybe it is some black magic... To prevent this, Alic 阅读全文
posted @ 2020-02-27 17:42 DeaL57 阅读(205) 评论(0) 推荐(0)
摘要:PolandBall lives in a forest with his family. There are some trees in the forest. Trees are undirected acyclic graphs with k vertices and k - 1 edges, 阅读全文
posted @ 2020-02-26 23:49 DeaL57 阅读(192) 评论(0) 推荐(0)
摘要:Mahmoud wants to send a message to his friend Ehab. Their language consists of n words numbered from 1 to n. Some words have the same meaning so there 阅读全文
posted @ 2020-02-26 21:09 DeaL57 阅读(153) 评论(0) 推荐(0)
摘要:Scientists say a lot about the problems of global warming and cooling of the Earth. Indeed, such natural phenomena strongly influence all life on our 阅读全文
posted @ 2020-02-25 12:06 DeaL57 阅读(167) 评论(0) 推荐(0)
摘要:A well-known art union called "Kalevich is Alive!" manufactures objects d'art (pictures). The union consists of n painters who decided to organize the 阅读全文
posted @ 2020-02-23 18:17 DeaL57 阅读(191) 评论(0) 推荐(0)
摘要:Long story short, shashlik is Miroslav's favorite food. Shashlik is prepared on several skewers simultaneously. There are two states for each skewer: 阅读全文
posted @ 2020-02-23 17:23 DeaL57 阅读(142) 评论(0) 推荐(0)
摘要:Max wants to buy a new skateboard. He has calculated the amount of money that is needed to buy a new skateboard. He left a calculator on the floor and 阅读全文
posted @ 2020-02-23 16:37 DeaL57 阅读(191) 评论(0) 推荐(0)
摘要:Mike has n strings s1, s2, ..., sn each consisting of lowercase English letters. In one move he can choose a string si, erase the first character and 阅读全文
posted @ 2020-02-23 15:52 DeaL57 阅读(200) 评论(0) 推荐(0)
摘要:You are given a non-empty string s=s1s2…sns=s1s2…sn, which consists only of lowercase Latin letters. Polycarp does not like a string if it contains at 阅读全文
posted @ 2020-02-22 23:54 DeaL57 阅读(173) 评论(0) 推荐(0)
摘要:After the fourth season Sherlock and Moriary have realized the whole foolishness of the battle between them and decided to continue their competitions 阅读全文
posted @ 2020-02-22 17:51 DeaL57 阅读(202) 评论(0) 推荐(0)
摘要:Recall that string aa is a subsequence of a string bb if aa can be obtained from bb by deletion of several (possibly zero or all) characters. For exam 阅读全文
posted @ 2020-02-22 16:28 DeaL57 阅读(475) 评论(0) 推荐(0)
摘要:You are given an array aa consisting of nn integers. Each aiai is one of the six following numbers: 4,8,15,16,23,424,8,15,16,23,42. Your task is to re 阅读全文
posted @ 2020-02-21 18:39 DeaL57 阅读(195) 评论(0) 推荐(0)
摘要:You are given two binary strings aa and bb of the same length. You can perform the following two operations on the string aa: Swap any two bits at ind 阅读全文
posted @ 2020-02-21 16:32 DeaL57 阅读(201) 评论(0) 推荐(0)
摘要:You're given an integer nn. For every integer ii from 22 to nn, assign a positive integer aiai such that the following conditions hold: For any pair o 阅读全文
posted @ 2020-02-20 10:06 DeaL57 阅读(265) 评论(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 and Dreamoon foll 阅读全文
posted @ 2020-02-18 17:52 DeaL57 阅读(184) 评论(0) 推荐(0)
摘要:Polycarpus has a ribbon, its length is n. He wants to cut the ribbon in a way that fulfils the following two conditions: After the cutting each ribbon 阅读全文
posted @ 2020-02-18 11:50 DeaL57 阅读(278) 评论(0) 推荐(0)
摘要:Vova promised himself that he would never play computer games... But recently Firestorm — a well-known game developing company — published their newes 阅读全文
posted @ 2020-02-17 17:25 DeaL57 阅读(214) 评论(0) 推荐(0)
摘要:The only difference between easy and hard versions is constraints. There are nn kids, each of them is reading a unique book. At the end of any day, th 阅读全文
posted @ 2020-02-17 11:46 DeaL57 阅读(229) 评论(0) 推荐(0)
摘要:Pavel loves grid mazes. A grid maze is an n × m rectangle maze where each cell is either empty, or is a wall. You can go from one cell to another only 阅读全文
posted @ 2020-02-17 11:11 DeaL57 阅读(169) 评论(0) 推荐(0)
摘要:A company has n employees numbered from 1 to n. Each employee either has no immediate manager or exactly one immediate manager, who is another employe 阅读全文
posted @ 2020-02-16 16:06 DeaL57 阅读(147) 评论(0) 推荐(0)
摘要:DZY loves chessboard, and he enjoys playing with it. He has a chessboard of n rows and m columns. Some cells of the chessboard are bad, others are goo 阅读全文
posted @ 2020-02-14 17:56 DeaL57 阅读(192) 评论(0) 推荐(0)
摘要:Berland shop sells nn kinds of juices. Each juice has its price cici. Each juice includes some set of vitamins in it. There are three types of vitamin 阅读全文
posted @ 2020-02-12 16:50 DeaL57 阅读(187) 评论(0) 推荐(0)
摘要:Petr has just bought a new car. He's just arrived at the most known Petersburg's petrol station to refuel it when he suddenly discovered that the petr 阅读全文
posted @ 2020-02-11 23:33 DeaL57 阅读(230) 评论(0) 推荐(0)
摘要:Kuriyama Mirai has killed many monsters and got many (namely n) stones. She numbers the stones from 1 to n. The cost of the i-th stone is vi. Kuriyama 阅读全文
posted @ 2020-02-11 17:27 DeaL57 阅读(224) 评论(0) 推荐(0)
摘要:Recently, Norge found a string s=s1s2…sns=s1s2…sn consisting of nn lowercase Latin letters. As an exercise to improve his typing speed, he decided to 阅读全文
posted @ 2020-02-06 16:00 DeaL57 阅读(180) 评论(0) 推荐(0)