摘要: "更好的阅读体验" Portal Portal1: "Codeforces" Portal2: "Luogu" Description Recently a Golden Circle of Beetlovers was found in Byteland. It is a circle route 阅读全文
posted @ 2019-09-23 20:19 XiaoHuang666 阅读(307) 评论(0) 推荐(0) 编辑
摘要: "更好的阅读体验" Portal Portal1: "Codeforces" Portal2: "Luogu" Description Recently Lynyrd and Skynyrd went to a shop where Lynyrd bought a permutation $p$ o 阅读全文
posted @ 2019-09-23 20:19 XiaoHuang666 阅读(247) 评论(0) 推荐(0) 编辑
摘要: "更好的阅读体验" Portal Portal1: "Luogu" Description 小$K$在$\mathrm MC$里面建立很多很多的农场,总共$n$个,以至于他自己都忘记了每个农场中种植作物的具体数量了,他只记得一些含糊的信息(共$m$个),以下列三种形式描述: + 农场$a$比农场$b 阅读全文
posted @ 2019-08-24 16:15 XiaoHuang666 阅读(140) 评论(0) 推荐(0) 编辑
摘要: "更好的阅读体验" Portal Portal1: "Luogu" Portal2: "LibreOJ" Description 在有向图$\mathrm G$中,每条边的长度均为$1$,现给定起点和终点,请你在图中找一条从起点到终点的路径,该路径满足以下条件: 1. 路径上的所有点的出边所指向的点 阅读全文
posted @ 2019-08-24 16:12 XiaoHuang666 阅读(124) 评论(0) 推荐(0) 编辑
摘要: "更好的阅读体验" Portal Portal1: "Luogu" Portal2: "LibreOJ" Description 无向连通图$\mathrm G$有$n$个点,$n 1$条边。点从$1$到$n$依次编号,编号为$i$的点的权值为$W_i$ ,每条边的长度均为$1$。图上两点$(u, 阅读全文
posted @ 2019-08-22 10:39 XiaoHuang666 阅读(153) 评论(0) 推荐(0) 编辑
摘要: "更好的阅读体验" Portal Portal1: "Codeforces" Portal2: "Luogu" Description You are given a complete undirected graph. For each pair of vertices you are given 阅读全文
posted @ 2019-08-12 21:13 XiaoHuang666 阅读(216) 评论(0) 推荐(0) 编辑
摘要: "更好的阅读体验" Portal Portal1: "Luogu" Description 老师想从$N$名学生中选$M$人当学霸,但有$K$对人实力相当,如果实力相当的人中,一部分被选上,另一部分没有,同学们就会抗议。所以老师想请你帮他求出他该选多少学霸,才能既不让同学们抗议,又与原来的$M$尽可 阅读全文
posted @ 2019-08-07 21:38 XiaoHuang666 阅读(141) 评论(0) 推荐(0) 编辑
摘要: "更好的阅读体验" Portal Portal1: "Luogu" Portal2: "LibreOJ" Portal3: "Vijos" Description 在大学期间,经常需要租借教室。大到院系举办活动,小到学习小组自习讨论,都需要向学校申请借教室。教室的大小功能不同,借教室人的身份不同,借 阅读全文
posted @ 2019-08-07 21:36 XiaoHuang666 阅读(152) 评论(0) 推荐(0) 编辑
摘要: "更好的阅读体验" Portal Portal1: "Codeforces" Portal2: "Luogu" Description In one very old text file there was written Great Wisdom. This Wisdom was so Great 阅读全文
posted @ 2019-08-07 21:34 XiaoHuang666 阅读(195) 评论(0) 推荐(0) 编辑
摘要: "更好的阅读体验" Portal Portal1: "Codeforces" Portal2: "Luogu" Description Petya loves lucky numbers. Everybody knows that lucky numbers are positive integer 阅读全文
posted @ 2019-08-07 21:32 XiaoHuang666 阅读(220) 评论(0) 推荐(0) 编辑