摘要: $ \color{ 0066ff}{ 题目描述 }$ Georgia and Bob decide to play a self invented game. They draw a row of grids on paper, number the grids from left to right 阅读全文
posted @ 2019-03-07 19:18 olinr 阅读(121) 评论(0) 推荐(0) 编辑
摘要: $ \color{ 0066ff}{ 题目描述 }$ 两堆石子,GG和MM轮流取,每次在一堆石子中取另一堆石子的k$(k\ge1)$倍,不能操作的输 现在二人要玩n个这样的游戏,每回合每个人对每个未完成的游戏进行操作,胜负取决于最后一个游戏的结果 问能否先手必胜 $\color{ 0066ff}{输 阅读全文
posted @ 2019-03-07 18:00 olinr 阅读(160) 评论(0) 推荐(0) 编辑
摘要: $ \color{ 0066ff}{ 题目描述 }$ 一天,olinr 在 luogu.org 刷题,一点提交,等了一分钟之后,又蛙又替。 olinr 发动了他的绝招,说:“为啥啊???”此时 leigehhh 拿着 6 个 map 走了过来,说: “你这个维护一个破(pre)就行了啊” olinr 阅读全文
posted @ 2019-03-07 17:19 olinr 阅读(193) 评论(0) 推荐(0) 编辑
摘要: $ \color{ 0066ff}{ 题目描述 }$ 定义一个字符串的「独特值」为只属于该字符串的本质不同的非空子串的个数。如 "amy" 与 “tommy” 两个串,只属于 "amy" 的本质不同的子串为 "a" "am" "amy" 共 3 个。只属于 "tommy" 的本质不同的子串为 "t" 阅读全文
posted @ 2019-03-07 16:12 olinr 阅读(205) 评论(0) 推荐(0) 编辑
摘要: $ \color{ 0066ff}{ 题目描述 }$ 给定一棵无根树,边权都是1,请去掉一条边并加上一条新边,定义直径为最远的两个点的距离,请输出所有可能的新树的直径的最小值和最大值 $\color{ 0066ff}{输入格式}$ 第一行包含一个正整数n(3 define LL long long 阅读全文
posted @ 2019-03-07 15:09 olinr 阅读(328) 评论(0) 推荐(0) 编辑