摘要: 题目 Musicians of a popular band "Flayer" have announced that they are going to "make their exit" with a world tour. Of course, they will visit Berland 阅读全文
posted @ 2020-05-27 13:59 ghosh 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 传递 题目 我们称一个有向图G是 传递的 ,当且仅当对任意三个不同的顶点a,,若G中有 一条边从a到b且有一条边从b到c ,则G中同样有一条边从a到c。 我们称图G是一个 竞赛图 ,当且仅当它是一个有向图且它的基图是完全图。换句 话说,将完全图每条边定向将得到一个竞赛图。 下图展示的是一个有4个顶点 阅读全文
posted @ 2020-05-20 12:04 ghosh 阅读(119) 评论(0) 推荐(0) 编辑
摘要: [USACO07JAN]Tallest Cow S 题目描述: FarmerJohn 有n头牛,它们按顺序排成一列。 FarmerJohn 只知道其中最高的奶牛的序号及它的高度,其他奶牛的高度都是未知的。现在 FarmerJohn 手上有R R 条信息,每条信息上有两头奶牛的序号(a a 和b b 阅读全文
posted @ 2020-05-16 13:21 ghosh 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 题目 Some time ago Mister B detected a strange signal from the space, which he started to study. After some transformation the signal turned out to be a 阅读全文
posted @ 2020-05-09 17:50 ghosh 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 题目 最大的异或 B君和G君聊天的时候想到了如下的问题。 给定自然数l和r ,选取2个整数x,y满足l include using namespace std; long long l, r; long long sum; int main(){ int T; scanf("%d", &T); wh 阅读全文
posted @ 2020-05-06 17:38 ghosh 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Although Inzane successfully found his beloved bone, Zane, his owner, has yet to return. To search for Zane, he would need a lot of money, of which he 阅读全文
posted @ 2020-04-30 15:59 ghosh 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 题面描述 Farmer John正在一个新的销售区域对他的牛奶销售方案进行调查。他想把牛奶送到T个城镇 (1 File Name: e.cpp Author: LiuGeXian Mail: 1019630230@qq.com Created Time: 2020/4/29 18:50:59 / i 阅读全文
posted @ 2020-04-30 13:28 ghosh 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 题目 Monocarp and Bicarp live in Berland, where every bus ticket consists of nn digits (nn is an even number). During the evening walk Monocarp and Bica 阅读全文
posted @ 2020-04-24 07:21 ghosh 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 题目 Slastyona和她的忠实狗狗普什克正在玩一个毫无意义但是很有趣的游戏。游戏包括多个回合。 它的规则非常简单:先选择一个自然数k。然后,谁说(或吠)的比另一个快就会赢得一局。胜利者的得分在那之后会乘以k的平方,而输了的人的得分就只能乘以k。比赛开始时,Slastyona和PurSok都有一个 阅读全文
posted @ 2020-04-22 12:07 ghosh 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 题目描述 本题中,我们将用符号 \lfloor c \rfloor⌊c⌋ 表示对 cc 向下取整,例如:\lfloor 3.0 \rfloor = \lfloor 3.1 \rfloor = \lfloor 3.9 \rfloor = 3⌊3.0⌋=⌊3.1⌋=⌊3.9⌋=3。 蛐蛐国最近蚯蚓成灾了 阅读全文
posted @ 2020-04-17 12:19 ghosh 阅读(117) 评论(0) 推荐(0) 编辑
莫挨老子!