CODEFORCES
文章平均质量分 76
Free--Fly
代码是敲出来的,题是想出来的,不过是数据的错,掉头发是难免的,秃顶是有可能的,怕啥啊,一个字“干”。
展开
-
Find The Multiple
Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n is not greater than 200 and there...原创 2018-05-18 19:27:39 · 210 阅读 · 2 评论 -
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 splits of 8: [4, 4], [3, 3, 2], [2, 2, 1, 1, 1, 1], [5, 2, 1]...原创 2018-06-12 20:24:52 · 393 阅读 · 0 评论 -
B. Messages
outputstandard outputThere are n incoming messages for Vasya. The i-th message is going to be received after ti minutes. Each message has a cost, which equals to A initially. After being received, the...原创 2018-06-12 21:29:13 · 200 阅读 · 0 评论 -
CF--1009B. Minimum Ternary String
You are given a ternary string (it is a string which consists only of characters '0', '1' and '2'). You can swap any two adjacent (consecutive) characters '0' and '1' (i.e. replace "01" with "10" or ...原创 2018-07-30 09:34:06 · 182 阅读 · 0 评论 -
C. Summarize to the Power of Two
A sequence a1,a2,…,ana1,a2,…,an is called good if, for each element aiai, there exists an element ajaj (i≠ji≠j) such that ai+ajai+aj is a power of two (that is, 2d2d for some non-negative integer dd)....原创 2018-08-22 13:05:40 · 257 阅读 · 0 评论 -
A. Reorder the Array
You are given an array of integers. Vasya can permute (change order) its integers. He wants to do it so that as many as possible integers will become on a place where a smaller integer used to stand. ...转载 2018-08-22 14:26:59 · 230 阅读 · 0 评论