文件名称:ex2
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 213kb
- 下载次数:
- 0次
- 提 供 者:
- zhang j*******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
化为实训题目 1002
在中国,形容夫妻恩爱的词汇中,大家用的比较多的就是“夫妻相”。所谓“夫妻相”,就是两个人看上去比较般配,长相、身材等某些方面有一定的相似度。本题则另辟蹊径,从人的姓名维度,以字母重复个数来寻找最具“夫妻相”的人。题目中预先给定一组女士的姓名拼音。输入男士的姓名拼音(拼音中间可以有空格,字母全部小写),依预先给定姓名拼音的先后遍历所有姓名,输出字母重复数最多的女士姓名。
规则1:如果字母重复数最多的女士有多位相同,则以最先匹配的女士做为最具“夫妻相”的人选。
规则2:人名中的相同字母,按重复一次处理。例如:li ling 与li lei 重复的字符个数为2,而不是4。
预置女士名单(先后循序必须保证):
"wang fei",
"zhang man yu",
"zhang zhi yi",
"li li",
"li xiao man",
"li yu cun",
"yang ni",
"xiao tong",
"li lei",
"zhang san"
输入
输入一个男士姓名
输出
输出最具“夫妻相”的女士姓名
样例输入
li si
样例输出
li li-In China, to describe the vocabulary of the loving husband and wife, we used a relatively large number of "husband and wife. The so-called "husband and wife phase", that is, two people look
A good fit, looks, body, and some have a certain similarity. This question another way, from the dimensions of the person s name with the letter repeated the number to
Look for most couples phase ". A group of women s full name is the title given in advance. Enter the names of the men alphabet (Pinyin, the middle can free
Grid, letters, all lowercase), 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 the number of characters is 2 instead of 4.
The preset Ms
在中国,形容夫妻恩爱的词汇中,大家用的比较多的就是“夫妻相”。所谓“夫妻相”,就是两个人看上去比较般配,长相、身材等某些方面有一定的相似度。本题则另辟蹊径,从人的姓名维度,以字母重复个数来寻找最具“夫妻相”的人。题目中预先给定一组女士的姓名拼音。输入男士的姓名拼音(拼音中间可以有空格,字母全部小写),依预先给定姓名拼音的先后遍历所有姓名,输出字母重复数最多的女士姓名。
规则1:如果字母重复数最多的女士有多位相同,则以最先匹配的女士做为最具“夫妻相”的人选。
规则2:人名中的相同字母,按重复一次处理。例如:li ling 与li lei 重复的字符个数为2,而不是4。
预置女士名单(先后循序必须保证):
"wang fei",
"zhang man yu",
"zhang zhi yi",
"li li",
"li xiao man",
"li yu cun",
"yang ni",
"xiao tong",
"li lei",
"zhang san"
输入
输入一个男士姓名
输出
输出最具“夫妻相”的女士姓名
样例输入
li si
样例输出
li li-In China, to describe the vocabulary of the loving husband and wife, we used a relatively large number of "husband and wife. The so-called "husband and wife phase", that is, two people look
A good fit, looks, body, and some have a certain similarity. This question another way, from the dimensions of the person s name with the letter repeated the number to
Look for most couples phase ". A group of women s full name is the title given in advance. Enter the names of the men alphabet (Pinyin, the middle can free
Grid, letters, all lowercase), 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 the number of characters is 2 instead of 4.
The preset Ms
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ex2\Debug\ex2.exe
...\.....\ex2.ilk
...\.....\ex2.pdb
...\ex2\Debug\BuildLog.htm
...\...\.....\ex2.exe.embed.manifest
...\...\.....\ex2.exe.embed.manifest.res
...\...\.....\ex2.exe.intermediate.manifest
...\...\.....\main.obj
...\...\.....\mt.dep
...\...\.....\vc90.idb
...\...\.....\vc90.pdb
...\...\ex2.vcproj
...\...\ex2.vcproj.NWPU-PC.Administrator.user
...\...\main.cpp
...\ex2.ncb
...\ex2.sln
...\ex2.suo
...\...\Debug
...\Debug
...\ex2
ex2
...\.....\ex2.ilk
...\.....\ex2.pdb
...\ex2\Debug\BuildLog.htm
...\...\.....\ex2.exe.embed.manifest
...\...\.....\ex2.exe.embed.manifest.res
...\...\.....\ex2.exe.intermediate.manifest
...\...\.....\main.obj
...\...\.....\mt.dep
...\...\.....\vc90.idb
...\...\.....\vc90.pdb
...\...\ex2.vcproj
...\...\ex2.vcproj.NWPU-PC.Administrator.user
...\...\main.cpp
...\ex2.ncb
...\ex2.sln
...\ex2.suo
...\...\Debug
...\Debug
...\ex2
ex2