随笔分类 -  Codeforces

摘要:D. Prefix Purchase You have an array a of size n, initially filled with zeros (a1=a2==an=0). You also have an array of integers 阅读全文
posted @ 2023-10-07 15:06 onlyblues 阅读(31) 评论(0) 推荐(0) 编辑
摘要:D1. Candy Party (Easy Version) This is the easy version of the problem. The only difference is that in this version everyone must give candies to exac 阅读全文
posted @ 2023-09-14 10:17 onlyblues 阅读(56) 评论(0) 推荐(0) 编辑
摘要:F. Selling a Menagerie You are the owner of a menagerie consisting of n animals numbered from 1 to n. However, maintaining the menagerie is quit 阅读全文
posted @ 2023-09-08 15:51 onlyblues 阅读(73) 评论(0) 推荐(1) 编辑
摘要:D. Balanced String You are given a binary string s (a binary string is a string consisting of characters 0 and/or 1). Let's call a binary string bal 阅读全文
posted @ 2023-09-05 21:22 onlyblues 阅读(81) 评论(5) 推荐(0) 编辑
摘要:F1. Omsk Metro (simple version) This is the simple version of the problem. The only difference between the simple and hard versions is that in this ve 阅读全文
posted @ 2023-09-04 21:41 onlyblues 阅读(26) 评论(0) 推荐(0) 编辑
摘要:D. Sorting By Multiplication You are given an array a of length n, consisting of positive integers. You can perform the following operation on thi 阅读全文
posted @ 2023-09-02 16:07 onlyblues 阅读(86) 评论(0) 推荐(1) 编辑
摘要:C. Vika and Price Tags Vika came to her favorite cosmetics store "Golden Pear". She noticed that the prices of n items have changed since her last v 阅读全文
posted @ 2023-09-02 14:45 onlyblues 阅读(39) 评论(0) 推荐(0) 编辑
摘要:D. Imbalanced Arrays Ntarsis has come up with an array a of n non-negative integers. Call an array b of n integers imbalanced if it satisfies 阅读全文
posted @ 2023-09-01 17:31 onlyblues 阅读(29) 评论(0) 推荐(0) 编辑
摘要:C. MEX Repetition You are given an array a1,a2,,an of pairwise distinct integers from 0 to n. Consider the following operation: consec 阅读全文
posted @ 2023-08-31 14:43 onlyblues 阅读(28) 评论(0) 推荐(0) 编辑
摘要:B. Split Sort You are given a permutation p1,p2,,pn of integers 1 to n. You can change the current permutation by applyi 阅读全文
posted @ 2023-08-31 12:14 onlyblues 阅读(52) 评论(0) 推荐(0) 编辑
摘要:D. Matrix Cascade There is a matrix of size n×n which consists of 0s and 1s. The rows are numbered from 1 to n from top to bottom, the co 阅读全文
posted @ 2023-08-30 10:48 onlyblues 阅读(89) 评论(0) 推荐(0) 编辑
摘要:G. The Great Equalizer Tema bought an old device with a small screen and a worn-out inscription "The Great Equalizer" on the side. The seller said tha 阅读全文
posted @ 2023-08-25 15:23 onlyblues 阅读(98) 评论(0) 推荐(0) 编辑
摘要:E. Kolya and Movie Theatre Recently, Kolya found out that a new movie theatre is going to be opened in his city soon, which will show a new movie ever 阅读全文
posted @ 2023-08-25 09:31 onlyblues 阅读(51) 评论(0) 推荐(0) 编辑
摘要:D. Trees and Segments The teachers of the Summer Informatics School decided to plant n trees in a row, and it was decided to plant only oaks and fir 阅读全文
posted @ 2023-08-16 20:51 onlyblues 阅读(55) 评论(0) 推荐(0) 编辑
摘要:E. Maximum Monogonosity You are given an array a of length n and an array b of length n. The cost of a segment [l,r], 1lrn 阅读全文
posted @ 2023-08-14 20:15 onlyblues 阅读(47) 评论(0) 推荐(0) 编辑
摘要:D. Andrey and Escape from Capygrad An incident occurred in Capygrad, the capital of Tyagoland, where all the capybaras in the city went crazy and star 阅读全文
posted @ 2023-08-13 19:40 onlyblues 阅读(80) 评论(0) 推荐(0) 编辑
摘要:G. Vlad and the Mountains Vlad decided to go on a trip to the mountains. He plans to move between n mountains, some of which are connected by roads. 阅读全文
posted @ 2023-08-11 15:57 onlyblues 阅读(90) 评论(0) 推荐(0) 编辑
摘要:G. Counting Graphs Given a tree consisting of n vertices. A tree is a connected undirected graph without cycles. Each edge of the tree has its weigh 阅读全文
posted @ 2023-08-08 23:17 onlyblues 阅读(134) 评论(0) 推荐(1) 编辑
摘要:E1. PermuTree (easy version) This is the easy version of the problem. The differences between the two versions are the constraint on n and the time 阅读全文
posted @ 2023-08-07 19:59 onlyblues 阅读(71) 评论(0) 推荐(0) 编辑
摘要:A. Vika and Her Friends Vika and her friends went shopping in a mall, which can be represented as a rectangular grid of rooms with sides of length n 阅读全文
posted @ 2023-07-17 16:08 onlyblues 阅读(80) 评论(0) 推荐(0) 编辑

Web Analytics
点击右上角即可分享
微信分享提示