文件名称:Thousand-Character-Classic
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
任务
请编写一个程序,从输入中读取一篇中文文章,并统计出该文章中 ASCII 字符以外的重复出现的每一个字重复出现的次数。
文章使用 UTF-8 编码,可能会出现任何可以用 UTF-8 编码表示的字符(不限于中文)。
文章中所有的字符在 UCS-2 能够表示的范围内,即字符的 Unicode 值用两个字节就可以表示。
输入
一篇文章,总字数不限、每行字符数不限。每个字重复出现的次数不超过 60000 次。
输出
按照 Unicode 编码从小到大的顺序,输出文章中 ASCII 字符以外的每一个重复出现过的字重复出现的次数。每行一个,首先输出该字符(以 UTF-8 编码),然后输出一个空格和该字符的出现的次数。
如果文章中没有出现重复的字,则输出“No repeat!”。-The task is to write a program to read a Chinese article, and the statistics of the number of repetitions of the article other than ASCII characters repeat each word from the input. The article uses UTF-8 encoding, may be any character that can be represented using UTF-8 encoding (not limited to the Chinese). Article, all of the characters in the UCS-2 can be represented within the Unicode value of the character using two bytes can be expressed. Enter the article, the total number of words is not limited to, the limit on the number of characters per line. Each word the number of repetitions is not more than 60,000 times. The output Unicode encoding small to large order output articles outside the ASCII character repeated the word repeated occurrences. One per line, the first output of the characters (UTF-8 encoding), and then output the number of occurrences of a space and the character. If the article does not appear to repeat the word, then output " No repeat!" .
请编写一个程序,从输入中读取一篇中文文章,并统计出该文章中 ASCII 字符以外的重复出现的每一个字重复出现的次数。
文章使用 UTF-8 编码,可能会出现任何可以用 UTF-8 编码表示的字符(不限于中文)。
文章中所有的字符在 UCS-2 能够表示的范围内,即字符的 Unicode 值用两个字节就可以表示。
输入
一篇文章,总字数不限、每行字符数不限。每个字重复出现的次数不超过 60000 次。
输出
按照 Unicode 编码从小到大的顺序,输出文章中 ASCII 字符以外的每一个重复出现过的字重复出现的次数。每行一个,首先输出该字符(以 UTF-8 编码),然后输出一个空格和该字符的出现的次数。
如果文章中没有出现重复的字,则输出“No repeat!”。-The task is to write a program to read a Chinese article, and the statistics of the number of repetitions of the article other than ASCII characters repeat each word from the input. The article uses UTF-8 encoding, may be any character that can be represented using UTF-8 encoding (not limited to the Chinese). Article, all of the characters in the UCS-2 can be represented within the Unicode value of the character using two bytes can be expressed. Enter the article, the total number of words is not limited to, the limit on the number of characters per line. Each word the number of repetitions is not more than 60,000 times. The output Unicode encoding small to large order output articles outside the ASCII character repeated the word repeated occurrences. One per line, the first output of the characters (UTF-8 encoding), and then output the number of occurrences of a space and the character. If the article does not appear to repeat the word, then output " No repeat!" .
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Thousand Character Classic/千字文-寻找汉字.cpp
Thousand Character Classic
Thousand Character Classic
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.