文件名称:zhanghaochongming
介绍说明--下载内容来自于网络,使用问题请自行百度
题目描述
网站不允许两个用户拥有相同的账号名,因此需要一个账户重名查询机制。 已知某网站已经注册用户的账号名为:Alice,Bob,Lucky,Kitty,Tim,Lucy,Jim,Helena。 输入一个账号名,判断账号名是否可用。
输入格式
每行的输入数据是一个账号名,账号名长度< 50。 若输入“END”则结束程序。
输出格式
账号不重名的输出”YES”,否则输出“NO”
输入样例
Alice
Woods
END
输出样例
NO
Yes-Title Descr iption
The site does not allow two users to have the same account name, so an account re-query mechanism is required. Alice, Bob, Lucky, Kitty, Tim, Lucy, Jim, Helena. Enter an account name to determine whether the account name is available.
Enter the format
Each line of input data is an account name, account name length < 50. If END is entered, the program ends.
Output format
Account does not re-name the output YES , otherwise the output NO
Enter the sample
Alice
Woods
END
Output sample
NO
Yes
网站不允许两个用户拥有相同的账号名,因此需要一个账户重名查询机制。 已知某网站已经注册用户的账号名为:Alice,Bob,Lucky,Kitty,Tim,Lucy,Jim,Helena。 输入一个账号名,判断账号名是否可用。
输入格式
每行的输入数据是一个账号名,账号名长度< 50。 若输入“END”则结束程序。
输出格式
账号不重名的输出”YES”,否则输出“NO”
输入样例
Alice
Woods
END
输出样例
NO
Yes-Title Descr iption
The site does not allow two users to have the same account name, so an account re-query mechanism is required. Alice, Bob, Lucky, Kitty, Tim, Lucy, Jim, Helena. Enter an account name to determine whether the account name is available.
Enter the format
Each line of input data is an account name, account name length < 50. If END is entered, the program ends.
Output format
Account does not re-name the output YES , otherwise the output NO
Enter the sample
Alice
Woods
END
Output sample
NO
Yes
(系统自动生成,下载前可以参看下载内容)
下载文件列表
shuzupaixu.o
zhanghaochongming.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.