随笔分类 -  Codeforces

上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要:F. Gardening Friends Two friends, Alisa and Yuki, planted a tree with $n$ vertices in their garden. A tree is an undirected graph without cycles, loop 阅读全文
posted @ 2023-04-26 16:45 onlyblues 阅读(226) 评论(0) 推荐(0)
摘要:G2. Magic Triples (Hard Version) This is the hard version of the problem. The only difference is that in this version, $a_i \le 10^9$. For a given seq 阅读全文
posted @ 2023-04-26 15:57 onlyblues 阅读(99) 评论(0) 推荐(0)
摘要:C. Place for a Selfie The universe is a coordinate plane. There are $n$ space highways, each of which is a straight line $y=kx$ passing through the or 阅读全文
posted @ 2023-04-04 10:14 onlyblues 阅读(119) 评论(0) 推荐(0)
摘要:D. A Wide, Wide Graph You are given a tree (a connected graph without cycles) with $n$ vertices. Consider a fixed integer $k$. Then, the graph $G_k$ i 阅读全文
posted @ 2023-04-04 09:38 onlyblues 阅读(116) 评论(0) 推荐(0)
摘要:C. Candy Store The store sells $n$ types of candies with numbers from $1$ to $n$. One candy of type $i$ costs $b_i$ coins. In total, there are $a_i$ c 阅读全文
posted @ 2023-03-27 23:00 onlyblues 阅读(165) 评论(0) 推荐(0)
摘要:D. Binary String Sorting You are given a binary string $s$ consisting of only characters 0 and/or 1. You can perform several operations on this string 阅读全文
posted @ 2023-03-24 10:08 onlyblues 阅读(244) 评论(0) 推荐(0)
摘要:C. Sequence Master For some positive integer $m$, YunQian considers an array $q$ of $2m$ (possibly negative) integers good, if and only if for every p 阅读全文
posted @ 2023-03-19 18:01 onlyblues 阅读(242) 评论(0) 推荐(0)
摘要:E. Music Festival The boy Vitya loves to listen to music very much. He knows that $n$ albums are due to be released this Friday, $i$-th of which conta 阅读全文
posted @ 2023-03-15 12:17 onlyblues 阅读(37) 评论(0) 推荐(0)
摘要:C. The Very Beautiful Blanket Kirill wants to weave the very beautiful blanket consisting of $n \times m$ of the same size square patches of some colo 阅读全文
posted @ 2023-03-15 09:18 onlyblues 阅读(131) 评论(0) 推荐(0)
摘要:C. Pull Your Luck While James is gone on business, Vesper takes her time and explores what the legendary Casino Royale has to offer to people who are 阅读全文
posted @ 2023-03-14 20:11 onlyblues 阅读(252) 评论(0) 推荐(0)
摘要:A. Lame King You are given a checkerboard of size $201 \times 201$, i. e. it has $201$ rows and $201$ columns. The rows of this checkerboard are numbe 阅读全文
posted @ 2023-03-14 17:07 onlyblues 阅读(72) 评论(0) 推荐(0)
摘要:D. Buying gifts Little Sasha has two friends, whom he wants to please with gifts on the Eighth of March. To do this, he went to the largest shopping c 阅读全文
posted @ 2023-03-09 23:43 onlyblues 阅读(333) 评论(2) 推荐(0)
摘要:F. Dasha and Nightmares Dasha, an excellent student, is studying at the best mathematical lyceum in the country. Recently, a mysterious stranger broug 阅读全文
posted @ 2023-03-04 16:43 onlyblues 阅读(103) 评论(0) 推荐(0)
摘要:D. Remove Two Letters Dmitry has a string $s$, consisting of lowercase Latin letters. Dmitry decided to remove two consecutive characters from the str 阅读全文
posted @ 2023-03-04 14:36 onlyblues 阅读(178) 评论(0) 推荐(0)
摘要:D. Maximum Subarray You are given an array $a_1, a_2, \dots, a_n$, consisting of $n$ integers. You are also given two integers $k$ and $x$. You have t 阅读全文
posted @ 2023-03-04 10:14 onlyblues 阅读(157) 评论(0) 推荐(0)
摘要:C. Maximum Set A set of positive integers $S$ is called beautiful if, for every two integers $x$ and $y$ from this set, either $x$ divides $y$ or $y$ 阅读全文
posted @ 2023-03-03 21:53 onlyblues 阅读(100) 评论(0) 推荐(0)
摘要:D. Serval and Shift-Shift-Shift Serval has two $n$-bit binary integer numbers $a$ and $b$. He wants to share those numbers with Toxel. Since Toxel lik 阅读全文
posted @ 2023-03-01 21:05 onlyblues 阅读(77) 评论(0) 推荐(0)
摘要:D. Triangle Coloring You are given an undirected graph consisting of $n$ vertices and $n$ edges, where $n$ is divisible by $6$. Each edge has a weight 阅读全文
posted @ 2023-02-18 16:19 onlyblues 阅读(112) 评论(0) 推荐(0)
摘要:D. Moscow Gorillas In winter, the inhabitants of the Moscow Zoo are very bored, in particular, it concerns gorillas. You decided to entertain them and 阅读全文
posted @ 2023-02-13 17:52 onlyblues 阅读(172) 评论(0) 推荐(0)
摘要:B. Fedya and Array For his birthday recently Fedya was given an array $a$ of $n$ integers arranged in a circle, For each pair of neighboring numbers ( 阅读全文
posted @ 2023-02-13 16:22 onlyblues 阅读(74) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
Web Analytics