「EZEC-14」浴眼盯真

Luogu
IDLGP9459
Time1000ms
Memory128MB
DifficultyP1
模拟洛谷原创O2优化洛谷月赛
dXqwq 定义一个字符串四元组 $(a,b,c,d)$ 是“浴眼盯真”的,当且仅当: - $a,b$ 的首字母均为 $\texttt{y}$。 - $c$ 恰好等于 $\texttt{ding}$。 - $d$ 恰好等于 $\texttt{zhen}$。 给定四个用空格分隔的字符串 $a,b,c,d$,保证其只包含小写英文字母,你需要判断 $(a,b,c,d)$ 是否是“浴眼盯真”的。 ## Input 本题有多组测试数据。 第一行输入一个整数 $T$,代表测试数据组数。 接下来 $T$ 行,每行输入四个用空格分隔的字符串 $a,b,c,d$。 ## Output 对于每组数据输出一行。 如果 $(a,b,c,d)$ 是“浴眼盯真”的,输出 ``Yes``,否则输出 ``No``。 [samples] ## Background 验题人提示:本题数据在 windows 下生成,即换行符为 ``\r\n``。 ## Note **【样例解释】** 前两组测试数据满足全部要求。 第三,五组测试数据不满足第一条要求。 第四,五组测试数据不满足第二,三条要求。 **【数据范围】** **本题采用捆绑测试。** - Subtask 1(50 pts):保证输入的所有字符串长度均为 $4$。 - Subtask 2(50 pts):无特殊限制。 对于 $100\%$ 的数据,$1\leq T\leq 100$,每个字符串长度不超过 $10$。 ![](https://cdn.luogu.com.cn/upload/image_hosting/qvr810ap.png)
Samples
Input #1
5
yi yan ding zhen
yu yan ding zhen
zheng tai ding zhen
yin yang guai qi
you xiu su zhi
Output #1
Yes
Yes
No
No
No
API Response (JSON)
{
  "problem": {
    "name": "「EZEC-14」浴眼盯真",
    "description": {
      "content": "dXqwq 定义一个字符串四元组 $(a,b,c,d)$ 是“浴眼盯真”的,当且仅当: - $a,b$ 的首字母均为 $\\texttt{y}$。 - $c$ 恰好等于 $\\texttt{ding}$。 - $d$ 恰好等于 $\\texttt{zhen}$。 给定四个用空格分隔的字符串 $a,b,c,d$,保证其只包含小写英文字母,你需要判断 $(a,b,c,d)$ 是否是“浴眼盯真”的。",
      "description_type": "Markdown"
    },
    "platform": "Luogu",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 131072
    },
    "difficulty": {
      "LuoguStyle": "P1"
    },
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "LGP9459"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "dXqwq 定义一个字符串四元组 $(a,b,c,d)$ 是“浴眼盯真”的,当且仅当:\n\n- $a,b$ 的首字母均为 $\\texttt{y}$。\n- $c$ 恰好等于 $\\texttt{ding}$。\n- $d$ 恰好等于 $\\texttt{zhen}$。\n\n给定四个用空格分隔的字符串 $a,b,c,d$,保证其只包含小写英文字母,你需要判断 $(a,b,c,d)$ 是否是“浴眼盯真”的。\n\n#...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments