
CF
文章平均质量分 75
yhwqeioyqewqiweq
这个作者很懒,什么都没留下…
展开
-
CodeForces 977D Divide by three, multiply by two 拓扑排序
Polycarp likes to play with numbers. He takes some integer number xx, writes it down on the board, and then performs with it n−1n−1 operations of the two kinds:divide the number xx by 33 (xx must be d...原创 2018-06-21 19:38:57 · 208 阅读 · 0 评论 -
CodeForces 977A Wrong Subtraction 水题
Little girl Tanya is learning how to decrease a number by one, but she does it wrong with a number consisting of two or more digits. Tanya subtracts one from a number by the following algorithm:if the...原创 2018-06-19 20:40:52 · 296 阅读 · 0 评论 -
CodeForces 977B Two-gram 水题
Two-gram is an ordered pair (i.e. string of length two) of capital Latin letters. For example, "AZ", "AA", "ZA" — three distinct two-grams.You are given a string ss consisting of nn capital Latin lett...原创 2018-06-19 20:54:14 · 539 阅读 · 0 评论 -
CodeForces 977 C Less or Equal
You are given a sequence of integers of length nn and integer number kk. You should print any integer number xx in the range of [1;109][1;109] (i.e. 1≤x≤1091≤x≤109) such that exactly kk elements of gi...原创 2018-06-19 21:16:13 · 210 阅读 · 0 评论 -
CodeForces - 978D Almost Arithmetic Progression
Polycarp likes arithmetic progressions. A sequence [a1,a2,…,an][a1,a2,…,an] is called an arithmetic progression if for each ii (1≤i<n1≤i<n) the value ai+1−aiai+1−ai is the same. For example, the...原创 2019-01-21 17:17:37 · 225 阅读 · 0 评论