摘要: 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 阅读(149) 评论(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 阅读(165) 评论(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 阅读(184) 评论(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 阅读(133) 评论(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 阅读(183) 评论(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 阅读(196) 评论(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 阅读(163) 评论(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 阅读(197) 评论(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 阅读(465) 评论(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 阅读(190) 评论(0) 推荐(0) 编辑