![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ACM
文章平均质量分 88
ElisaBaby
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #708 (Div. 2)B. M-arrays
B. M-arraystime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output题目描述You are given an array a1,a2,…,an consisting of n positive integers and a positive integer m.You should divide elements of this array原创 2021-03-21 17:45:23 · 140 阅读 · 1 评论 -
Good Bye 2014 C. New Year Book Reading
C. New Year Book Readingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output题目描述New Year is coming, and Jaehyun decided to read many books during 2015, unlike this year. He has n books numbered by int原创 2021-03-21 14:36:39 · 92 阅读 · 0 评论 -
Codeforces Round #708 (Div. 2)A. Meximization
A. Meximizationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output题目描述You are given an integer n and an array a1,a2,…,an. You should reorder the elements of the array a in such way that the sum of MEX原创 2021-03-21 14:33:59 · 236 阅读 · 0 评论 -
Codeforces Round #704 (Div. 2)A. Three swimmers
A. Three swimmerstime limit per test1 secondmemory limit per test512 megabytesinputstandard inputoutputstandard outputThree swimmers decided to organize a party in the swimming pool! At noon, they started to swim from the left side of the pool.It tak原创 2021-03-14 12:17:10 · 100 阅读 · 0 评论 -
Codeforces Global Round 13A. K-th Largest Value
A. K-th Largest Valuetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array a consisting of n integers. Initially all elements of a are either 0 or 1. You need to process q queries o原创 2021-03-01 12:16:44 · 172 阅读 · 0 评论 -
Codeforces Round #309 (Div. 2)A. Kyoya and Photobooks
A. Kyoya and Photobookstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output题目描述Kyoya Ootori is selling photobooks of the Ouran High School Host Club. He has 26 photos, labeled “a” to “z”, and he has c原创 2021-02-22 01:03:06 · 107 阅读 · 0 评论 -
Codeforces Round #165 (Div. 2)A. Fancy Fence
A. Fancy Fencetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputEmuskald 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 fe原创 2021-02-21 01:23:22 · 247 阅读 · 0 评论 -
Codeforces Round #703 (Div. 2)A. Shifting Stacks
A. Shifting Stackstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have stacks of blocks. The -th stack contains blocks and it’s height is the number of blocks in it. In one move you can take a原创 2021-02-20 23:19:08 · 217 阅读 · 3 评论 -
HDU 1241
题目描述2020年6月3日,征战了7年LQL联赛的丁丁妹宣布退役,总所周知,丁丁妹效力于GNR队,因为一次次精彩的操作被称为yyds,但可惜在最有分量的M比赛中没有拿到过冠军。退役后丁丁妹想要去发展自己的宝藏产业,她的宝藏储存地为nm的矩形,每个位置用代表空的地方,@代表有宝藏的地方。某些宝藏处相连(最近的八个位置,上下左右,斜线),他们被称为同一块宝藏。问有多少块宝藏处?Input有多组测试数据每组测试数据两个数n,m接下来n行,每行为1个长度为m且只包含’*‘和’@'的字符串1<=n,原创 2021-02-18 00:07:42 · 124 阅读 · 0 评论 -
Codeforces Round #699 (Div. 2)A. Space Navigation
A. Space Navigationtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou were dreaming that you are traveling to a planet named Planetforces on your personal spaceship. Unfortunately, its piloting sy原创 2021-02-08 19:16:43 · 149 阅读 · 0 评论 -
Codeforces Round #699 (Div. 2) B. New Colony
B. New Colonytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter reaching your destination, you want to build a new colony on the new planet. Since this planet has many mountains and the colony m原创 2021-02-08 18:59:23 · 177 阅读 · 1 评论 -
Good Bye 2014 -A. New Year Transportation
“直线世界”的新年正在到来!在这个世界中,有 n 个单元格,用从 1 到 n 的整数编号,成为一个 1 × n 的棋盘。人们生活在单元格中。然而,难以在不同单元格之间移动,因为逃离单元格具有难度。因此,小贝制作了一套在这些单元格之间移动的运输系统,来庆祝新年。首先,她考虑了 n - 1 个正整数 a1, a2, …, an - 1 。对于每个整数 i (其中 1 ≤ i ≤ n - 1),满足条件 1 ≤ ai ≤ n - i 。其次,他制作了 n - 1 个传送门,使用从 1 到 n - 1 的整数编号原创 2021-02-01 16:27:31 · 135 阅读 · 0 评论 -
ACM--Shooting
D - ShootingRecently Vasya decided to improve his pistol shooting skills. Today his coach offered him the following exercise. He placed n cans in a row on a table. Cans are numbered from left to right from 1 to n. Vasya has to knock down each can exactly原创 2020-11-29 09:47:51 · 164 阅读 · 0 评论