Problem:


Score : 200 points

Problem Statement

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

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

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

Constraints

1 \leq |w| \leq 100

w consists of lowercase letters (a-z).

Input

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

w

Output

Print Yes if w is beautiful. Print No otherwise.

Sample Input 1

abaccaba

Sample Output 1

Yes

a occurs four times, b occurs twice, c occurs twice and the other letters occur zero times.

Sample Input 2

hthth

Sample Output 2

No



Sample input:
abaccaba


Sample output:
Yes

Submission status: Runtime Error

Solution code:
from collections import Counter
a = input()
b = Counter(a)
c = 0

for i in b.values:
  if i%2!=0:
    c = 1
    break
else:
  if c==0:
    print("Yes")
  else:
    print("No")

Submission status: Runtime Error

Solution code:
#include <iostream>
#include <string>
#include <map>
#include <cfenv>
#include <cmath>
#include <vector>
#include<cstdio>
#include <iterator>
#include <sstream>
#include <algorithm>
#include <numeric>
using namespace std;
typedef long long ll;
int main() {
	string s;
	cin >> s;
	vector<int> c(26,0);
	for (int a = 0; a < s.size(); a++) {
		c[s[a] - 97]++;
	}
	bool f = true;
	for (int a = 0; a < c.size(); a++) {
		if (c[a] % 2 == 1)f = false;
	}
	cout <<(f?"Yes":"No")<< endl;
}

Submission status: Runtime Error

Solution code:
#include <iostream>
#include <string>
#include <map>
#include <cfenv>
#include <cmath>
#include <vector>
#include<cstdio>
#include <iterator>
#include <sstream>
#include <algorithm>
#include <numeric>
using namespace std;
typedef long long ll;
int main() {
	string s;
	cin >> s;
	vector<int> c(26,0);
	for (int a = 0; a < s.size(); a++) {
		c[s[a] - 97]++;
	}
	bool f = true;
	for (int a = 0; a < c.size; a++) {
		if (c[a] % 2 == 1)f = false;
	}
	cout <<(f?"Yes":"No")<< endl;
}

Submission status: Runtime Error

Solution code:
w=input()
list=w.spilt()
YN="Yes"

for i in list:
  if w.count(i)%2!=0:
    YN="No"
    break

print(YN)

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define N 100005
#define MOD 1000000007
#define dd double
#define rep(i, n) for(ll i = 0; i < n; i++)
#define REP(i,a,b) for(ll i=a;i<b;i++)
#define rep1(i,b) for(ll i=1;i<=b;i++)
#define pb push_back
#define mp make_pair
#define clr(x) x.clear()
#define sz(x) ((int)(x).size())
#define vi vector<ll>
#define all(v) v.begin(), v.end()

int main() 
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);

	string inp = "";
	cin >> inp;
	int arr[26];
	memset(arr, 0, sizeof(arr));

	rep(i, inp.length()) {
		arr[inp[i] - 'a']++;
	}
	bool flg = false;
	rep(i, 26) {
		if (arr[i] % 2 == 0) {
			flg = true;
		}
		else if (arr[i] % 2 == 1) {
			flg = false;
			break;
		}
	}
	if(flg == true) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
	//cerr << "Time elapsed: " << 1.0 * clock() / CLOCKS_PER_SEC << " s.\n";
	return 0;
}

Submission status: Runtime Error

Solution code:
w = input()
flg = True
for i in list("abcdefghijklmnopqrstuvwxyz"):
    if w.count(w[i]) % 2 != 0:
        flg = False

if flg:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
w=sorted(input())
if len(w)%2==1:
    print('No')
else:
    while len(w)>=2:
        if w.pop(0)!=w.pop(0):
            print('No')
            exit()
	print('Yes')

Submission status: Runtime Error

Solution code:
w = input()

for i in range(ord('a'),ord('z')+1):
  if w.count(chr(i))%2==1:
    print('No')
    break()
else: print('Yes')

Submission status: Runtime Error

Solution code:
w = list(input())
s = set(w)
ans = 'Yes'

for i in range(len(s)):
  if w.count(s[0]) % 2 == 1:
    ans = 'No'
    break

    print(ans)

Submission status: Runtime Error

Solution code:
w = input()

for t in w:
    if any(w.count(t)%2) == 0:
        print('Yes')
    else:
        print('No')

Submission status: Runtime Error

Solution code:
w = 0
codea = "a".encode()
for x in input():
  w ^= 1 << (x.encode() - codea)
print("No" if w!=0 else "Yes")

Submission status: Runtime Error

Solution code:
from collections import Counter
s=input()
c=Counter(s)
flag=0
a=c.values()
for i in range(len(a)):
  if a[i]%2==1:
    flag=1
    break
if flag==0:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
from collections import Counter
s=input()
c=Counter(s)
flag=0
for i in range(len(c.value)):
  if c.value[i]%2==1:
    flag=1
    break
if flag==0:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
print("Yes" if all(i % 2 == 0 for i in Counter(input()).values()) else "No")

Submission status: Runtime Error

Solution code:
w = str(input())
s = dic()

for wrd in w:
  if s.get(wrd) is None:
    s[wrd] = 1
  else:
    s[wrd] += 1

ans = 1
for wrd in s:
  if s[wrd] %2 !=0:
    ans = 0
    break
if ans:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
w = sorted(input())
ret = 'Yes'
for i in range(0, len(w), 2):
    if w[i] != w[i+1]:
        ret = 'No'
        break
print(ret)

Submission status: Runtime Error

Solution code:
x = input()
s = set(list(x))
f = 0
for i in s:
  x.count(i) % 2 == 1:
    f = 1
    break
  
if f == 1:
  print("No")
else:
  print("Yes")

Submission status: Runtime Error

Solution code:
W = input()

r = {}
for w in W:
    r.setdefault(w, 0)
    r[w] += 1

print("Yes" if len(list(filter(lambda x: x % 2 == 1, r))) == 0 else "No")

Submission status: Runtime Error

Solution code:
w = input()
flag = False
arr = []
for i in range(w):
  arr.append(i)
  
set_arr = list(set(arr))
for i in set_arr:
  cout_num = arr.count(i)
  if count_num % 2 != 0:
    flag = True
    break
if flag:
  print("No")
else:
  print("Yes")

Submission status: Runtime Error

Solution code:
mojiretsu = input()
lett = list(mojiretsu)
numlist = []
for i in lett:
    num = lett.count(i)
    numlist += [num]
jud = []
for i in numlist:
    if i%2 == 0:
        jud += ['Yes']
    else:
        jud += ['No']

anslist = [x for x in set(jud) if jud.count(x) > 1]

ans = anslist[0]

print(ans)

Submission status: Runtime Error

Solution code:
W = input()
lett = list(W)
numlist = []
for i in lett:
    num = lett.count(i)
    numlist += [num]
jud = []
for i in numlist:
    if i%2 == 0:
        jud += ['Yes']
    else:
        jud += ['No']

anslist = [x for x in set(jud) if jud.count(x) > 1]

ans = anslist[0]

print(ans)

Submission status: Runtime Error

Solution code:
W = input()
lett = list(W)
numlist = []
for i in lett:
    num = lett.count(i)
    numlist += [num]
jud = []
for i in numlist:
    if i%2 == 0:
        jud += ['Yes']
    else:
        jud += ['No']

anslist = [x for x in set(jud) if jud.count(x) > 1]

ans = anslist[0]

print(ans)

Submission status: Runtime Error

Solution code:
w = input()

import collections

c = collections.Counter(w)

b = True
for i in c.values:
  if i % 2 == 1:
    b = False

print("Yes" if b else "No")

Submission status: Runtime Error

Solution code:
w=input()
def solve():
  for j in [chr(i) for i in range(91,91+26)]
    if w.count(j)%2==0:
      print("No")
      return
  print("Yes")
  return

solve()

Submission status: Runtime Error

Solution code:
def main2():
    w = input()
    judge = "Yes"
    for i in w:
        if w.count(i) % 2 != 0:
            judge = false
    print(judge)

main2()

Submission status: Runtime Error

Solution code:
def main2():
    w = input()
    judge = ""
    for i in w:
        if w.count(i) % 2 != 0:
            judge = false
    print(judge)

main2()

Submission status: Runtime Error

Solution code:
w = str(input())

w_list = list(w)

str_list = [chr(i) for i in range(97, 97+26)]

count = 0

for i in str_list:
	if w_list.count(str_list[i])%2 == 0:
		count +=1
	else:
		print("NO")
		break

if count == 26:
	print("YES")

Submission status: Runtime Error

Solution code:
s,ans=input(),0;a=[s[i]for i in range(len(s))];a.sort()
for i in a:
  if a.count(i)%2!=0:ans=1
if ans=0:print("Yes")
else:print("No")

Submission status: Runtime Error

Solution code:
word=input()
list=set(word)
T=True
for i in list:
  if word.count(i)%2==1:
    T=False
if T=True:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
a = input()
b = 0
for i in len(a):
  if a.count(a[i])%2!=0:
    print("No")
    b = 1
    break
if b==0:
  print("Yes")

Submission status: Runtime Error

Solution code:
# coding: utf-8
S = input()
cnt = {}
flg = True
for s in S:
  if s in cnt:
    cnt[s] = 1
  else:
    cnt[s] += 1
for i in cnt.values():
  if j % 2 != 0:
    flg = False
print('Yes' if flg else 'No')

Submission status: Runtime Error

Solution code:
s=input()
s=list(s)
for i in s:
  if s.count(s[i])%2==1:
    print("No")
    exit()
print("Yes")

Submission status: Runtime Error

Solution code:
w=input()
s=[0]*123
for i in len(w):
    s[ord(w[i-1])]+=1
c=1
for i in range(97,97+26):
    if s[i]%2==1:
        c=0
        break
if c==1:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
w=input()
s=[0]*123
while len(w)==0:
    for i in range(97,97+26):
        if chr(i)==w[0]:
        s[i]+=1
        w=w[1:]
c=1
for i in range(97,97+26):
    if s[i]%2!=0:
        c=0
        break
if c==1:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
w=input()
s=[0]*123
while len(w)==0:
    for i in range(97,97+26):
        if chr(i)==w[0]:
        s[i]+=1
        w=w[1:]
c=1
for i in range(97,97+26):
    if s[i]%2==0:
        continue
    else:
        c=0
        break
if c=1:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
w=input()
s=[0]*123
while(len(w)==0):
    for i in range(97,97+26):
        if chr(i)==w[0]:
        s[i]+=1
        w=w[1:]
c=1
for i in range(97,97+26):
    if s[i]%2==0:
        continue
    else:
        c=0
        break
if c=1:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
s=input()
p=list(set(list(s)))
a=[]
for i in p:
    a.append(s.count(i))
for x in a:
    if x%2!==0:
        print("No")
        exit()
print("Yes")

Submission status: Runtime Error

Solution code:
s=input()
p=list(set(list(s)))
a=[]
for i in p
    a.append(s.count(i))
for x in a:
    if x%2!==0:
        print("No")
        exit()
print("Yes")

Submission status: Runtime Error

Solution code:
d={c:list(input()) for c in "abc"}
s="a"
while d[s]:
  s=d[s].pop(0)
print(s.upper())

Submission status: Runtime Error

Solution code:
from collection import Counter
S = Counter(list(input()))
for k, v in S.items():
  if v % 2 == 1:
    print("No")
    exit()
print("Yes")

Submission status: Runtime Error

Solution code:
//https://atcoder.jp/contests/abc044/tasks/abc044_b
//044-BをC++でといてみる
#include<iostream>
#include<algorithm>
#include<string>
#include<map>
using namespace std;

int main(void){
    string w; cin >> w;
    map<char,int> mp;
    int i;
    for (i = 0; i < w.size(); i++){
        mp[w[i]] += 1;
    }

    for (pair<char,int> x :mp){
        if (x.second%2 != 0){
            cout << "No" << endl; return 0;
        }
    }
    cout << "Yes" << endl;
    return 0;
}

Submission status: Runtime Error

Solution code:
#include <iostream>
#include <map>
#include <string>
using namespace std;

int main() {
  string w;
  cin >> w;

  map<char, int> count;
  for (auto s : w) {
    count[s] += 1;
  }
  for (auto itr = count.begin(); itr != count.end(); itr++) {
    if (itr->second % 2 == 1) {
      cout << "No" << endl;
      return 0;
    }
  }

  cout << "Yes" << endl;
  return 0;
}

Submission status: Runtime Error

Solution code:
n,a = map(int,input().split())
x = list(map(int,input().split()))

#dp[j][k][s] = (x0...xj からk枚選んでxiの合計をsにするような選び方の総数)
dp = [[[0 for s in range(a*n+1) ] for k in range(n+1) ] for j in range(n)]

for j in range(n):
    dp[j][0][0]=1
    if x[0]<= a*n:
        dp[j][1][x[0]] = 1

for j in range(n-1):
    for k in range(n+1):
        for s in range(a*n+1):
            if k>j+2:
                dp[j+1][k][s]=0
            elif s>=x[j+1] and k>= 1:
                dp[j+1][k][s]=dp[j][k][s] + dp[j][k-1][s-x[j+1]]
            else:
                dp[j+1][k][s]=dp[j][k][s]

res = 0
for i in range(1,n+1):
    res += dp[n-1][i][a*i]

print(1)

Submission status: Runtime Error

Solution code:
from collections import Counter

num=Counter(input())
 ans="YES"  
for X in num.values():
    if X%2!=0:
        ans="NO"
   
print(ans)

Submission status: Runtime Error

Solution code:
a = list(input())
b = list(set(a))

for i in range(b):
  if a.count(b[i]) % 2 != 0:
    print("No")
    break
else:
  print("Yes")

Submission status: Runtime Error

Solution code:
s=input();c=[f=0]*26
for i in s:c[ord(i)-97]+=1
for i in c:f+=i%2
print("YNeos"[(f>0)::2])

Submission status: Runtime Error

Solution code:
s=input();c=[f=0]*26
for i in s:c[ord(i)-97]+=1
for i in c:f+=i%2
print("YNeos"[!!f::2])

Submission status: Runtime Error

Solution code:
w = input())
for s in set(w):
    if w.count(s) % 2 != 0:
        print('No')
        break
else:
    print('Yes')

Submission status: Runtime Error

Solution code:
s = input()
#l = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
l = []
roll = ord('z')-ord('a')

for i in range(roll):
    l.append(0)

for i in range(len(s)):
    num = ord(s[i])
    l[num-97] += 1
    #print(num)

for i in range(roll):
    if l[i]%2 != 0:
        print("No")
        break
else:
    print("Yes")

Submission status: Runtime Error

Solution code:
s = input()
#l = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
l = []
roll = ord('z')-ord('a')

for i in range(roll):
    l.append(0)

for i in range(len(s)):
    num = ord(s[i])
    l[num-97] += 1
    #print(num)

for i in range(roll):
    if l[i]%2 != 0:
        print("No")
        exit()
else:
    print("Yes")

Submission status: Runtime Error

Solution code:
S = input()
print("Yes" if all([S.count(e) % 2 == 0 for e in set(S)] else "No"))

Submission status: Runtime Error

Solution code:
S = input()
S_elements = set(s)
for e in S_elements:
  if S.count(e) % 2 != 0:
    print("No")
    exit()
print("Yes")

Submission status: Runtime Error

Solution code:
in1 = list(input())
in1.sort()
i = 1
flg = True
while i <= len(in1):
  if in1[i] != in1[i-1]:
    flg = False
    break
  i+=2
if flg:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
hthth

Submission status: Runtime Error

Solution code:
from collections import Counter

word = input()
c = Counter(word)
counts = c.values()
if all(map(lambda x: x % 2 == 0, counts)) print('Yes') else print('No')

Submission status: Runtime Error

Solution code:
w = input()
m = Map()
for t in w:
    m[t] = m.get(t, 0) + 1

for c, cnt in m:
    if cnt % 2 == 1:
        print("No")
        exit()

print("Yes")

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python
#coding:utf-8

def input_strs():
    return input().split(" ")

def input_nums():
    return [int(i) for i in input_strs()]


w = input()
ok = True
h = Map()

for c in w:
    p = 0
    for k in w:
        if c == k:
            p += 1
    ok = ok and (p % 2 == 0)

if ok:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python
#coding:utf-8

def input_strs():
    return input().split(" ")

def input_nums():
    return [int(i) for i in input_strs()]


w = input()
ok = True
h = Map()

for i in w:
    h[i] = h.get(i, 0) + 1

for key in h:
    ok = ok and (h[key] % 2 == 0)
if ok:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
from collections import defaultdict

def is_beautiful(s):
    d = defaultdict(int)
    for c in input():
        d[c] += 1
    for v in d.values():
        if v % 2:
            return False
    return True

print("YES" if is_beautiful(input()) else "NO")

Submission status: Runtime Error

Solution code:
from collections import Counter
print 'Yes' if all(v % 2 == 0 for v in Counter(raw_input()).values())) else 'No'

Submission status: Runtime Error

Solution code:
w = input()                
l = list(w)                
l.sort()                   
ans = "Yes"                
for i in range(len(l)/2):    
    if l[2*i] != l[2*i+1]: 
        ans = "No"         
        break              
print(ans)

Submission status: Runtime Error

Solution code:
w = input()                
l = list(w)                
l.sort()                   
ans = "Yes"                
for i in range(len(l)):    
    if l[2*i] != l[2*i+1]: 
        ans = "No"         
        break              
print(ans)

Submission status: Runtime Error

Solution code:
o = "Yes"
for v in collections.Counter(input().strip()).values():
    if v % 2 != 0: o = "No"
print(o)

Submission status: Runtime Error

Solution code:

w = list(input())
w.sort()

isBeautiful = True
length = len(w)
for i in range(0, length, 2):
  if w[i] is not w[i + 1]:
    isBeautiful = False
    break

print('Yes' if isBeautiful else 'No')

Submission status: Runtime Error

Solution code:
a,b,c,d,e,f,g,h,i,j,k=0,1,2,3,4,5,6,7,8,9,10
l,m,n,o,p,q,r,s,t,u,v,w,x,y,z=11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
W=input()
W=list(W)
L=len(W)
lis=[0 for s in range(25)]

if L%2!=0:
	print("No")#奇数個の場合はあり得ない
else:
	for s in range(L):
		temp=W[s]
		lis[eval(temp)]+=1
	for s in range(26):
		if lis[s]%2!=0:
			print("No")
			break
		if s==26-1:
			print("Yes")

Submission status: Runtime Error

Solution code:
import string
import sys

w = raw_input()
for c in string.ascii_lowercase:
    if w.count(c) % 2 == 1:
        print("No")
        sys.exit()
print("Yes")

Submission status: Runtime Error

Solution code:
flag = 0

counter = Counter(w)

for word, cnt in counter.most_common():
    if cnt % 2 != 0:
        flag = 1
        print("NO")

if flag == 0:
    print("YES")