CF练习记录
Haruomi
这个作者很懒,什么都没留下…
展开
-
CodeForces 1209 C.Paint the Digits
CodeForces1209 C.Paint the DigitsYou are given a sequence of n digits d1d2…dn. You need to paint all the digits in two colors so that:each digit is painted either in the color 1 or in the color 2;i...原创 2019-09-27 21:51:21 · 163 阅读 · 0 评论 -
CodeForces-1209D-Cow and Snacks (并查集)
CodeForces-1209D-Cow and SnacksThe legendary Farmer John is throwing a huge party, and animals from all over the world are hanging out at his house. His guests are hungry, so he instructs his cow Bes...原创 2019-09-29 09:07:39 · 338 阅读 · 0 评论 -
codeforces 1217B-Zmei Gorynich(简单思维)
codeforces 1217B-Zmei GorynichYou are fighting with Zmei Gorynich — a ferocious monster from Slavic myths, a huge dragon-like reptile with multiple heads!Initially Zmei Gorynich has x heads. You can...原创 2019-09-29 23:09:56 · 235 阅读 · 0 评论 -
Codeforces-1217C-The Number Of Good Substrings(思维+枚举)
Codeforces-1217C-The Number Of Good SubstringsYou are given a binary string s (recall that a string is binary if each character is either 0 or 1).Let f(t) be the decimal representation of integer t ...原创 2019-09-29 23:22:35 · 275 阅读 · 0 评论 -
CodeForces - 1213D2-Equalizing by Division (hard version)(简单思维)
CodeForces - 1213D2-Equalizing by Division (hard version) The only difference between easy and hard versions is the number of elements in the array.You are given an array a consisting of n integers....原创 2019-09-30 08:24:02 · 128 阅读 · 0 评论