上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 53 下一页
摘要: 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 阅读(28) 评论(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 阅读(107) 评论(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 阅读(205) 评论(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 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 前言 由于解决这个问题的做法完全是我个人主观完成的,因此可能会存在很严重的错误,如果发现任何的问题与错误请在评论区进行提出指正。还有这个问题在数论中应该有个专业的名词,如果有人知道的话也麻烦在评论区留言告知。 正文 本文尝试解决的问题为:对于 $\forall x \in \mathbb{Z}$ 多 阅读全文
posted @ 2023-03-14 15:20 onlyblues 阅读(38) 评论(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 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 聪明的燕姿 城市中人们总是拿着号码牌,不停寻找,不断匹配,可是谁也不知道自己等的那个人是谁。 可是燕姿不一样,燕姿知道自己等的人是谁,因为燕姿数学学得好! 燕姿发现了一个神奇的算法:假设自己的号码牌上写着数字 $S$,那么自己等的人手上的号码牌数字的所有正约数之和必定等于 $S$。 所以燕姿总是拿着 阅读全文
posted @ 2023-03-11 15:54 onlyblues 阅读(82) 评论(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 阅读(271) 评论(2) 推荐(0) 编辑
摘要: 城市通电 平面上遍布着 $n$ 座城市,编号 $1 \sim n$。 第 $i$ 座城市的位置坐标为 $(x_i,y_i)$。 不同城市的位置有可能重合。 现在要通过建立发电站和搭建电线的方式给每座城市都通电。 一个城市如果建有发电站,或者通过电线直接或间接的与建有发电站的城市保持连通,则该城市通电 阅读全文
posted @ 2023-03-09 14:36 onlyblues 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 构造有向无环图 给定一个由 $n$ 个点和 $m$ 条边构成的图。 不保证给定的图是连通的。 图中的一部分边的方向已经确定,你不能改变它们的方向。 剩下的边还未确定方向,你需要为每一条还未确定方向的边指定方向。 你需要保证在确定所有边的方向后,生成的图是一个有向无环图(即所有边都是有向的且没有有向环 阅读全文
posted @ 2023-03-08 20:01 onlyblues 阅读(144) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 53 下一页
Web Analytics