文件名称:1002Husband-and-wife-
- 所属分类:
- 控制台(字符窗口)编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 680kb
- 下载次数:
- 0次
- 提 供 者:
- luy****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
在中国,形容夫妻恩爱的词汇中,大家用的比较多的就是“夫妻相”。所谓“夫妻相”,就是两个人看上去比较般配,长相、身材等某些方面有一定的相似度。本题则另辟蹊径,从人的姓名维度,以字母重复个数来寻找最具“夫妻相”的人。题目中预先给定一组女士的姓名拼音。输入男士的姓名拼音(拼音中间可以有空格,字母全部小写),依预先给定姓名拼音的先后遍历所有姓名,输出字母重复数最多的女士姓名。
规则1:如果字母重复数最多的女士有多位相同,则以最先匹配的女士做为最具“夫妻相”的人选。
规则2:人名中的相同字母,按重复一次处理。例如:li ling 与li lei 重复的字符个数为2,而不是4。
-In China, to describe the vocabulary of the loving husband and wife, we used a relatively large number of " husband and wife. Certain aspects of the so-called " husband and wife, two people seem a good fit, looks, body, etc. have a certain similarity. This question another way, the dimension of the person' s name with a letter repeating the number to find the most " couples" . A group of women' s full name is the title given in advance. Enter the name of the man' s alphabet (Pinyin middle spaces, all lowercase letters), according to a pre-given name spelling has to traverse all the names, the name of the lady repeated the number of output letters. Rule 1: If the letter repeated the largest number of ladies many of the same, while matching the first lady as the most " couples" candidate. Rule 2: the same letter in the names, according to repeat the process. For example: li ling li lei-repeat number of characters is 2 instead of 4.
规则1:如果字母重复数最多的女士有多位相同,则以最先匹配的女士做为最具“夫妻相”的人选。
规则2:人名中的相同字母,按重复一次处理。例如:li ling 与li lei 重复的字符个数为2,而不是4。
-In China, to describe the vocabulary of the loving husband and wife, we used a relatively large number of " husband and wife. Certain aspects of the so-called " husband and wife, two people seem a good fit, looks, body, etc. have a certain similarity. This question another way, the dimension of the person' s name with a letter repeating the number to find the most " couples" . A group of women' s full name is the title given in advance. Enter the name of the man' s alphabet (Pinyin middle spaces, all lowercase letters), according to a pre-given name spelling has to traverse all the names, the name of the lady repeated the number of output letters. Rule 1: If the letter repeated the largest number of ladies many of the same, while matching the first lady as the most " couples" candidate. Rule 2: the same letter in the names, according to repeat the process. For example: li ling li lei-repeat number of characters is 2 instead of 4.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
题2\Cpp1.cpp
...\Cpp1.dsp
...\Cpp1.dsw
...\Cpp1.ncb
...\Cpp1.opt
...\Cpp1.plg
...\Debug\Cpp1.exe
...\.....\Cpp1.ilk
...\.....\Cpp1.obj
...\.....\Cpp1.pch
...\.....\Cpp1.pdb
...\.....\vc60.idb
...\.....\vc60.pdb
...\Debug
题2
...\Cpp1.dsp
...\Cpp1.dsw
...\Cpp1.ncb
...\Cpp1.opt
...\Cpp1.plg
...\Debug\Cpp1.exe
...\.....\Cpp1.ilk
...\.....\Cpp1.obj
...\.....\Cpp1.pch
...\.....\Cpp1.pdb
...\.....\vc60.idb
...\.....\vc60.pdb
...\Debug
题2