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: Wrong Answer

Solution code:
#B
w = input()
dic = {chr(i+ord('a')): 0 for i in range(0, 26)}
for c in w:
    dic[c] += 1
result = 'NO'
for i in range(26):
    if dic[chr(i+ord('a'))] % 2 != 0: break
else: result = 'YES'
print(result)

Submission status: Wrong Answer

Solution code:
w = str(input())
count = 1
for i in range(len(w)):
    s = w.count(w[i])
    if s % 2 != 0:
        print("No")
        count -=1
if count == 0:
    print("Yes")

Submission status: Wrong Answer

Solution code:
from collections import Counter
W = input()

Ans = "YES"

C = Counter(W).items()
for c in C:
    _x,cnt = c
    if cnt%2 != 0:
        Ans = "NO"
        break

print(Ans)

Submission status: Wrong Answer

Solution code:
w = input()
mp = dict()

for c in w:
    if c in mp:
        mp[c] += 1
    else:
        mp[c] = 1

print(mp)

def check(w):
    c = "Yes"
    for i in w:
        if i % 2 == 0:
            continue
        else:
            c = "No"
            break
    return c

print(check(mp.values()))

Submission status: Wrong Answer

Solution code:
w=input()
s=set(w)
if (len(w)/len(s))%2==0: 
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
s=input()
d={}
for i in s:
    if i in d: d[i]+=1
    else: d[i]=1
ans=0
for i in d:
    if d[i]%2:
        ans=1
print("NO" if ans else "YES")

Submission status: Wrong Answer

Solution code:
moji = list(input())
mojiset = list(set(moji))
sum = 0

for moj in mojiset:
  sum += moji.count(moj)
  
if sum != 0 and sum % 2 == 0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
moji = list(input())
mojiset = list(set(moji))
sum = 0

for moj in mojiset:
  sum += moji.count(moj)
  
if sum % 2 == 0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
moji = list(input())
mojiset = list(set(moji))
count = 0

for moj in mojiset:
  count += moji.count(moj)
  
if count % 2 == 0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
from collections import Counter 
w=Counter(input())
ans="YES"  
for i in w.values():
    if i%2!=0:
        ans="NO"
print(ans)

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

Solution code:
from collections import Counter

num=Counter(input())

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

Submission status: Wrong Answer

Solution code:
from collections import Counter

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

Submission status: Wrong Answer

Solution code:
from collections import Counter
w=input()
num=Counter(w)
for X in num.values():
    if X%2!=0:
        print("NO")
        break
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
from collections import Counter
w=input()
num=Counter(w)
for X in num.values():
    if X%2==1:
        print("NO")
        break
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
w=input()
for X in ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]:
    if int(w.count(X))%2==1:
        print("NO")
        break
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
S=input()
for X in ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]:
    if int(S.count(X))%2==1:
        print("NO")
        break
else:
    print("YES")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
W = input()

import collections

switch = 0
W_list = list(W)
W_dic = collections.Counter(W_list)
for num in W_dic.values():
    if num%2 != 0:
        switch = 1
        break

print(switch)
if switch == 0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a = list(input())
br = []
for ar in a:
    br.append(a.count(ar))
x = 0
for b in br:
    if b % 2 == 1:
        x += 1
if x == 0:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
#! /usr/bin/python3
# ABC044_B
# B - 美しい文字列 / Beautiful Strings
"""
collectionsを使わないタイプ

制約
    1≤|w|≤100
    w は英小文字 (a-z) のみからなる文字列である。
"""

import collections
test_mode = False
use_Counter = True    # collections.Counter を使うかどうか


def judge_0(l):
    """
    collections.Counter を使うタイプ
    """
    broken = False
    count_l = collections.Counter(l)    # l の各要素の出現回数をカウント

    if test_mode:
        print(count_l)

    for i in count_l:
        if count_l[i] == 1:
            if test_mode:
                print('break')
            broken = True
            break

    return not broken


def judge_1(l):
    """
    collections.Counter を使わないタイプ
    1度しか登場しない要素があると False を返し、
    全ての要素が複数回登場すると True を返す。
    """
    broken = False  # break したら True になるフラグ

    for i in l:
        if test_mode:
            print('{}:'.format(i), l.count(i))
            if l.count(i) == 1:
                print('break')
        if l.count(i) == 1:
            broken = True
            break

    return not broken



def main():
    """
    main関数
    """
    w = list(str(input()))  # 文字列をリストに変換
    if use_Counter:
        beautiful = judge_0(w)
    else:
        beautiful = judge_1(w)

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



if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import collections

w = input()
W = collections.Counter(w).values()

for i in W:
    if i % 2 != 0:
        print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
w = list(input())
L = list(set(w))
counter = 0
for i in range(len(L)) :
    if w.count(L[i]) % 2 != 0 :
        print("No")
    else :
        counter += 1
if counter == len(L) :
    print("Yes")

Submission status: Wrong Answer

Solution code:
wlist = [0 for i in range(26)]
w = list(input())
for i in w:
    wlist[ord(i) - 97] += 1
ans = 1
for i in wlist:
    if i % 2 != 0:
        print("No")
        ans = -1
if ans == 1:
    print("Yes")

Submission status: Wrong Answer

Solution code:
w = input()

def is_beutifull_str(char_str):
    for s in w:
        if w.count(s)%2 == 1:
            return 'NO'
    return 'YES'

print (is_beutifull_str(w))

Submission status: Wrong Answer

Solution code:
from collections import Counter

w = Counter(list(input()))

for value in w.values():
    if value % 2 != 0:
        print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
a=input()
b=''
for x in a:
    if int(x in b)==1:b=b.strip(x)
    else:b=b+x
if b=='':print('Yes')
else:print('No')

Submission status: Wrong Answer

Solution code:
#44b
w = input()
w = sorted(w)
ans = True

if len(w)% 2!=0:
    ans = False

else:
    for i in range (len(w)//2):
        if w[2*i] == w[2*i+1]:
            ans = True
        else:
            ans = False
print('Yes' if ans == True else 'No')

Submission status: Wrong Answer

Solution code:
w=input()
x={}
for s in w:
    if s in x.keys():
        x[s]+=1
    else:
        x[s]=1
f=False
for v in x.values():
    if v%2==1:
        print('No')
        f=True
if not(f):
    print('Yes')

Submission status: Wrong Answer

Solution code:
w=list(input())
w.sort()
b=w[0]
y=1
Y=0
for i in range(len(w)-1):
    if b==w[i+1]:
        y+=1
    else:
        if y%2!=0:
            Y+=1
            y=1
            b=w[i+1]
if Y==0 and y%2==0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
w=list(input())
w.sort()
b=w[0]
y=1
Y=0
for i in range(len(w)-1):
    if b==w[i+1]:
        y+=1
    else:
        if y%2!=0:
            Y+=1
            y=1
            b=w[i+1]
if Y==0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
w=list(input())
w.sort()
b=w[0]
y=1
Y=0
for i in range(len(w)-1):
    if b==w[i+1]:
        y+=1
    else:
        if y%2!=0:
            Y+=1
if Y==0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s=list(input())

s.sort()

n=len(s)

c=1
f=1
now=s[0]

for i in range(1,n):
    if now==s[i]:
        c+=1
    else:
        if c%2==1:
            f=-1
        c=1
        now=s[i]

if f<0:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
s = input()
from collections import Counter
print(all([v%2==0 for v in Counter(s).values()]))

Submission status: Wrong Answer

Solution code:
w = str(input())
ar = []
a = 0

for j in range(97, 123):
    b = w.count(chr(j))
    if b %2 == 1:
        print("No")
        break

    else:
        a += 1

if 1 <= a:
    print("Yes")

Submission status: Wrong Answer

Solution code:
w = str(input())
ar = []
a = 0

for j in range(97, 123):
    b = w.count(chr(j))
    if b %2 == 1:
        print("No")
        break

    elif b == 0:
        print("", end="")

    else:
        a += 1

if 1 <= a:
    print("Yes")

Submission status: Wrong Answer

Solution code:
w=input()
for c in 'abcdefghijklmnopqrstuvwxyz':
    if w.count(c)%2:
        print('NO')
        break
else:
    print('YES')

Submission status: Wrong Answer

Solution code:
w=input()
for c in 'qazwsxedcrfvtgbyhnujmikolp':
    if w.count(c)%2:
        print('NO')
        break
else:
    print('YES')

Submission status: Wrong Answer

Solution code:
w=input()
for i in "qazwsxedcrfvtgbyhnujmikolp":
    if w.count(i)%2:
        print("NO")
        break
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
w=input()
for i in w:
    if w.count(i)%2:
        print("NO")
        break
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
w=list(input())
for i in w:
    if w.count(i)%2==1:
        print("NO")
        break
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
from collections import Counter
s=Counter(input())
for i in s:
    if s[i]%2==1:
        print('NO')
        break
else:print('Yes')

Submission status: Wrong Answer

Solution code:
q = input()
if len(q) % 2 == 0:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
w = raw_input()
wl = []
for i in range(0, len(w)):
	wl.append(w[i])
wl.sort()

if len(wl) % 2 != 0: print("No")
else:
	for i in range(0, len(wl)/2):
		if wl[2*i] != wl[2*i+1]:
			print("No")
			break
	print("Yes")

Submission status: Wrong Answer

Solution code:
a = input()
b = 0
for i in range(len(a)):
    if a.count(a[i]) % 2:
        b += 1
    else:
        b -= 1000
if b >= 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a = input()
b = 0
for i in range(len(a)):
    if a.count(a[i]) >= 2:
        b = 1

if b == 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
w=input()
for alphabet in w:
    if w.count(alphabet)%2!=0:
        print("NO")
        exit()
print("YES")

Submission status: Wrong Answer

Solution code:
w = input()
w_list = []
for i in w:
  w_list.append(i)
w_set = set(w_list)
for i in w_set:
  w_each = i
  w_num = w_each.count(i)
if w_num % 2 == 0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
def check_w(arr):
    a = 0
    for i in range(len(arr)-1):
        a += 1
        if arr[i] != arr[i+1]:
            if a % 2 != 0:
                return False
            a = 0
    return True

w = list(input())
w.sort()
if check_w(w):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
def main():
    w = input()

    for o in range(ord('a'), ord('z')+1):
        c = chr(o)
        if w.count(c) % 2 == 1:
            print("NO")
            return

    print("YES")


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
w = input()
l = [chr(i) for i in range(97, 97 + 26)]
r = set()
for c in l:
    r.add(w.count(c) % 2)
print("Yes" if len(r) == 1 else "No")

Submission status: Wrong Answer

Solution code:
w = input()
l = [chr(i) for i in range(97, 97 + 26)]
r = set()
for c in l:
    r.add(w.count(c) % 2)
print("Yes") if len(r) == 1 else print("No")

Submission status: Wrong Answer

Solution code:

import collections

w = input()


if (all([i % 2 == 0 for i in collections.Counter(w).values()])):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:

import collections

w = input()


if (all([i % 2 for i in collections.Counter(w).values()])):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
import collections
w=input()
count_dict=collections.Counter(w)
count=0
for i in count_dict.values():
    if i%2==0:
        count=0
    else:
        count+=1
if count==0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import collections
w=input()
count_dict=collections.Counter(w)

count=0
for i in count_dict.values():
    if i%2==0:
        count=0
    else:
        count+=1
if count==0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
w = list(input())
ans= "Yes"
for i in w:
    if w.count(i) != 2:
        ans = "No"
print(ans)

Submission status: Wrong Answer

Solution code:
W = list(raw_input())
flagArray = [True for i in range(26)]
for w in W:
	flagArray[ord(w)-97] = not(flagArray[ord(w)-97])
flag = True
for f in flagArray:
	if not f:
		print "NO"
		flag = False
		break
if flag:
	print "YES"

Submission status: Wrong Answer

Solution code:
w = input()
a = []
b = []
i = 0
for letter in w:
    if i%2==1:
        a.append(letter)
    else:
        b.append(letter)
    i += 1
if sorted(a) == sorted(b):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
w = raw_input()

alphabet = [0]*26
for i in range(len(w)):
    alphabet[ord(w[i])-97] += 1
for i in range(26):
    alphabet[i] = True if alphabet[i]%2 == 0 else False
print ('YES' if all(alphabet) else 'NO')

Submission status: Wrong Answer

Solution code:
import string
w = input()
for a in string.ascii_lowercase:
    cnt = 0
    for t in w:
        if t == a:
            cnt = cnt + 1
    if cnt % 2 == 1:
        print("No")

print("Yes")

Submission status: Wrong Answer

Solution code:
import string
w = input()
for a in string.ascii_lowercase:
    cnt = 0
    for t in w:
        if t == a:
            cnt = cnt + 1
    if cnt % 2 == 0:
        print("No")

print("Yes")

Submission status: Wrong Answer

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 = []
for c in w:
    p = 0
    if c in h:
        break
    h.append(c)
    for k in w:
        if c == k:
            p += 1
    ok = (p % 2 == 0)
if ok:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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
for c in w:
    p = 0
    for k in w:
        if c == k:
            p += 1
    ok = (p % 2 == 0)
if ok:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
from collections import defaultdict

def is_beautiful(s):
    d = defaultdict(int)
    for c in s:
        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: Wrong Answer

Solution code:
from collections import defaultdict
import sys

d = defaultdict(int)
for c in input():
    d[c] += 1
for v in d.values():
    if v % 2:
        print("NO")
        sys.exit()
print("YES")

Submission status: Wrong Answer

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7


def main():
    s = input()
    d = collections.defaultdict(int)
    for c in s:
        d[c] += 1
    for c in d.values():
        if c % 2 == 1:
            return 'No'
    return 'YES'



print(main())

Submission status: Wrong Answer

Solution code:
import sys
s=list(input())
s.sort()
count=1
for i in range(1,len(s)):
    if s[i]==s[i-1]:
        count+=1
    else:
        if count%2==0:
            count=1
        else:
            print("No")
            sys.exit()
print("Yes")

Submission status: Wrong Answer

Solution code:
import sys
w = list(input())
w.sort()

count = 1
for i in range(1, len(w)):
    if w[i] == w[i-1] :
        count += 1
    else:
        if count % 2 == 1:
            print("No")
            sys.exit()
        count = 1

print("Yes")

Submission status: Wrong Answer

Solution code:
import sys

w = sys.stdin.readline()

c = 'a'

for i in xrange(26):
    if w.count(chr(ord(c) + i)) % 2 == 1:
        print 'No'
else:
    print 'Yes'

Submission status: Wrong Answer

Solution code:
w = input()
cnt = 26*[0]

for i in w:
    cnt[ord(i)-ord("a")] += 1

for c in cnt:
    if c % 2 != 0:
        print("NO")
        exit()

print("YES")

Submission status: Wrong Answer

Solution code:
S = input()
set_S = set(S)
sum = 0

for ch in set_S:
	sum += S.count(ch)

if sum % 2 == 0:
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
w = list(input())
w = sorted(w)
counter = 1
for i in range(len(w)-1):
    if w[i] == w[i+1]:
        counter = counter + 1
    else:
        if counter % 2 != 0:
            print("No")
            break
        counter = 1
if counter % 2 == 0 :
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
w = list(input())
w = sorted(w)
counter = 1
for i in range(len(w)-1):
    if w[i] == w[i+1]:
        counter = counter + 1
    else:
        if counter % 2 != 0:
            print("No")
            break
        counter = 1
if counter % 2 == 0 :
    print('Yes')

Submission status: Wrong Answer

Solution code:
from collections import Counter
s = input()
if sum(Counter(s).values()) & 1 == 1:
	print("No")
else:
	print("Yes")

Submission status: Wrong Answer

Solution code:
def B(w,arpha,count):
    for c in w:
        for i,a in enumerate(arpha):
            if c == a:
                count[i]+=1

    for i in count:
        if  i % 2 != 0:
            print(arpha)
            print(count)
            return print("No")
    print("Yes")

w = input()
arpha = [chr(i) for i in range(97,97+26)]
count = [0 for i in range(26)]
B(w,arpha,count)

Submission status: Wrong Answer

Solution code:
line = raw_input()

c = 'a'
flg = 'Yes'

for i in range(0, 26):
    c = chr(ord(c) + 1)
    if line.count(c) % 2 == 1:
        flg = 'No'
        break

print flg

Submission status: Wrong Answer

Solution code:
w = list(input())

length = len(w)
if length % 2 is not 0:
  length -= 1

w.sort()
isBeautiful = True
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: Wrong Answer

Solution code:
w = 'hthtn'


w = list(w)
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: Wrong Answer

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(26)]

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: Wrong Answer

Solution code:
w = input()

hist = dict()
for char in w:
  if not char in hist.keys():
    hist[char] = 1
  else:
    hist[char] += 1

for value in hist.values():
  if value % 2 == 1:
    print ('No')

print ('Yes')

Submission status: Wrong Answer

Solution code:
import collections

for v in collections.Counter(input()).values():
    if v % 2 == 0:
        print("No")
        break
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
import collections

w = input()
count_dict = collections.Counter(w)
for k, v in count_dict.items():
    if v % 2 != 0:
        print('No')
        break
    print('Yes')

Submission status: Wrong Answer

Solution code:
import collections

w = input()
count_dict = collections.Counter(w)
for k, v in count_dict.items():
    if v % 2 != 0:
        print('No')
        break
    print('yes')

Submission status: Wrong Answer

Solution code:
w_list = list(str(input()))
w_list.sort()
l = len(w_list)
for i,j in zip(range(0, l, 2) ,range(1, l, 2)):
    if w_list[i] != w_list[j]:
        print("No")
        break
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
w,cnt,flag = list(input()),0,0

for i in w:
    for j in w:
        if i==j:
            cnt+=1
    if cnt%2 == 0:
        flag = 1
    else:
        flag = 0
    cnt=0
if flag == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
from collections import Counter

w = input()
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")

Submission status: Wrong Answer

Solution code:
from collections import Counter

w = input()
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")

Submission status: Wrong Answer

Solution code:
w = input()
flag = 0

for j in range(0,len(w)):
    sum = 0
    for i in range(0,len(w)):
        if w[j] == w[i]:
            sum += 1
    if sum % 2 != 0:
        print("NO")
        flag = 1
        break

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

Submission status: Accepted

Solution code:
from collections import Counter

w = input()
c = Counter(w)
for i in c.values():
    if i % 2 != 0:
        print('No')
        exit()
print('Yes')

Submission status: Accepted

Solution code:
li = [0]*26
w = input()
for i in range(len(w)):
    li[ord(w[i])-97] += 1
for i in range(26):
    if li[i] % 2 == 1:
        print("No")
        exit()
print("Yes")

Submission status: Accepted

Solution code:
w = input()
l = [chr(ord("a")+i) for i in range(26)]
for i in l:
    if w.count(i) % 2 != 0:
        print('No')
        exit()
print('Yes')

Submission status: Accepted

Solution code:
w = input()

import collections as c

counts = c.Counter(w)
if all(elem % 2 == 0 for elem in counts.values()):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
import collections
s = input()
l = collections.Counter(s)
for i in l.values():
    if i % 2 != 0:
        print("No")
        exit()
print("Yes")

Submission status: Accepted

Solution code:
def main():
    w = input()
    d = dict()

    for i in range(len(w)):
        if (w[i] in d):
            d[w[i]] += 1
        else:
            d[w[i]] = 1

    correct = 0
    for v in d.values():
        if v % 2 == 0:
            correct += 1

    if correct == len(d):
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
w = input()
ans = True
for i in w:
  cnt = 0
  for j in w:
    if i == j:
      cnt += 1
  if cnt % 2 != 0:
    ans = False
    break
    
if ans:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys

YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(w: str):
    base = ord('a')
    b = [0] * 26
    for s in w:
        b[ord(s)- base] += 1
    for i in b:
        if i % 2 != 0:
            print(NO)
            return

    print(YES)
    return


# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    w = next(tokens)  # type: str
    solve(w)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
W = input()
s = list(set(W))
l = len(s)


for i in range(l):
    for a in s[i]:
        if W.count(a)%2 == 1:
            print("No")
            exit()
        else:
            break
print("Yes")

Submission status: Accepted

Solution code:
import string

w = list(map(str, input()))
ans = ""

alp = list(map(str, string.ascii_lowercase))
for char in alp:
    if w.count(char) % 2 == 0:
        ans = "Yes"
    else:
        ans = "No"
        break
print(ans)

Submission status: Accepted

Solution code:
w=input()
l=[0 for _ in range(26)]
Flag=True
for i in w:
    num=ord(i)-97
    #print(num)
    l[num]+=1
for i in l:
    if i%2==1:
        Flag=False
if Flag:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
w = input()
char_map = { c: 0 for c in w }
for c in w:
    char_map[c] += 1

flag = True
for val in char_map.values():
    if val % 2 != 0:
        flag = False
        break

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

Submission status: Accepted

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

for i in b:
  if a.count(i) % 2 != 0:
    print('No')
    exit()
    
print('Yes')

Submission status: Accepted

Solution code:
w = input()
f = True
for i in w:
    c = 0
    for k in w:
        if i == k:
            c += 1

    if c % 2 != 0:
        f = False
if not f:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
w = input()
count = [0] * 27

for i in range(len(w)):
	count[ord(w[i])-97] += 1

for i in range(len(count)):
	if count[i] % 2 != 0:
		print("No")
		exit()

print("Yes")

Submission status: Accepted

Solution code:
import collections
w = list(input())
c = collections.Counter(w)
tmp = list(c.values())
for i in tmp:
    if i % 2 == 1:
        print("No")
        exit()
print("Yes")

Submission status: Accepted

Solution code:
from collections import Counter


def answer(w: str) -> str:
    counts = Counter(w).values()
    for count in counts:
        if count % 2 == 1:
            return 'No'

    return 'Yes'

def main():
    w = input()
    print(answer(w))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
W = input()
ans = 'Yes'

if len(W)%2 == 0:
    W_ele = set([w for w in W])
    for w in W_ele:
        if W.count(w) % 2 == 1:
            ans = 'No'
else:
    ans = 'No'
print(ans)

Submission status: Accepted

Solution code:
w=input()
di={}
for i in w:
    if i in di:
        di[i]+=1
    else:
        di[i]=1
for i in di.values():
    if i&1:
        print("No")
        exit()
print("Yes")

Submission status: Accepted

Solution code:
import math
from datetime import date

def main():
	
	s = input()
	a = [0 for i in range(26)]

	for c in s:
		a[ord(c) - ord('a')] += 1

	ok = 'True'
	for i in range(26):
		if a[i] % 2 == 1:
			ok = 'False'

	if ok == 'True':
		print("Yes")
	else:
		print("No")

main()

Submission status: Accepted

Solution code:
from collections import Counter

w = input()

w = Counter(w)

result = 'Yes'
for v in w.values():
    if v % 2 == 0:
        continue
    else:
        result = 'No'
        break
print(result)

Submission status: Accepted

Solution code:
w = input()
x = set(w)
y = []
for i in x:
    y.append(w.count(i))
for j in y:
    if j%2 == 0:
        continue
    else:
        print("No")
        exit()
print("Yes")

Submission status: Accepted

Solution code:
w = input()
while len(w) > 0:
    a = w[0]
    if w.count(a)%2 != 0:
        print("No")
        exit()
    w = w.replace(a,"")
print("Yes")

Submission status: Accepted

Solution code:
import sys
w=input()
count={}
for i in w:
    count.setdefault(i,0)
    count[i]+=1
for j in count.values():
    if j%2!=0:
        print('No')
        sys.exit()
print('Yes')

Submission status: Accepted

Solution code:
import collections
w = list(input())
wc = collections.Counter(w)
num = 0
for i, x in enumerate(wc):
  if(wc[x]%2==0):
    num += 1
if(num==len(wc)):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
w = input()
a = 0
for i in range(97, 124):
    cnt = 0
    for j in w:
        if j == chr(i):
            cnt += 1
    if cnt%2 != 0:
        print("No")
        break
    else:
        a += 1
        if a == 27:
            print("Yes")
            break

Submission status: Accepted

Solution code:
w=input()
a=list('abcdefghijklmnopqrstuvwxyz')
for A in a:
    if w.count(A) % 2 == 1:
        print('No')
        exit()
print('Yes')

Submission status: Accepted

Solution code:
w = input()
ans = 'Yes'
if len(w) % 2 == 1:
    ans = 'No'
else:
    s = sorted(w)
    count = 1
    for i in range(1, len(s)):
        if s[i] == s[i - 1]:
            count += 1
        else:
            if count % 2 == 1:
                ans = 'No'
                break
            count = 1
print(ans)

Submission status: Accepted

Solution code:
w = input()
alpha = "abcdefghijklmnopqrstuvwxyz"

check = True
for a in alpha:
  if w.count(a) % 2 == 1:
    check = False
    
print("Yes" if check else "No")

Submission status: Accepted

Solution code:
import collections
w = list(str(input()))
l = collections.Counter(w)
s = set(w)

for i in s:
    if int(l[i])%2 != 0:
        print('No')
        break
else:
    print('Yes')

Submission status: Accepted

Solution code:
S=input()
for s in S:
  if S.count(s) %2 == 1:
    print("No")
    break
else:
  print("Yes")