- 博客(19)
- 资源 (1)
- 收藏
- 关注
原创 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
908
原创 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
639
原创 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
479
原创 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
1009
原创 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
360
原创 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
485
原创 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
248
原创 蓝桥杯2022年第十三届省赛真题-修剪灌木
目录:题目描述输入输出样例输入样例输出提示代码:(代码在dotcpp网站上是通过了的)题目描述爱丽丝要完成一项修剪灌木的工作。有 N 棵灌木整齐的从左到右排成一排。爱丽丝在每天傍晚会修剪一棵灌木,让灌木的高度变为 0 厘米。爱丽丝修剪灌木的顺序是从最左侧的灌木开始,每天向右修剪一棵灌木。当修剪了最右侧的灌木后,她会调转方向,下一天开始向左修剪灌木。直到修剪了最左的灌木后再次调转方向。然后如此循环往复。灌木每天从早上到傍晚会长高 1 厘米,而其余时间不会长高。在第一天的
2022-04-20 19:43:15
315
原创 蓝桥杯2022年第十三届省赛真题-刷题统计
目录题目描述输入输出样例输入样例输出提示代码:题目描述小明决定从下周一开始努力刷题准备蓝桥杯竞赛。他计划周一至周五每天做 a 道题目,周六和周日每天做 b 道题目。请你帮小明计算,按照计划他将在第几天实现做题数大于等于 n 题?输入输入一行包含三个整数 a, b 和 n.输出输出一个整数代表天数。样例输入10 20 99样例输出8提示对于 50% 的评测用例,1 ≤ a, b, n ≤ 106 . 对于 100% 的评测
2022-04-20 19:36:06
780
原创 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
282
原创 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
668
原创 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
347
原创 Problem-人见人爱A-B-hdu
目录题目:inputoutputSample InputSample Output代码:题目:参加过上个月月赛的同学一定还记得其中的一个最简单的题目,就是{A}+{B},那个题目求的是两个集合的并集,今天我们这个A-B求的是两个集合的差,就是做集合的减法运算。(当然,大家都知道集合的定义,就是同一个集合中不会有两个相同的元素,这里还是提醒大家一下)呵呵,很简单吧?input每组输入数据占1行,每行数据的开始是2个整数n(0<=n<=100)和m(
2022-04-15 21:01:14
79
原创 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
224
原创 linux基本命令
目录1.ls命令2.cd命令3.pwd命令4.touch命令5.mkdir命令6.rm删除1.ls命令ls查看当前目录下的文件ls -l 查看当前目录下的文件,信息更全ls -a查看当前目录下所有的文件(包括以.开头的隐藏文件)2.cd命令cd [目录名] 进入此目录cd .. 返回上一层目录3.pwd命令pwd 查看当前目录的路径4.touch命令------------蓝色的是文件夹,黑色的是文件------------t.
2022-04-14 20:57:19
576
原创 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
573
原创 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
396
原创 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
487
原创 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
898
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人