文件名称:1002Husband-and-wife-
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:680.19kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
在中国,形容夫妻恩爱的词汇中,大家用的比较多的就是“夫妻相”。所谓“夫妻相”,就是两个人看上去比较般配,长相、身材等某些方面有一定的相似度。本题则另辟蹊径,从人的姓名维度,以字母重复个数来寻找最具“夫妻相”的人。题目中预先给定一组女士的姓名拼音。输入男士的姓名拼音(拼音中间可以有空格,字母全部小写),依预先给定姓名拼音的先后遍历所有姓名,输出字母重复数最多的女士姓名。
规则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
题2/Cpp1.dsp
题2/Cpp1.dsw
题2/Cpp1.ncb
题2/Cpp1.opt
题2/Cpp1.plg
题2/Debug/Cpp1.exe
题2/Debug/Cpp1.ilk
题2/Debug/Cpp1.obj
题2/Debug/Cpp1.pch
题2/Debug/Cpp1.pdb
题2/Debug/vc60.idb
题2/Debug/vc60.pdb
题2/Debug
题2
题2/Cpp1.dsp
题2/Cpp1.dsw
题2/Cpp1.ncb
题2/Cpp1.opt
题2/Cpp1.plg
题2/Debug/Cpp1.exe
题2/Debug/Cpp1.ilk
题2/Debug/Cpp1.obj
题2/Debug/Cpp1.pch
题2/Debug/Cpp1.pdb
题2/Debug/vc60.idb
题2/Debug/vc60.pdb
题2/Debug
题2
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.