CF1703A.YES or YES?
入门
通过率:0%
时间限制:1.00s
内存限制:256MB
AC君温馨提醒
该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
There is a string s of length 3, consisting of uppercase and lowercase English letters. Check if it is equal to "YES" (without quotes), where each letter can be in any case. For example, "yES", "Yes", "yes" are all allowable.
有一个长度为 3 的字符串 s,由大小写英文字母组成。检查它是否等于 "YES"(不带引号),其中每个字母可以是任意大小写。例如,"yES"、"Yes"、"yes" 均为合法情况。
输入格式
The first line of the input contains an integer t (1≤t≤103) — the number of testcases.
The description of each test consists of one line containing one string s consisting of three characters. Each character of s is either an uppercase or lowercase English letter.
输入的第一行包含一个整数 t(1≤t≤103)—— 测试用例的数量。
每个测试用例的描述由一行组成,该行包含一个长度为三的字符串 s。字符串 s 中的每个字符均为大写或小写英文字母。
输出格式
For each test case, output "YES" (without quotes) if s satisfies the condition, and "NO" (without quotes) otherwise.
You can output "YES" and "NO" in any case (for example, strings "yES", "yes" and "Yes" will be recognized as a positive response).
对于每个测试用例,如果字符串 s 满足条件,则输出 "YES"(不带引号);否则输出 "NO"(不带引号)。
你可以以任意大小写形式输出 "YES" 和 "NO"(例如,字符串 "yES"、"yes" 和 "Yes" 均会被识别为肯定回答)。
输入输出样例
输入#1
10 YES yES yes Yes YeS Noo orZ yEz Yas XES
输出#1
YES YES YES YES YES NO NO NO NO NO
说明/提示
The first five test cases contain the strings "YES", "yES", "yes", "Yes", "YeS". All of these are equal to "YES", where each character is either uppercase or lowercase.
前五个测试用例包含字符串 "YES"、"yES"、"yes"、"Yes" 和 "YeS"。所有这些字符串都等于 "YES",其中每个字符均为大写或小写。
输入解题思路,AI测评打分。不知道怎么写?