原创 Codeforces Round #466 (Div. 2) C. Phone Numbers

C. Phone NumbersAnd where the are the phone numbers?You are given a string s consisting of lowercase English letters an

原创 Codeforces Round #469 (Div. 2) C. Zebras

C. ZebrasOleg writes down the history of the days he lived. For each day he decides if it was good or bad. Oleg calls a

原创 Codeforces Round #470 (rated, Div. 2, based on VK Cup 2018 Round 1) A. Protect Sheep

A. Protect SheepBob is a farmer. He has a large pasture with many sheep. Recently, he has lost some of them due to wolf

原创 Codeforces Round #470 (rated, Div. 2, based on VK Cup 2018 Round 1) C. Producing Snow

C. Producing SnowAlice likes snow a lot! Unfortunately, this year's winter is already over, and she can't expect to hav

原创 Codeforces Round #469 (Div. 2) B. Intercepted Message

B. Intercepted MessageHacker Zhorik wants to decipher two secret messages he intercepted yesterday. Yeah message is a s

原创 Codeforces Round #514 (Div. 2) C. Sequence Transformation

C. Sequence Transformation   Let's call the following process a transformation of a sequence of length nn. If the seque

原创 Codeforces Round #519 by Botan Investments C. Smallest Word

C. Smallest Word   IA has so many colorful magnets on her fridge! Exactly one letter is written on each magnet, 'a' or

原创 Educational Codeforces Round 52 (Rated for Div. 2) C. Make It Equal

C. Make It Equal   There is a toy building consisting of nn towers. Each tower consists of several cubes standing on ea

原创 Educational Codeforces Round 53 (Rated for Div. 2) A. Diverse Substring

A. Diverse Substring   You are given a string ss, consisting of nn lowercase Latin letters. A substring of string ss is

原创 Wannafly挑戰賽27 A 灰魔法師

鏈接:https://www.nowcoder.com/acm/contest/215/A 來源:牛客網   題目描述 “White shores, and beyond. A far green country under a swif

原创 Educational Codeforces Round 53 (Rated for Div. 2) B. Vasya and Books

B. Vasya and Books   Vasya has got nn books, numbered from 11 to nn, arranged in a stack. The topmost book has number a

原创 編程練習賽80 A 禁止登錄

描述 爲了提升用戶帳號的安全性,H站決定實施一項措施:對在1小時內(注:00:00:00與01:00:00仍視爲在1小時內)出現5次或5次以上密碼錯誤的賬戶,暫時禁止該帳號被登錄。   現在小Hi拿到了某日全部密碼錯誤的日誌,他想知道有哪

原创 Codeforces Round #516 (Div. 2, by Moscow Team Olympiad) B. Equations of Mathematical Magic

B. Equations of Mathematical Magic   Colossal! — exclaimed Hawk-nose. — A programmer! That's exactly what we are lookin

原创 Mail.Ru Cup 2018 Round 1 C. Candies Distribution

C. Candies Distribution   There are nn children numbered from 11 to nn in a kindergarten. Kindergarten teacher gave aia

原创 Mail.Ru Cup 2018 Round 1 B. Appending Mex

B. Appending Mex   Initially Ildar has an empty array. He performs nn steps. On each step he takes a subset of integers