310159: CF1791A. Codeforces Checking

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Codeforces Checking

题意翻译

给定一个小写字母 $\texttt{c}$ ,检查它是否在字符串 $\texttt{codeforces}$ 中出现,是则输出 YES ,否则输出 NO。 BY @MarsTraveller

题目描述

Given a lowercase Latin character (letter), check if it appears in the string $ \texttt{codeforces} $ .

输入输出格式

输入格式


The first line of the input contains an integer $ t $ ( $ 1 \leq t \leq 26 $ ) — the number of test cases. The only line of each test case contains a character $ c $ — a single lowercase Latin character (letter).

输出格式


For each test case, output "YES" (without quotes) if $ c $ satisfies the condition, and "NO" (without quotes) otherwise. You can output the answer in any case (for example, the strings "yEs", "yes", "Yes" and "YES" will be recognized as a positive answer).

输入输出样例

输入样例 #1

10
a
b
c
d
e
f
g
h
i
j

输出样例 #1

NO
NO
YES
YES
YES
YES
NO
NO
NO
NO

Input

题意翻译

给定一个小写字母 $\texttt{c}$ ,检查它是否在字符串 $\texttt{codeforces}$ 中出现,是则输出 YES ,否则输出 NO。 BY @MarsTraveller

Output

题目大意:
给定一个小写字母 c,检查它是否在字符串 "codeforces" 中出现,如果出现则输出 "YES",否则输出 "NO"。

输入输出数据格式:
输入格式:
第一行包含一个整数 t (1 ≤ t ≤ 26) —— 测试用例的数量。
每个测试用例包含一行,有一个字符 c —— 一个小写拉丁字母(字母)。

输出格式:
对于每个测试用例,如果 c 满足条件,则输出 "YES"(不带引号),否则输出 "NO"(不带引号)。
答案的大小写可以任意(例如,"yEs"、"yes"、"Yes" 和 "YES" 都会被认为是肯定的答案)。

输入输出样例:
输入样例 #1:
```
10
a
b
c
d
e
f
g
h
i
j
```
输出样例 #1:
```
NO
NO
YES
YES
YES
YES
NO
NO
NO
NO
```题目大意: 给定一个小写字母 c,检查它是否在字符串 "codeforces" 中出现,如果出现则输出 "YES",否则输出 "NO"。 输入输出数据格式: 输入格式: 第一行包含一个整数 t (1 ≤ t ≤ 26) —— 测试用例的数量。 每个测试用例包含一行,有一个字符 c —— 一个小写拉丁字母(字母)。 输出格式: 对于每个测试用例,如果 c 满足条件,则输出 "YES"(不带引号),否则输出 "NO"(不带引号)。 答案的大小写可以任意(例如,"yEs"、"yes"、"Yes" 和 "YES" 都会被认为是肯定的答案)。 输入输出样例: 输入样例 #1: ``` 10 a b c d e f g h i j ``` 输出样例 #1: ``` NO NO YES YES YES YES NO NO NO NO ```

加入题单

算法标签: