随笔分类 -  OJ-codeforces

摘要:A. Wrong Subtraction A. Wrong Subtraction Little girl Tanya is learning how to decrease a number by one, but she does it wrong with a number consistin 阅读全文
posted @ 2018-05-12 12:38 starry_sky 阅读(326) 评论(0) 推荐(0)
摘要:A. Plant Dwarfs have planted a very interesting plant, which is a triangle directed "upwards". This plant has an amusing feature. After one year a tri 阅读全文
posted @ 2018-05-06 22:31 starry_sky 阅读(387) 评论(0) 推荐(0)
摘要:A. Fafa and his Company Fafa owns a company that works on huge projects. There are n employees in Fafa's company. Whenever the company has a new proje 阅读全文
posted @ 2018-05-01 12:02 starry_sky 阅读(486) 评论(0) 推荐(0)
摘要:A. Love Triangle A. Love Triangle As you could know there are no male planes nor female planes. However, each plane on Earth likes some other plane. T 阅读全文
posted @ 2018-04-26 22:25 starry_sky 阅读(304) 评论(0) 推荐(0)
摘要:D. Buy a Ticket Musicians of a popular band "Flayer" have announced that they are going to "make their exit" with a world tour. Of course, they will v 阅读全文
posted @ 2018-04-25 21:43 starry_sky 阅读(325) 评论(0) 推荐(0)
摘要:A. Word Correction Victor tries to write his own text editor, with word correction included. However, the rules of word correction are really strange. 阅读全文
posted @ 2018-04-25 20:59 starry_sky 阅读(244) 评论(0) 推荐(0)
摘要:B. Levko and Array standard output B. Levko and Array standard output Levko has an array that consists of integers: a1, a2, ... , an. But he doesn’t l 阅读全文
posted @ 2018-04-22 11:59 starry_sky 阅读(219) 评论(0) 推荐(0)
摘要:A. Palindromic Supersequence You are given a string A. Find a string B, where B is a palindrome and A is a subsequence of B. A subsequence of a string 阅读全文
posted @ 2018-04-19 18:46 starry_sky 阅读(228) 评论(0) 推荐(0)
摘要:A. Splits Let's define a split of n as a nonincreasing sequence of positive integers, the sum of which is n. For example, the following sequences are 阅读全文
posted @ 2018-04-18 18:26 starry_sky 阅读(278) 评论(0) 推荐(0)
摘要:Pushok the dog has been chasing Imp for a few hours already. Fortunately, Imp knows that Pushok is afraid of a robot vacuum cleaner. While moving, the 阅读全文
posted @ 2018-04-13 17:09 starry_sky 阅读(286) 评论(0) 推荐(0)
摘要:A. Cloning Toys Recently, he found a machine that can clone plush toys. Imp knows that if he applies the machine to an original toy, he additionally g 阅读全文
posted @ 2018-04-13 11:29 starry_sky 阅读(216) 评论(0) 推荐(0)
摘要:A. Water The Garden A. Water The Garden It is winter now, and Max decided it's about time he watered the garden. The garden can be represented as n co 阅读全文
posted @ 2018-04-12 18:12 starry_sky 阅读(306) 评论(0) 推荐(0)
摘要:You are given a graph with n nodes and m directed edges. One lowercase letter is assigned to each node. We define a path's value as the number of the 阅读全文
posted @ 2018-04-11 17:37 starry_sky 阅读(890) 评论(0) 推荐(0)
摘要:A. Supermarket We often go to supermarkets to buy some fruits or vegetables, and on the tag there prints the price for a kilo. But in some supermarket 阅读全文
posted @ 2018-04-11 17:33 starry_sky 阅读(204) 评论(0) 推荐(0)
摘要:C. The Monster C. The Monster As Will is stuck in the Upside Down, he can still communicate with his mom, Joyce, through the Christmas lights (he can 阅读全文
posted @ 2018-01-30 22:40 starry_sky 阅读(281) 评论(0) 推荐(0)
摘要:A. Eleven Eleven wants to choose a new name for herself. As a bunch of geeks, her friends suggested an algorithm to choose a name for her. Eleven want 阅读全文
posted @ 2018-01-30 22:34 starry_sky 阅读(251) 评论(0) 推荐(0)
摘要:D. Too Easy Problems D. Too Easy Problems You are preparing for an exam on scheduling theory. The exam will last for exactly T milliseconds and will c 阅读全文
posted @ 2018-01-11 17:53 starry_sky 阅读(320) 评论(0) 推荐(0)
摘要:A. Modular Exponentiation The following problem is well-known: given integers n and m, calculate , where 2n = 2·2·...·2 (n factors), and denotes the r 阅读全文
posted @ 2018-01-09 11:56 starry_sky 阅读(229) 评论(0) 推荐(0)
摘要:A. The Way to Home A frog lives on the axis Ox and needs to reach home which is in the point n. She starts from the point 1. The frog can jump to the 阅读全文
posted @ 2018-01-06 13:46 starry_sky 阅读(597) 评论(0) 推荐(0)
摘要:A. Visiting a Friend A. Visiting a Friend Pig is visiting a friend. Pig's house is located at point 0, and his friend's house is located at point m on 阅读全文
posted @ 2018-01-03 14:34 starry_sky 阅读(297) 评论(0) 推荐(0)