B - Beautiful Strings Editorial /

Time Limit: 2 sec / Memory Limit: 256 MB

配点 : 200200

問題文

ww を、英小文字のみからなる文字列とします。 ww が以下の条件を満たすならば、ww美しい文字列と呼ぶことにします。

  • どの英小文字も、ww 中に偶数回出現する。

文字列 ww が与えられます。ww が美しい文字列かどうか判定してください。

制約

  • 1w1001 \leq |w| \leq 100
  • ww は英小文字 (a-z) のみからなる文字列である

入力

入力は以下の形式で標準入力から与えられる。

ww

出力

ww が美しい文字列ならば Yes を、それ以外の場合は No を出力せよ。


入力例 1Copy

Copy
abaccaba

出力例 1Copy

Copy
Yes

a44 回、b22 回、c22 回、それ以外の英小文字が 00 回出現します。


入力例 2Copy

Copy
hthth

出力例 2Copy

Copy
No

Score : 200200 points

Problem Statement

Let ww be a string consisting of lowercase letters. We will call ww beautiful if the following condition is satisfied:

  • Each lowercase letter of the English alphabet occurs even number of times in ww.

You are given the string ww. Determine if ww is beautiful.

Constraints

  • 1w1001 \leq |w| \leq 100
  • ww consists of lowercase letters (a-z).

Input

The input is given from Standard Input in the following format:

ww

Output

Print Yes if ww 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


2025-04-24 (Thu)
19:02:58 +00:00