SOMPO HD プログラミングコンテスト2021(AtCoder Beginner Contest 192)
翻译中…
Problem Statement
翻译中…
We call a string hard-to-read when its odd-positioned ($1$-st, $3$-rd, $5$-th, ... from the beginning) characters are all lowercase English letters and its even-positioned characters ($2$-nd, $4$-th, $6$-th, ... from the beginning) are all uppercase English letters.
翻译中…
Determine whether a string $S$ is hard-to-read.
翻译中…
Constraints
翻译中…
$S$consists of uppercase and lowercase English letters.- The length of
$S$is between$1$and$1000$(inclusive).
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
S
翻译中…
Output
翻译中…
If $S$ is hard-to-read, print Yes; otherwise, print No.
翻译中…
样例
Input #1
dIfFiCuLt
Output #1
Yes
The odd-positioned characters are all lowercase and the even-positioned characters are all uppercase, so it is hard-to-read.
Input #2
eASY
Output #2
No
The $3$-rd character is not lowercase, so it is not hard-to-read.
Input #3
a
Output #3
Yes
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。