codeforces
文章平均质量分 72
'<王半仙>'
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #786 (Div. 3) A~E
目录A. Number TransformationB. DictionaryC. Infinite ReplacementD. A-B-C SortE. Breaking the Wall———————————————————————————————————————————A. Number TransformationYou are given two integersxxandyy. You want to choose twostrictly posi...原创 2022-05-04 21:26:07 · 978 阅读 · 0 评论 -
problem-1654B. Prefix Removals-codeforces
题目:You are given a stringssconsisting of lowercase letters of the English alphabet. You must perform the following algorithm onss:Letxxbe the length of the longest prefix ofsswhich occurs somewhere else inssas a contiguous substring (the other...原创 2022-04-27 23:47:09 · 655 阅读 · 0 评论 -
problem-A. Organizing SWERC-codeforces
题目:Gianni, SWERC's chief judge, received a huge amount of high quality problems from the judges and now he has to choose a problem set for SWERC.He receivednnproblems and he assigned a beauty score and a difficulty to each of them. Theii-th problem ...原创 2022-04-24 23:32:42 · 495 阅读 · 0 评论 -
Educational Codeforces Round 127 (Rated for Div. 2) C and D
目录C. Dolce VitaD. Insert a ProgressionC. Dolce VitaTurbulent times are coming, so you decided to buy sugar in advance. There arennshops around that sell sugar: theii-th shop sells one pack of sugar foraiaicoins, but onlyone pack to one cust...原创 2022-04-23 12:10:59 · 1028 阅读 · 0 评论 -
problem-B. Consecutive Points Segment-codeforces
目录题目:输入:输出:Examplesinputoutput代码:题目:You are givennnpoints with integer coordinates on a coordinate axisOXOX. The coordinate of theii-th point isxixi. All points' coordinates are distinct and given in strictly increasing order.For e...原创 2022-04-23 11:40:05 · 408 阅读 · 0 评论 -
problem-A. String Building-codeforces
目录题目:输入:输出:Examplesinputoutput代码:题目:You are given a stringss. You have to determine whether it is possible to build the stringssout of stringsaa,aaa,bband/orbbbby concatenating them. You can use the stringsaa,aaa,bband/orb...原创 2022-04-23 11:32:09 · 491 阅读 · 0 评论 -
problem-266A-Stones on the Table-codeforces
题目:There arenstones on the table in a row, each of them can be red, green or blue. Count the minimum number of stones to take from the table so that any two neighboring stones had different colors. Stones in a row are considered neighboring if there ar..原创 2022-04-22 21:42:33 · 251 阅读 · 0 评论 -
problen-281A-Word Capitalization-codeforces
题目:Capitalization is writing a word with its first letter as a capital letter. Your task is to capitalize the given word.Note, that during capitalization all the letters except the first one remains unchanged.输入:A single line contains a non-empty w原创 2022-04-18 22:36:23 · 283 阅读 · 0 评论 -
problem-339A-Helpful Maths-codeforces
目录题目:输入:输出:Examplesinputoutput代码:题目:Xenia the beginner mathematician is a third year student at elementary school. She is now learning the addition operation.The teacher has written down the sum of multiple numbers. Pupils should calc原创 2022-04-17 14:12:52 · 726 阅读 · 0 评论 -
problem-112A-Petya and Strings-codeforces
目录题目:Examplesinputoutput代码:题目:Little Petya loves presents. His mum bought him two strings of the same size for his birthday. The strings consist of uppercase and lowercase Latin letters. Now Petya wants to compare those two stringslexicogr.原创 2022-04-16 22:02:15 · 352 阅读 · 0 评论 -
problem-263A-Beautiful Matrix-codeforces
目录目录题目:输入:输出:inputoutput代码:题目:You've got a5 × 5matrix, consisting of24zeroes and a single number one. Let's index the matrix rows by numbers from1to5from top to bottom, let's index the matrix columns by numbers from1to5from le...原创 2022-04-15 12:57:20 · 227 阅读 · 0 评论 -
problem-282A-Bit++-codeforces
题目:The classic programming language of Bitland is Bit++. This language is so peculiar and complicated.The language is that peculiar as it has exactly one variable, calledx. Also, there are two operations:Operation++increases the value of variable...原创 2022-04-14 14:00:02 · 574 阅读 · 0 评论 -
problem-50A-Domino piling-codeforces
题目You are given a rectangular board ofM × Nsquares. Also you are given an unlimited number of standard domino pieces of2 × 1squares. You are allowed to rotate the pieces. You are asked to place as many dominoes as possible on the board so as to meet ...原创 2022-04-13 21:18:35 · 397 阅读 · 0 评论 -
problem-158A-Next Round-codeforces
题目"Contestant who earns a score equal to or greater than thek-th place finisher's score will advance to the next round, as long as the contestant earns a positive score..." — an excerpt from contest rules.A total ofnparticipants took part in the con...原创 2022-04-12 11:02:18 · 496 阅读 · 0 评论 -
problem-231A-Team-codeforces
https://codeforces.com/problemset/problem/231/A题目:One day three best friends Petya, Vasya and Tonya decided to form a team and take part in programming contests. Participants are usually offered several problems during programming contests. Long before原创 2022-04-11 23:42:52 · 926 阅读 · 0 评论