
训练二
文章平均质量分 77
一只小熊做蹲起
这个作者很懒,什么都没留下…
展开
-
Q - Uncowed Forces
Q - Uncowed ForcesKevin Sun has just finished competing in Codeforces Round #334! The round was 120 minutes long and featured five problems with maximum point values of 500, 1000, 1500, 2000, and 2500, respectively. Despite the challenging tasks, Kevin wa原创 2021-03-14 08:54:10 · 124 阅读 · 0 评论 -
P - Random Teams
P - Random Teamsn participants of the competition were split into m teams in some manner so that each team has at least one participant. After the competition each pair of participants from the same team became friends.Your task is to write a program tha原创 2021-03-01 21:02:23 · 100 阅读 · 0 评论 -
O - Football
O - FootballOne day Vasya decided to have a look at the results of Berland 1910 Football Championship’s finals. Unfortunately he didn’t find the overall score of the match; however, he got hold of a profound description of the match’s process. On the whol原创 2021-03-01 20:50:40 · 166 阅读 · 0 评论 -
N - Multiply by 2, divide by 6
N - Multiply by 2, divide by 6You are given an integer n. In one move, you can either multiply n by two or divide n by 6 (if it is divisible by 6 without the remainder).Your task is to find the minimum number of moves needed to obtain 1 from n or determi原创 2021-02-28 19:47:26 · 335 阅读 · 0 评论 -
M - Fancy Fence
M - Fancy FenceEmuskald needs a fence around his farm, but he is too lazy to build it himself. So he purchased a fence-building robot.He wants the fence to be a regular polygon. The robot builds the fence along a single path, but it can only make fence c原创 2021-02-28 19:47:12 · 135 阅读 · 0 评论 -
L - Arena
L - Arenan heroes fight against each other in the Arena. Initially, the i-th hero has level ai.Each minute, a fight between two different heroes occurs. These heroes can be chosen arbitrarily (it’s even possible that it is the same two heroes that were原创 2021-02-27 19:38:44 · 277 阅读 · 0 评论 -
K - Three swimmers
K - Three swimmersThree swimmers decided to organize a party in the swimming pool! At noon, they started to swim from the left side of the pool.It takes the first swimmer exactly a minutes to swim across the entire pool and come back, exactly b minutes f原创 2021-02-27 19:16:42 · 205 阅读 · 0 评论 -
J - Cows and Poker Game
J - Cows and Poker GameThere are n cows playing poker at a table. For the current betting phase, each player’s status is either “ALLIN”, “IN”, or “FOLDED”, and does not change throughout the phase. To increase the suspense, a player whose current status i原创 2021-02-24 21:33:52 · 123 阅读 · 0 评论 -
I - Vitya in the Countryside
I - Vitya in the CountrysideEvery summer Vitya comes to visit his grandmother in the countryside. This summer, he got a huge wart. Every grandma knows that one should treat warts when the moon goes down. Thus, Vitya has to catch the moment when the moon i原创 2021-02-24 21:26:57 · 96 阅读 · 0 评论 -
H - Pashmak and Flowers
H - Pashmak and Flowers*Pashmak decided to give Parmida a pair of flowers from the garden. There are n flowers in the garden and the i-th of them has a beauty number bi. Parmida is a very strange girl so she doesn’t want to have the two most beautiful flo原创 2021-02-24 21:25:24 · 133 阅读 · 0 评论 -
G - Police Recruits
G - Police RecruitsThe police department of your city has just started its journey. Initially, they don’t have any manpower. So, they started hiring new recruits in groups.Meanwhile, crimes keeps occurring within the city. One member of the police force原创 2021-02-24 21:23:50 · 107 阅读 · 0 评论 -
F - Sereja and Suffixes
F - Sereja and SuffixesSereja has an array a, consisting of n integers a1, a2, …, an. The boy cannot sit and do nothing, he decided to study an array. Sereja took a piece of paper and wrote out m integers l1, l2, …, lm (1 ≤ li ≤ n). For each number li he原创 2021-02-24 21:21:22 · 169 阅读 · 0 评论 -
E - Laptops
E - LaptopsOne day Dima and Alex had an argument about the price and quality of laptops. Dima thinks that the more expensive a laptop is, the better it is. Alex disagrees. Alex thinks that there are two laptops, such that the price of the first laptop is原创 2021-02-24 21:19:51 · 188 阅读 · 0 评论 -
D - Worms
D - WormsIt is lunch time for Mole. His friend, Marmot, prepared him a nice game for lunch.Marmot brought Mole n ordered piles of worms such that i-th pile contains ai worms. He labeled all these worms with consecutive integers: worms in first pile are l原创 2021-02-24 21:18:32 · 188 阅读 · 0 评论 -
C - CopyCopyCopyCopyCopy
C - CopyCopyCopyCopyCopyEhab has an array a of length n. He has just enough free time to make a new array consisting of n copies of the old array, written back-to-back. What will be the length of the new array’s longest increasing subsequence?A sequence原创 2021-02-24 21:15:52 · 400 阅读 · 0 评论 -
B - Yet Another Bookshelf
B - Yet Another BookshelfThere is a bookshelf which can fit n books. The i-th position of bookshelf is ai=1 if there is a book on this position and ai=0 otherwise. It is guaranteed that there is at least one book on the bookshelf.In one move, you can cho原创 2021-02-24 21:14:30 · 122 阅读 · 0 评论 -
A - Digit Game
A - Digit GameEveryone knows that agents in Valorant decide, who will play as attackers, and who will play as defenders. To do that Raze and Breach decided to play t matches of a digit game…In each of t matches of the digit game, a positive integer is ge原创 2021-02-24 21:12:17 · 128 阅读 · 0 评论