B - Beautiful Strings
Editorial
/


Time Limit: 2 sec / Memory Limit: 256 MB
配点 : 点
問題文
を、英小文字のみからなる文字列とします。 が以下の条件を満たすならば、 を美しい文字列と呼ぶことにします。
- どの英小文字も、 中に偶数回出現する。
文字列 が与えられます。 が美しい文字列かどうか判定してください。
制約
- は英小文字 (
a
-z
) のみからなる文字列である
入力
入力は以下の形式で標準入力から与えられる。
出力
が美しい文字列ならば Yes
を、それ以外の場合は No
を出力せよ。
入力例 1Copy
Copy
abaccaba
出力例 1Copy
Copy
Yes
a
が 回、b
が 回、c
が 回、それ以外の英小文字が 回出現します。
入力例 2Copy
Copy
hthth
出力例 2Copy
Copy
No
Score : points
Problem Statement
Let be a string consisting of lowercase letters. We will call beautiful if the following condition is satisfied:
- Each lowercase letter of the English alphabet occurs even number of times in .
You are given the string . Determine if is beautiful.
Constraints
- consists of lowercase letters (
a
-z
).
Input
The input is given from Standard Input in the following format:
Output
Print Yes
if is beautiful. Print No
otherwise.
Sample Input 1Copy
Copy
abaccaba
Sample Output 1Copy
Copy
Yes
a
occurs four times, b
occurs twice, c
occurs twice and the other letters occur zero times.
Sample Input 2Copy
Copy
hthth
Sample Output 2Copy
Copy
No