第 044 场 AtCoder Beginner Contest
美丽字符串AI (CI翻译)
Problem Statement
题目描述
AI (CI翻译)Let $w$ be a string consisting of lowercase letters. We will call $w$ beautiful if the following condition is satisfied:
设 $w$ 是一个由小写字母组成的字符串。如果满足以下条件,则称 $w$ 是美丽的:AI (CI翻译)
- Each lowercase letter of the English alphabet occurs even number of times in
$w$.
- 英语字母表中的每个小写字母在
$w$中出现的次数都是偶数。
You are given the string $w$. Determine if $w$ is beautiful.
给定字符串 $w$。请判断 $w$ 是否美丽。AI (CI翻译)
Constraints
约束条件
AI (CI翻译)$1 \leq |w| \leq 100$$w$consists of lowercase letters (a-z).
$1 \leq |w| \leq 100$$w$由小写字母(a-z)组成。
Input
输入格式
AI (CI翻译)The input is given from Standard Input in the following format:
输入从标准输入按以下格式给出:AI (CI翻译)
w
wAI (CI翻译)
Output
输出格式
AI (CI翻译)Print Yes if $w$ is beautiful. Print No otherwise.
如果 $w$ 是美丽的,输出 Yes;否则输出 No。AI (CI翻译)
样例
Input #1
abaccaba
Output #1
Yes
`a` occurs four times, `b` occurs twice, `c` occurs twice and the other letters occur zero times.
Input #2
hthth
Output #2
No
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(gpt-6.1-sol),如有出入请以原文为准。