#A. B - Perfect String

    传统题 1000ms 256MiB

B - Perfect String

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

B - Perfect String

Score : $200$ points

Problem Statement

Let us call a string consisting of uppercase and lowercase English alphabets a wonderful string if all of the following conditions are satisfied:

  • The string contains an uppercase English alphabet.
  • The string contains a lowercase English alphabet.
  • All characters in the string are pairwise distinct.

For example, AtCoder and Aa are wonderful strings, while atcoder and Perfect are not.

Given a string $S$, determine if $S$ is a wonderful string.

Constraints

  • $1 \le |S| \le 100$
  • $S$ is a string consisting of uppercase and lowercase English alphabets.

Input

Input is given from Standard Input in the following format:

SS

Output

If $S$ is a wonderful string, print Yes; otherwise, print No.


AtCoder
Yes

AtCoder is a wonderful string because it contains an uppercase English alphabet, a lowercase English alphabet, and all characters in the string are pairwise distinct.


Aa
Yes

Note that A and a are different characters. This string is a wonderful string.


atcoder
No

It is not a wonderful string because it does not contain an uppercase English alphabet.


Perfect
No

It is not a wonderful string because the $2$-nd and the $5$-th characters are the same.

2024暑假入门组刷题营第三期(十一)

未参加
状态
已结束
规则
IOI
题目
8
开始于
2024-7-19 13:00
结束于
2024-7-19 15:00
持续时间
2 小时
主持人
参赛人数
9