上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 64 下一页
摘要: 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 阅读(261) 评论(0) 推荐(0)
摘要: 关押罪犯 $S$ 城现有两座监狱,一共关押着 $N$ 名罪犯,编号分别为 $1 \sim N$。 他们之间的关系自然也极不和谐。 很多罪犯之间甚至积怨已久,如果客观条件具备则随时可能爆发冲突。 我们用“怨气值”(一个正整数值)来表示某两名罪犯之间的仇恨程度,怨气值越大,则这两名罪犯之间的积怨越多。 阅读全文
posted @ 2023-03-17 20:07 onlyblues 阅读(64) 评论(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 阅读(56) 评论(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 阅读(145) 评论(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 阅读(270) 评论(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 阅读(79) 评论(0) 推荐(0)
摘要: 前言 由于解决这个问题的做法完全是我个人主观完成的,因此可能会存在很严重的错误,如果发现任何的问题与错误请在评论区进行提出指正。还有这个问题在数论中应该有个专业的名词,如果有人知道的话也麻烦在评论区留言告知。 正文 本文尝试解决的问题为:对于 $\forall x \in \mathbb{Z}$ 多 阅读全文
posted @ 2023-03-14 15:20 onlyblues 阅读(84) 评论(0) 推荐(0)
摘要: 最短路之和 给定一个 $n$ 个点的加权有向图,点的编号为 $1 \sim n$。 图中任意两点之间都有两条方向相反的边连接两点。 从点 $i$ 到点 $j$ 的边的长度为 $a_{ij}$。 给定一个 $1 \sim n$ 的排列 $x_1,x_2, \ldots ,x_n$。 你需要对该图依次进 阅读全文
posted @ 2023-03-12 17:53 onlyblues 阅读(80) 评论(0) 推荐(0)
摘要: 聪明的燕姿 城市中人们总是拿着号码牌,不停寻找,不断匹配,可是谁也不知道自己等的那个人是谁。 可是燕姿不一样,燕姿知道自己等的人是谁,因为燕姿数学学得好! 燕姿发现了一个神奇的算法:假设自己的号码牌上写着数字 $S$,那么自己等的人手上的号码牌数字的所有正约数之和必定等于 $S$。 所以燕姿总是拿着 阅读全文
posted @ 2023-03-11 15:54 onlyblues 阅读(135) 评论(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 阅读(353) 评论(2) 推荐(0)
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 64 下一页
Web Analytics