摘要: Description 某人读论文,一篇论文是由许多单词组成。但他发现一个单词会在论文中出现很多次,现在想知道每个单词分别在论文中出现多少次。 某人读论文,一篇论文是由许多单词组成。但他发现一个单词会在论文中出现很多次,现在想知道每个单词分别在论文中出现多少次。 Input 第一个一个整数N,表示有 阅读全文
posted @ 2018-02-10 17:24 Z-Y-Y-S 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 题目描述 有$N$ 个由小写字母组成的模式串以及一个文本串$T$ 。每个模式串可能会在文本串中出现多次。你需要找出哪些模式串在文本串$T$ 中出现的次数最多。 输入输出格式 输入格式: 输入含多组数据。 每组数据的第一行为一个正整数$N$ ,表示共有$N$ 个模式串,$1 \leq N \leq 1 阅读全文
posted @ 2018-02-10 15:01 Z-Y-Y-S 阅读(238) 评论(0) 推荐(1) 编辑
摘要: Harry and Sally were playing games at Christmas Eve. They drew some Christmas trees on a paper: Then they took turns to cut a branch of a tree, and re 阅读全文
posted @ 2018-02-10 12:07 Z-Y-Y-S 阅读(231) 评论(0) 推荐(0) 编辑
摘要: Problem Description Alice and Bob want to play an interesting game on a tree.Given is a tree on N vertices, The vertices are numbered from 1 to N. ver 阅读全文
posted @ 2018-02-10 08:09 Z-Y-Y-S 阅读(293) 评论(0) 推荐(0) 编辑