摘要: [HNOI2018]道路 题目描述: W 国的交通呈一棵树的形状。W 国一共有 \(n-1\) 个城市和 \(n\) 个乡村, 其中城市从 \(1\) 到 \(n-1\) 编号,乡村从 \(1\) 到 \(n\) 编号,且 \(1\) 号城市是首都。 道路都是单向的,本题中我们只考虑从乡村通往首都的 阅读全文
posted @ 2018-04-20 23:12 remoon 阅读(287) 评论(0) 推荐(0) 编辑
摘要: SPOJ694 DISUBSTR 题目描述: Given a string, we need to find the total number of its distinct substrings. 输入格式: T- number of test cases. T<=20; Each test ca 阅读全文
posted @ 2018-04-20 21:03 remoon 阅读(109) 评论(0) 推荐(0) 编辑
摘要: bzoj 2553 [BJOI2011]禁忌 题目描述: Magic Land上的人们总是提起那个传说:他们的祖先John在那个东方岛屿帮助Koishi与其姐姐Satori最终战平。而后,Koishi恢复了读心的能力…… 如今,在John已经成为传说的时代,再次造访那座岛屿的人们却发现Koishi遇 阅读全文
posted @ 2018-04-20 00:36 remoon 阅读(215) 评论(0) 推荐(0) 编辑