103740: [Atcoder]ABC374 A - Takahashi san 2
Memory Limit:256 MB
Time Limit:2 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
Score : $100$ points
Problem Statement
KEYENCE has a culture of addressing everyone with the suffix "-san," regardless of roles, age, or positions.
You are given a string $S$ consisting of lowercase English letters.
If $S$ ends with san
, print Yes
; otherwise, print No
.
Constraints
- $S$ is a string of length between $4$ and $30$, inclusive, consisting of lowercase English letters.
Input
The input is given from Standard Input in the following format:
$S$
Output
If $S$ ends with san
, print Yes
; otherwise, print No
.
Sample Input 1
takahashisan
Sample Output 1
Yes
The string $S=$ takahashisan
ends with san
, so print Yes
.
Sample Input 2
aokikun
Sample Output 2
No
The string $S=$ aokikun
does not end with san
, so print No
.
Output
得分:$100$ 分
问题陈述
KEYENCE有一种文化,即不论角色、年龄或职位如何,都使用后缀“-san”来称呼每个人。
给你一个由小写英文字母组成的字符串 $S$。
如果 $S$ 以 san
结尾,打印 Yes
;否则,打印 No
。
约束条件
- $S$ 是一个长度在 $4$ 到 $30$ 之间(包括)的字符串,由小写英文字母组成。
输入
输入从标准输入以下格式给出:
$S$
输出
如果 $S$ 以 san
结尾,打印 Yes
;否则,打印 No
。
示例输入 1
takahashisan
示例输出 1
Yes
字符串 $S=$ takahashisan
以 san
结尾,所以打印 Yes
。
示例输入 2
aokikun
示例输出 2
No
字符串 $S=$ aokikun
不以 san
结尾,所以打印 No
。