CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 Windows编程

文件名称:ex2

介绍说明--下载内容来自于网络,使用问题请自行百度

化为实训题目 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
(系统自动生成,下载前可以参看下载内容)

下载文件列表

ex2/Debug/ex2.exe
ex2/Debug/ex2.ilk
ex2/Debug/ex2.pdb
ex2/ex2/Debug/BuildLog.htm
ex2/ex2/Debug/ex2.exe.embed.manifest
ex2/ex2/Debug/ex2.exe.embed.manifest.res
ex2/ex2/Debug/ex2.exe.intermediate.manifest
ex2/ex2/Debug/main.obj
ex2/ex2/Debug/mt.dep
ex2/ex2/Debug/vc90.idb
ex2/ex2/Debug/vc90.pdb
ex2/ex2/ex2.vcproj
ex2/ex2/ex2.vcproj.NWPU-PC.Administrator.user
ex2/ex2/main.cpp
ex2/ex2.ncb
ex2/ex2.sln
ex2/ex2.suo
ex2/ex2/Debug
ex2/Debug
ex2/ex2
ex2

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com