![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
cf
文章平均质量分 77
zuhiul
这个作者很懒,什么都没留下…
展开
-
codeforces 282 D. Yet Another Number Game
更好的阅读体验D. Yet Another Number Game开启传送门题目描述Since most contestants do not read this part, I have to repeat that Bitlandians are quite weird. They have their own jobs, their own working method, their own lives, their own sausages and their own games!Sin原创 2021-11-02 20:15:09 · 1090 阅读 · 0 评论 -
codeforces1574 D. The Strongest Build
本场比赛其他题目题解A. Regular Bracket SequencesB. Combinatorics HomeworkC. Slay the DragonD. The Strongest BuildD. The Strongest Build开启传送门题目描述Ivan is playing yet another roguelike computer game. He controls a single hero in the game. The hero has nnn equi原创 2021-09-27 21:15:23 · 275 阅读 · 2 评论 -
codeforces 1574 C. Slay the Dragon
本场比赛其他题目题解A. Regular Bracket SequencesB. Combinatorics HomeworkC. Slay the DragonD. The Strongest BuildC. Slay the Dragon开启传送门题目描述Recently, Petya learned about a new game “Slay the Dragon”. As the name suggests, the player will have to fight with原创 2021-09-27 21:12:46 · 443 阅读 · 0 评论 -
codefoces 1574 B. Combinatorics Homework
本场比赛其他题目题解A. Regular Bracket SequencesB. Combinatorics HomeworkC. Slay the DragonD. The Strongest BuildB. Combinatorics Homework开启传送门题目描述You are given four integer values aaa, bbb, ccc and mmm.Check if there exists a string that contains:aaa le原创 2021-09-27 21:10:33 · 131 阅读 · 0 评论 -
codeforces 1574 A. Regular Bracket Sequences
本场比赛其他题目题解A. Regular Bracket SequencesB. Combinatorics HomeworkC. Slay the DragonD. The Strongest BuildA. Regular Bracket Sequences开启传送门题目描述A bracket sequence is a string containing only characters “(” and “)”. A regular bracket sequence is a brac原创 2021-09-27 21:08:34 · 199 阅读 · 0 评论 -
codeforces 1567 E. Non-Decreasing Dilemma
本场比赛其他题目的题解A. Domino DisasterB. MEXor MixupC. Carrying ConundrumD. Expression Evaluation ErrorE. Non-Decreasing DilemmaE. Non-Decreasing Dilemma开启传送门题目描述Alice has recently received an array a1,a2,…,ana_1, a_2, \dots, a_na1,a2,…,an for her birt原创 2021-09-13 18:57:32 · 306 阅读 · 0 评论 -
codeforces 1567 D. Expression Evaluation Error
本场比赛其他题目的题解A. Domino DisasterB. MEXor MixupC. Carrying ConundrumD. Expression Evaluation ErrorE. Non-Decreasing DilemmaD. Expression Evaluation Error开启传送门题目描述On the board, Bob wrote nnn positive integers in base 101010 with sum sss (i. e. in deci原创 2021-09-13 18:55:56 · 180 阅读 · 0 评论 -
codeforces 1567 C. Carrying Conundrum
本场比赛其他题目的题解A. Domino DisasterB. MEXor MixupC. Carrying ConundrumD. Expression Evaluation ErrorE. Non-Decreasing DilemmaC. Carrying Conundrum开启传送门题目描述Alice has just learned addition. However, she hasn’t learned the concept of “carrying” fully — in原创 2021-09-13 18:54:50 · 201 阅读 · 0 评论 -
codeforces 1567 B. MEXor Mixup
本场比赛其他题目的题解A. Domino DisasterB. MEXor MixupC. Carrying ConundrumD. Expression Evaluation ErrorE. Non-Decreasing DilemmaB. MEXor Mixup开启传送门题目描述Alice gave Bob two integers aaa and bbb (a>0a > 0a>0 and b≥0b \ge 0b≥0). Being a curious boy, B原创 2021-09-13 18:53:16 · 322 阅读 · 0 评论 -
codeforces 1567 A. Domino Disaster
本场比赛其他题目的题解A. Domino DisasterB. MEXor MixupC. Carrying ConundrumD. Expression Evaluation ErrorE. Non-Decreasing DilemmaA. Domino Disaster开启传送门题目描述Alice has a grid with 222 rows and nnn columns. She fully covers the grid using nnn dominoes of size原创 2021-09-13 18:49:32 · 164 阅读 · 0 评论 -
codeforces 1559 E. Mocha and Stars
更好的阅读体验E. Mocha and Stars开启传送门题目描述Mocha wants to be an astrologer. There are nnn stars which can be seen in Zhijiang, and the brightness of the iii-th star is aia_iai.Mocha considers that these nnn stars form a constellation, and she uses (a1,a2,…,a原创 2021-09-02 15:30:43 · 124 阅读 · 0 评论 -
Codeforces 1560 F2. Nearest Beautiful Number (hard version)
更好的阅读体验F2. Nearest Beautiful Number (hard version)开启传送门题目描述It is a complicated version of problem F1. The difference between them is the constraints (F1: k≤2k \le 2k≤2, F2: k≤10k \le 10k≤10).You are given an integer nnn. Find the minimum integer xxx原创 2021-08-29 15:14:46 · 123 阅读 · 0 评论 -
Codeforces 1562 D2. Two Hundred Twenty One (hard version)
本场比赛其他题目的题解A. The Miracle and the SleeperB. Scenes From a MemoryC. RingsD1. Two Hundred Twenty One (easy version)D2. Two Hundred Twenty One (hard version)D2. Two Hundred Twenty One (hard version)开启传送门题目描述This is the hard version of the problem. T原创 2021-08-28 21:39:26 · 143 阅读 · 0 评论 -
Codeforces 1562 D1. Two Hundred Twenty One (easy version)
本场比赛其他题目的题解A. The Miracle and the SleeperB. Scenes From a MemoryC. RingsD1. Two Hundred Twenty One (easy version)D1. Two Hundred Twenty One (easy version)开启传送门题目描述This is the easy version of the problem. The difference between the versions is that原创 2021-08-28 18:13:11 · 355 阅读 · 1 评论 -
Codeforces 1562 C. Rings
本场比赛其他题目的题解A. The Miracle and the SleeperB. Scenes From a MemoryC. RingsD1. Two Hundred Twenty One (easy version)C. Rings开启传送门题目描述Frodo was caught by Saruman. He tore a pouch from Frodo’s neck, shook out its contents —there was a pile of different原创 2021-08-28 18:11:17 · 213 阅读 · 0 评论 -
Codeforces 1562 B. Scenes From a Memory
本场比赛其他题目的题解A. The Miracle and the SleeperB. Scenes From a MemoryC. RingsD1. Two Hundred Twenty One (easy version)B. Scenes From a Memory开启传送门题目描述During the hypnosis session, Nicholas suddenly remembered a positive integer nnn, which doesn’t contai原创 2021-08-28 18:09:34 · 473 阅读 · 0 评论 -
codeforces 1562 A. The Miracle and the Sleeper
本场比赛其他题目的题解A. The Miracle and the SleeperB. Scenes From a MemoryC. RingsD1. Two Hundred Twenty One (easy version)A. The Miracle and the Sleeper开启传送门题目描述You are given two integers lll and rrr, l≤rl\le rl≤r. Find the largest possible value of a mod原创 2021-08-28 18:07:26 · 381 阅读 · 0 评论 -
Codeforces 1458 B Glass Half Spilled
更好的阅读体验B. Glass Half Spilled开启传送门题目描述There are nnn glasses on the table numbered 1,…,n1, \ldots, n1,…,n. The glass iii can hold up to aia_iai units of water, and currently contains bib_ibi units of water.You would like to choose kkk glasses and col原创 2021-08-26 15:02:46 · 173 阅读 · 0 评论 -
Codeforces 1379 C Choosing flowers
更好的阅读体验C. Choosing flowers开启传送门题目描述Vladimir would like to prepare a present for his wife: they have an anniversary! He decided to buy her exactly nnn flowers.Vladimir went to a flower shop, and he was amazed to see that there are mmm types of flowers原创 2021-08-24 18:21:30 · 140 阅读 · 0 评论 -
Codeforces 1359 D Yet Another Yet Another Task
更好的阅读体验D. Yet Another Yet Another Task开启传送门题目描述Alice and Bob are playing yet another card game. This time the rules are the following. There are nnn cards lying in a row in front of them. The iii-th card has value aia_iai.First, Alice chooses a non-e原创 2021-08-24 17:22:09 · 107 阅读 · 0 评论 -
codeforces 767a
According to an old legeng, a long time ago Ankh-Morpork residents did something wrong to miss Fortune, and she cursed them. She said that at some time n snacks of distinct sizes will fall on the city,原创 2017-04-21 11:54:16 · 326 阅读 · 0 评论 -
codeforces 779A
In Berland each high school student is characterized by academic performance — integer value between 1 and 5.In high school 0xFF there are two groups of pupils: the group A and the group B. Each group原创 2017-04-24 23:32:41 · 393 阅读 · 0 评论 -
codeforces 335 C Sorting Railway Cars
题目链接:这里。An infinitely long railway has a train consisting of n cars, numbered from 1 to n (the numbers of all the cars are distinct) and positioned in arbitrary order. David Blaine wants to sort the ra原创 2017-09-28 21:19:17 · 341 阅读 · 0 评论 -
codeforces 1A Theatre Square
题目链接:点这里。Theatre Square in the capital city of Berland has a rectangular shape with the size n × m meters. On the occasion of the city's anniversary, a decision was taken to pave the Square with square原创 2017-11-08 11:33:25 · 261 阅读 · 0 评论 -
CodeForces - 782B The Meeting Place Cannot Be Changed
题目链接:传送门。The main road in Bytecity is a straight line from south to north. Conveniently, there are coordinates measured in meters from the southernmost building in north direction.At some points on the原创 2017-10-14 15:18:14 · 164 阅读 · 0 评论 -
codeforces 120A Elevator
题目链接:传送门。A sky scraper with 1000 floors has been built in the city of N. It has modern superfast elevators to help to travel from one floor to another. Each elevator has two doors, the front one and th原创 2017-11-09 17:21:11 · 357 阅读 · 0 评论 -
codeforces 120B Quiz League
题目链接:传送门。A team quiz game called "What? Where? When?" is very popular in Berland. The game is centered on two teams competing. They are the team of six Experts versus the team of the Audience. A person原创 2017-11-09 17:27:14 · 386 阅读 · 0 评论 -
codeforces 120C Winnie-the-Pooh and honey
题目链接:传送门。As we all know, Winnie-the-Pooh just adores honey. Ones he and the Piglet found out that the Rabbit has recently gotten hold of an impressive amount of this sweet and healthy snack. As you may原创 2017-11-09 17:32:42 · 434 阅读 · 0 评论 -
codeforces 120D Three Sons
题目链接:传送门。Three sons inherited from their father a rectangular corn fiend divided into n × m squares. For each square we know how many tons of corn grows on it. The father, an old farmer did not love al原创 2017-11-09 18:53:59 · 342 阅读 · 0 评论 -
codeforces 120E Put Knight!
题目链接:传送门。Petya and Gena play a very interesting game "Put a Knight!" on a chessboard n × n in size. In this game they take turns to put chess pieces called "knights" on the board so that no two knights原创 2017-11-09 19:04:02 · 435 阅读 · 0 评论 -
codeforces 120F Spiders
题目链接:传送门。One day mum asked Petya to sort his toys and get rid of some of them. Petya found a whole box of toy spiders. They were quite dear to him and the boy didn't want to throw them away. Petya conj原创 2017-11-09 20:33:59 · 424 阅读 · 0 评论 -
codeforces round#427D Palindromic characteristics
Open the transmission gatePalindromic characteristics of string s with length |s| is a sequence of |s| integers, where k-th number is the total number of non-empty substrings of s which are k-palind...原创 2018-05-02 16:55:24 · 172 阅读 · 0 评论 -
codeforces round#478D Ghosts
Open the transmission gate Ghosts live in harmony and peace, they travel the space without any purpose other than scare whoever stands in their way. There are n ghosts in the universe, they m...原创 2018-05-02 17:33:11 · 291 阅读 · 0 评论 -
codeforces 948B Primal Sport
开启传送门。Alice and Bob begin their day with a quick game. They first choose a starting number X0 ≥ 3 and try to reach one million by the process described below.Alice goes first and then they take al...原创 2018-04-28 16:25:02 · 207 阅读 · 0 评论 -
CF 382B Number Busters
Arthur and Alexander are number busters. Today they've got a competition.Arthur took a group of four integers a, b, w, x (0 ≤ b < w, 0 < x < w) and Alexander took integer с. Arthur and Alexander use di原创 2017-07-28 21:38:29 · 287 阅读 · 0 评论