文件名称:train4
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- 刘*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
给定一个非中文的文本文件以及一系列查询单词,请输出所查询单词的出现次数, 输入为当前目录下非中文的文本文件input.in,其格式如下:
第一行为一个非负整数 T ,表示需查询文本的行数,紧随其后是 T 行非中文文本,为查询单词所在的文本行。其后为一个数字 M ,表示查询单词的个数,随后有 M 行单个单词,为所查询的单词。输出到当前目录下的文件output.txt,对每一个查询单词,输出其在查询文本中出现的次数,若没有出现,则输出 0 。输出格式为:
查询单词 次数 -Given a non-Chinese text files, as well as a series of query words, the output of the query word occurrences, input for non-Chinese text file input.in of the current directory, the format is as follows: the first acts of a non-negative integer T that need to query the number of lines of text, followed by non-Chinese text of the T line, the line of text as the query word. Followed by a number M, the number of query words, followed by M lines a single word for the query word. Output to the file output.txt in the current directory, output in the query text, the number of occurrences of each query word, If it does not, then output 0. The output format: the number of query words
第一行为一个非负整数 T ,表示需查询文本的行数,紧随其后是 T 行非中文文本,为查询单词所在的文本行。其后为一个数字 M ,表示查询单词的个数,随后有 M 行单个单词,为所查询的单词。输出到当前目录下的文件output.txt,对每一个查询单词,输出其在查询文本中出现的次数,若没有出现,则输出 0 。输出格式为:
查询单词 次数 -Given a non-Chinese text files, as well as a series of query words, the output of the query word occurrences, input for non-Chinese text file input.in of the current directory, the format is as follows: the first acts of a non-negative integer T that need to query the number of lines of text, followed by non-Chinese text of the T line, the line of text as the query word. Followed by a number M, the number of query words, followed by M lines a single word for the query word. Output to the file output.txt in the current directory, output in the query text, the number of occurrences of each query word, If it does not, then output 0. The output format: the number of query words
(系统自动生成,下载前可以参看下载内容)
下载文件列表
train4.java