随笔分类 - 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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:A. Word Correction Victor tries to write his own text editor, with word correction included. However, the rules of word correction are really strange.
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号