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: Accepted

Solution code:
s = raw_input()
word_list = {}
for i in s:
    if not word_list.has_key(i):
        word_list[i] = 1
    else:
        word_list[i] += 1

flag = 0
for i in word_list.values():
    if i % 2 == 1:
        flag = 1

if flag == 1:
    print 'No'
else:
    print 'Yes'

Submission status: Accepted

Solution code:
from collections import defaultdict
s=raw_input()
di=defaultdict(int)
for i in xrange(len(s)):
    di[s[i]]+=1
for i in xrange(len(s)):
    j=di[s[i]]
    if j%2==1:
        print("No")
        exit()
print("Yes")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll

w = raw_input()
cnt = [0]*26
for c in w:
    cnt[ord(c) - ord("a")] += 1
print "Yes" if all([cnt[i]%2 == 0 for i in xrange(26)]) else "No"

Submission status: Accepted

Solution code:
from collections import Counter
s = input()
c = Counter(s).values()
for n in c:
	if n & 1 == 1:
		print("No")
		break
else:
	print("Yes")

Submission status: Accepted

Solution code:
from collections import Counter


def main():
    w = input()
    d = Counter(w)
    for k, v in d.items():
        if v % 2 != 0:
            print("No")
            break
    else:
        print("Yes")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
def read():
    return int(input())

def reads(sep=None):
    return list(map(int, input().split(sep)))

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

main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import defaultdict


def main():
    w = input()
    d = defaultdict(int)
    for c in w:
        d[c] += 1
    ans = 'Yes'
    for cnt in d.values():
        if cnt & 1 == 1:
            ans = 'No'
            break
    print(ans)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
w = raw_input()
queue = []
for i in w:
    if i in queue:
        queue.remove(i)
    else:
        queue.append(i)
if queue:
    print "No"
else:
    print "Yes"

Submission status: Accepted

Solution code:
w = input()

words = {}

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

is_beautiful = True

for c in words:
    if words[c] % 2:
        is_beautiful = False
        break

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

Submission status: Accepted

Solution code:
N = raw_input()

def average(N):
    if N == "":
        return 'Yes'

    count = 0
    for i in range(len(N)):
        if N[0] == N[i]:
            count+=1

    if count % 2 == 1:
        return 'No'

    N = N.replace(N[0],"")
    return average(N)

print average(N)

Submission status: Accepted

Solution code:
ct = {}
for w in input():
    if w not in ct:
        ct[w] = 0
    ct[w] += 1

ans = "Yes"
for k,v in ct.items():
    if v%2 == 1:
        ans = "No"
print(ans)

Submission status: Accepted

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:
            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: Accepted

Solution code:
w=input()
print("Yes" if not sum([w.count(i)%2 for i in list(set(w))]) else "No")

Submission status: Accepted

Solution code:
d = dict()
for c in raw_input():
    d[c] = d.get(c, 0 ) + 1
flag = True
for v in d.values():
    if v % 2 == 1:
        flag = False
print "Yes" if flag else "No"

Submission status: Accepted

Solution code:
s = raw_input().strip()

from collections import defaultdict
d = defaultdict(int)
for e in s:
	d[e] += 1

ans = True
for e in s:
	if d[e] % 2:
		ans = False
		break
if ans:
	print 'Yes'
else:
	print 'No'

Submission status: Accepted

Solution code:
w = raw_input()

for c in w :
  if w.count(c) % 2 != 0 :
    print "No"
    break
else :
  print "Yes"

Submission status: Accepted

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

Submission status: Accepted

Solution code:
text = input()
print('No' if any([text.count(x) & 1 for x in set(text)]) else 'Yes')

Submission status: Accepted

Solution code:
import string
w = input()
isYes = True
for i in string.ascii_lowercase:
    if w.count(i) % 2 == 1:
        isYes = False
        
if isYes:
    print( "Yes" )
else:
    print( "No" )

Submission status: Accepted

Solution code:
line = raw_input()

c = 'a'
flg = 'Yes'

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

print flg

Submission status: Accepted

Solution code:
w=input()
if len(w)%2 != 0:
    print("No")
    exit()
alp=[]
c='a'
while ord(c) <= ord('z'):
    alp.append(0)
    c=chr(ord(c)+1)
for s in w:
    alp[ord(s)-ord('a')]+=1
c='a'
while ord(c) <= ord('z'):
    if alp[ord(c)-ord('a')]%2 != 0:
        print("No")
        exit()
    c=chr(ord(c)+1)
print("Yes")

Submission status: Accepted

Solution code:
a = raw_input()

b = []
for i in range(30):
	b.append(0)

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

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !

w = input()

cnt = 0
for i in range(len(w)) :
    if w.count(w[i]) % 2 != 0 :
        cnt += 1

print("Yes" if cnt == 0 else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# Hello World program in Python

def isBeautiful(w):
    w = list(w)
    length = len(w)
    
    if length % 2 != 0:
        return False
    
    w.sort()
    for i in range(0, length, 2):
      if w[i] != w[i + 1]:
        return False
    
    return True

w = input().strip()
 
print('Yes' if isBeautiful(w) else 'No')

Submission status: Accepted

Solution code:
string = raw_input()
dic = {}
for i in range(len(string)):
  if dic.has_key(string[i]):
    del dic[string[i]]
  else:
    dic[string[i]] = True

if len(dic) == 0:
  print "Yes"
else:
  print "No"

Submission status: Accepted

Solution code:
w=str(input())
ts=list(set(w))
for t in ts:
    b=w.count(t)%2 == 0
    if not b:
        break
print('Yes' if b else 'No')

Submission status: Accepted

Solution code:


s = raw_input()
lut = {}

for c in s:
    if lut.has_key(c) :
        lut[c] += 1
    else:
        lut[c] = 1

ret = "Yes"
for c in range(ord('a'),ord('z')+1):
    c = chr(c)
    if lut.has_key(c) and lut[c] % 2 != 0:
        ret = "No"
        break

print ret

Submission status: Accepted

Solution code:
from collections import Counter
w = list(raw_input())
c = Counter(w)
for k, v in c.items():
    if v % 2 == 1:
        print "No"
        exit()
else:
    print "Yes"

Submission status: Accepted

Solution code:
from collections import Counter
w = input()
cnt = Counter()
for word in w:
    cnt[word] += 1
v = list(cnt.values())
if sum([v[i] %2 for i in range(len(cnt))]) == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import collections

w = raw_input()
bool = False

count = collections.Counter(w)
for k,v in count.items():
	if v%2 == 1:
		print "No"
		bool = False
		break
	else:
		bool = True
		pass
if bool == True:
	print "Yes"

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w = input()


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

answer = True
for value in hist.values():
  if value % 2 == 1:
    answer = False

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

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-

w = input()

chars = "abcdefghijklmnopqrstuvwxyz"

for x in chars:
    if w.count(x) % 2 != 0:
        print("No")
        break
else:
    print("Yes")

Submission status: Accepted

Solution code:
import collections
w = raw_input()
s=[]
count_dict = collections.Counter(w)
a = count_dict.values()
for i in a:
	i=i%2
	s.append(i)
b = 1
if b in s:
	print "No"
else:
	print "Yes"

Submission status: Accepted

Solution code:
from collections import Counter
print(('No','Yes')[all(i%2==0 for i in Counter(input()).values())])

Submission status: Accepted

Solution code:
w=str(raw_input())

isBeautiful = True

for c in w:
    if (w.count(c)%2)!=0:
        isBeautiful = False
        break

print "Yes" if isBeautiful else "No"

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import collections

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

Submission status: Accepted

Solution code:
import re
p = re.compile('^(.)\\1')
w = ''.join(sorted(list(raw_input())))
r = re.subn(p,'',w)
while r[1]:
    r = re.subn(p,'',r[0])
print 'No' if len(r[0]) else 'Yes'

Submission status: Accepted

Solution code:
import re
p = re.compile('^(.)\\1')
w = ''.join(sorted(list(raw_input())))
r = re.subn(p,'',w)
while r[1]:
    r = re.subn(p,'',r[0])
if len(r[0]):
    print 'No'
else:
    print 'Yes'

Submission status: Accepted

Solution code:
#ABC044B

w=raw_input()
res=True
for i in xrange(97,123):
 if w.count(chr(i))%2==0:
  res=res and True
 else:
  res=False
print "Yes" if res==True else "No"

Submission status: Accepted

Solution code:
str = input()
str_set = set(str)

for x in str_set:
    c = str.count(x)
    if c % 2 == 1:
        print('No')
        exit()

print('Yes')

Submission status: Accepted

Solution code:
from collections import Counter
print("No" if [v for v in Counter(input()).values() if v % 2] else "Yes")

Submission status: Accepted

Solution code:
from collections import Counter
print("No" if len(set([v for v in Counter(input()).values() if v % 2])) else "Yes")

Submission status: Accepted

Solution code:
c={}
for k in raw_input():c[k]=1+c[k]if k in c else 1
print"No"if any(c[k]%2 for k in c)else"Yes"

Submission status: Accepted

Solution code:
c={}
for k in raw_input():c[k]=(c[k]if k in c else 0)+1
print"No"if any(c[k]%2 for k in c)else"Yes"

Submission status: Accepted

Solution code:
c={}
for k in raw_input():
 try:c[k]+=1
 except:c[k]=1
print"Yes"if all(c[k]%2<1 for k in c)else"No"

Submission status: Accepted

Solution code:
c={}
for k in raw_input():c[k]=(c[k]if k in c else 0)+1
print"Yes"if all(c[k]%2<1 for k in c)else"No"

Submission status: Accepted

Solution code:
from collections import defaultdict
counts=defaultdict(int)
for c in raw_input():counts[c]+=1
print"Yes"if all(counts[k]%2<1 for k in counts)else"No"

Submission status: Accepted

Solution code:
from collections import defaultdict
counts = defaultdict(int)
for c in raw_input():
  counts[c] += 1
allgood = True
for k in counts:
  allgood &= (counts[k] % 2 == 0)
print "Yes" if allgood else "No"

Submission status: Accepted

Solution code:
import string

w = raw_input()
d = dict.fromkeys(string.ascii_lowercase, 0)
for i in range(len(w)):
    d[w[i]] += 1

    
finalprint = "Yes"    

for key, value in d.iteritems():
    bool = value % 2
    if bool == 0:
        continue
    else:
        finalprint = "No"
        break

print finalprint

Submission status: Accepted

Solution code:
import collections
word = raw_input()

letter_list = collections.Counter(word)
ans = 'Yes'

for item, n in letter_list.items():
    if n%2 == 0:
        continue
    else:
        ans = 'No'
        break
print ans

Submission status: Accepted

Solution code:
w=raw_input()
print"Yes"*all(w.count(chr(97+e))%2==0for e in range(26))or"No"

Submission status: Accepted

Solution code:
alp = [chr(i) for i in range(97, 97+26)]
cnt = [0] * 26

w = list(input())

for W in w:
    for i in range(26):
        if W == alp[i]:
            cnt[i] += 1

for i in range(26):
    if cnt[i] % 2 :
        print("No")
        exit()

print("Yes")

Submission status: Accepted

Solution code:
import collections
import sys
c = collections.Counter(input()).most_common()
for i in c:
	if i[1] % 2 != 0:
		print('No')
		sys.exit()

print('Yes')

Submission status: Accepted

Solution code:
w = list(input())

def check(w):
    for x in w:
        n = w.count(x)
        if n%2 == 1:
            return False
    return True

if check(w):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import defaultdict
w=input()
dic=defaultdict(int)
for c in list(w):
    dic[c]+=1
    dic[c]%=2
sum=0
for k in dic.keys():
    sum+=dic[k]
if sum>0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
#!/usr/bin/env python

from collections import Counter
w = Counter(input())
# print([(count % 2) for key, count in w.items()])
if all([(count % 2 == 0) for key, count in w.items()]):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
from Queue import * # Queue, LifoQueue, PriorityQueue
from bisect import * #bisect, insort
from collections import * #deque, Counter,OrderedDict,defaultdict
#set([]) 
import math
import copy
import itertools
import string
import sys
myread = lambda : map(int,raw_input().split())
def solver():
    memo = defaultdict(int)
    S = raw_input()
    for c in S:
        memo[c] += 1

    for v in memo.values():
        if v % 2 == 1:
            print 'No'
            return
    print 'Yes'



if __name__ == "__main__":
    solver()

Submission status: Accepted

Solution code:
from collections import Counter
print 'Yes' if all(a%2-1 for a in Counter(raw_input()).values()) else 'No'

Submission status: Accepted

Solution code:
from collections import Counter

if len(list((filter(lambda x: x%2 != 0, Counter(list(input())).values())))) > 0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
import string
W = input()
for s in string.ascii_lowercase:
    cnt = W.count(s)
    if cnt % 2 != 0:
        print("No")
        exit()
print("Yes")

Submission status: Accepted

Solution code:
x=[0]*26
for c in input():
    x[ord(c)-ord('a')] = (x[ord(c)-ord('a')] + 1) & 1
print("Yes" if sum(x) == 0 else "No")

Submission status: Accepted

Solution code:
s = raw_input()
if all(s.count(c) % 2 == 0 for c in s):
  print "Yes"
else:
  print "No"

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = str(input())

d = {}
for i in n:
    if i in d:
        d[i] += 1
    else:
        d[i] = 1

res = 'Yes'
for i in d:
    if d[i] & 1:
        res = 'No'
        break

print(res)

Submission status: Accepted

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
        break
    cnt=0
if flag == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import collections

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

Submission status: Accepted

Solution code:
w_list = list(str(input()))
w_list.sort()
l = len(w_list)

if l == 1:
    print("No")
    exit()

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: Accepted

Solution code:
from collections import defaultdict as dd
w = raw_input()

countlist = dd(int)
for i in range(len(w)):
    countlist[w[i]] += 1

flag = True
for value in countlist.itervalues():
    if value % 2 != 0:
        flag = False
        break

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

Submission status: Accepted

Solution code:
w = input()

abc = "abcdefghijklmnopqrstuvwxyz"

abc_count = []
abc_index = 0
isBeautiful = True
for ch in abc:
    abc_count.append(w.count(ch))
    if abc_count[abc_index] % 2 == 1:
        isBeautiful = False
        break
    abc_index += 1

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

Submission status: Accepted

Solution code:
w = str(raw_input())

dic = {"def":0}
for s in w:
    if s in dic.keys():
        dic[s] += 1
    else:
        dic.update({s:1})

flag = 0

for value in dic.values():
    if value%2 == 0:
        pass
    else:
        flag = 1

if flag == 0:
    print "Yes"
else:
    print "No"

Submission status: Accepted

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

Submission status: Accepted

Solution code:
'''
Created on 2016/08/28

@author: diyosko7
'''

if __name__ == '__main__':
    n = 1
    lines = [str(input()) for i in range(n)]
    line = lines[0]
    strDict = {}

    v = [line[i: i+1] for i in range(0, len(line), 1)]
    
    d = {}
    for s in v:
        d.update({s:0})
    for s in v:
        d[s] += 1  
    
    flg = True
    for k,v in d.items():
        if v%2==0:
            pass
        else:
            flg = False
    if flg==True:
        print("Yes")
    else:
        print("No")

Submission status: Accepted

Solution code:
import string
w = input()
for i in string.ascii_lowercase:
    if w.count(i)%2 == 1:
        print('No')
        break
else:
    print('Yes')

Submission status: Accepted

Solution code:
#!/usr/local/bin/python3

import os, sys

if __name__ ==  "__main__":
    d = {}
    text = input()

    for j in text:
        for i in j:
            if i not in d:
                d[i] = 1
            else :
                d[i] += 1

    # for j in d:
    #     print(j, ':', d[j])
    flag = 0
    for j in d:
        if d[j] % 2 == 0:
            continue
        else:
            flag = 1
            break
    if flag != 0:
        print('No')
    else:
        print('Yes')

Submission status: Accepted

Solution code:
str = input()
list = []

for w in range(len(str)):
    if ord(str[w]) in list :
        list.remove(ord(str[w]))
    else :
        list.append(ord(str[w]))

if len(list) == 0 :
    print('Yes')
else :
    print("No")

Submission status: Accepted

Solution code:
w = input()
d = {}

for char in w:
    if not char in d:
        d[char] = 1
    else:
        del d[char]

print('Yes' if len(d.values()) == 0 else 'No')

Submission status: Accepted

Solution code:
from collections import defaultdict
word = str(input())
count_dict = defaultdict(int)
beautiful = True
for letter in word:
    count_dict[letter] += 1
for cnt in count_dict.values():
    if cnt % 2 == 1:
        beautiful = False
if beautiful:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

if flag == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys 

w = sys.stdin.readline()
count = [0]*26

for i in w:
    if ord(i) in range(ord('a'),ord('z')+1):
        count[ord(i)-ord('a')] = count[ord(i)-ord('a')] + 1           

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

Submission status: Accepted

Solution code:
s = input()
f = True
for i in set(s):
    if s.count(i) % 2 : f = False
print('Yes' if f else 'No')

Submission status: Accepted

Solution code:
import sys
import numpy as np
w = np.array(list(raw_input()))
for c in set(w):
    if (w == c).sum() % 2 == 1:
        print 'No'
        sys.exit()
print 'Yes'

Submission status: Accepted

Solution code:
from collections import Counter
w = input()
counter = Counter(w)
str_set = set(w)

flag = 1
for s in str_set:
    if counter[s] % 2 != 0:
        print("No")
        flag = 0
        break

if flag == 1:
    print("Yes")

Submission status: Accepted

Solution code:
from collections import Counter

w = raw_input()
counter = Counter(w)

print "Yes" if all(v % 2 == 0 for v in counter.values()) else "No"

Submission status: Accepted

Solution code:
import sys

a = raw_input()

for i in a:
	s = 0
	for j in a:
		if i == j:
			s += 1 
	if s % 2 == 1:
		print "No"
		sys.exit()

print "Yes"

Submission status: Accepted

Solution code:
w=input()

if all(w.count(chr(ord('a')+i))%2==0 for i in range(26)):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import re
import doctest


class IO_for_Contest(object):
    @staticmethod
    def my_input():
        # return raw_input()
        return input()

    @staticmethod
    def read_from_input():
        # TODO: impl this for each problem
        pass

    @staticmethod
    def read_line():
        return IO_for_Contest.my_input().strip()

    @staticmethod
    def read_int():
        return int(IO_for_Contest.my_input().strip())

    @staticmethod
    def read_n_int(n):
        return list(map(
                    int,
                    re.split('\s+', IO_for_Contest.my_input().strip())))[ : n]

def solve():
    ceil = 100
    string = IO_for_Contest.read_line()[: ceil]
    s = set(string)
    for xx in string:
        s.add(xx)
    for e in s:
        if string.count(e) % 2 != 0:
            print('No')
            return
    print('Yes')


if __name__ == '__main__':
    # doctest.testmod()
    solve()

Submission status: Accepted

Solution code:
# Enter your code here. Read input from STDIN. Print output to STDOUT
from sys import stdin
ans = 'Yes'
s = set()
a = stdin.readline().strip()
for i in a:
 if i in s:
  s.remove(i)
 else:
  s.add(i)
if len(s):
 ans = 'No'
print ans

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w=raw_input()
l=[0]*26
for i in w:
    l[ord(i)-97]+=1
for i in l:
    if i%2:
        print 'No'
        exit()
print 'Yes'
exit()

Submission status: Accepted

Solution code:
from collections import Counter

w = input()

c = Counter(w)

for _, v in c.items():
    if v % 2 != 0:
        print('No')
        break
else:
    print('Yes')

Submission status: Accepted

Solution code:
s = raw_input()

count = {}
for i in s:
    count.setdefault(i,0)
    count[i] += 1

ok = True

for c in count:
    if(count[c]%2!=0): ok = False

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

Submission status: Accepted

Solution code:
import collections
print('Yes' if len([1 for x in collections.Counter(input()).values() if x % 2]) == 0 else 'No')

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;

int main() {
  string s;
  cin >> s;
  for (char c = 97; c <= 122; c++) {
    if (count(s.begin(), s.end(), c) % 2 != 0) {
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;

  return 0;
}

Submission status: Runtime Error

Solution code:
w = input()
X = [0 for i in range(26)]
for i in range(len(w)):
  X[ord(w[i]) - 97] ^= 1
if sum(X) == 0:
  print("Yes")
else:
  print("No)

Submission status: Runtime Error

Solution code:

def inp():
    return int(input())
def inpl():
    return list(map(int, input().split()))
def dbg(o):
    print(o, file=sys.stderr)

# ---------------------------------------

def main():
    s = input()
    dc = {}
    for st in s:
        if not st in dc:
            dc[st] = 1
        else:
            dc[st] += 1
    dbg(dc)
    for k, v in dc.items():
        if v % 2 == 1:
            print("No")
            exit()
    print("Yes")

main()

Submission status: Runtime Error

Solution code:
w=input()
list_w=list(w)
count1=0
if(len(list_w)==1):
	print("No")
else:		
	for i in range(0,len(w)):
		a=w.count(w[i])
	    if(a%2==0):
			count1+=1
		elif(a%2 != 0):
		     count1-=1
	if(count1>0):
	    print("Yes")
    elif(count1<0):
	    print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = input()
di = {}
for c in s:
  di[c] = 0
for c in s:
  di[c] +=1
  
is_beautiful = True
for c in s:
  if di[c] %2 ==1:
    is_beautiful = False

print('Yes' is is_beautiful else 'No')

Submission status: Runtime Error

Solution code:
n = int(input())
A = [int(m) for m in input().split()]
print(max(A)-min(A))

Submission status: Runtime Error

Solution code:
n = input()
dic = [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]
for i in range(26):
  if n.count(str(dic[i]))%2!=0:
    print("No")
    exit()
print("Yes")

Submission status: Runtime Error

Solution code:
n = input()
dic = [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]
for i in range(26):
  if n.count(dic[i])%2!=0:
    print("No")
    exit()
print("Yes")

Submission status: Runtime Error

Solution code:
w = input()

s = {}
for c  in w:
    s[c] += 1

b = True
for k,v in s.items():
    b = b and v % 2 == 0

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

Submission status: Runtime Error

Solution code:
n = input()
ans = 0
for i ih set(n):
  if n.count(i) % 2 == 0:
    ans += 1
    
if ans == len(set(n)):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
w =str(input())

length = len(w)
z = sorted(w)
i=0
while i < length:
    if z[i]==z[i+1]:
        i += 2
    else:
        print("No")
        break
if i >= length-1:
    print("Yes")

Submission status: Runtime Error

Solution code:
W = input()
W_list = set(list(s for s in W))
ans = True 
for s in W_list:
    if W.count(s) % 2 != 0
        False
        break

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

Submission status: Runtime Error

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

for in in w:
    A[ord(i) - 97] += 1

flag = True
for a in A:
    if a % 2 == 1:
        flag = False


if flag == False:
    print("No")
else:
    print("Yes")

Submission status: Runtime Error

Solution code:
s = input()
alphabets = [0] * 26
for i in range(len(s)):
    x = ord(s[i])
    alphabets[x-97] += 1
flag = True
for x in alphabets:
    if x % 2 != 0:
        ok = False
if ok:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
s = input()
d = {}
for i in s:
  if i in d:
    d[i] += 1
  else:
    d[i] = 1

for key in d:
  if d[key] %2 != 0
  	print("No")
    break

Submission status: Runtime Error

Solution code:
from collection import Counter
S = list(input())

C = Counter(S)

ok = True
for s,x in list(C.items()):
  if x % 2 != 0:
    ok = False
    break

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

Submission status: Runtime Error

Solution code:
from collection import Counter
S = list(input())

C = Counter(S)

ok = True
for s,x in C.items():
  if x % 2 != 0:
    ok = False
    break

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

Submission status: Runtime Error

Solution code:
NN = input()
total = 0
for i in NN:
  a = NN.count(i)
  if a%2 ==0:
    pass
  else:
    totaL +=1
if total ==0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
s=input()
d={}
for i in s:
  d.get(i,0)+=1
for i in set(s):
  if d[i]%2==1:
    print("No")
    break
else:
  print("Yes")

Submission status: Runtime Error

Solution code:
s=input()
d={}
for i in s:
  d.get(i,0)+=1
for i in set(s):
  if i%2==1:
    print("No")
    break
else:
  print("Yes")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = list(input())
even_number = range(0,101,2)
values,count = *zip(a.most_common())

if even_number in count:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
w=input()

dict={}
alh="abcdefghijklmnopqrstuvwxyz"
for i in alh:
  dict[i]=0
for i in w:
  dict[i]+=1
flag=True
for j in range(len(dict)):
  if dict[j]%2==1:
    flag=False
if flag:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
w=input()

dict={}
for i in w:
  dict[i]+=1
flag=True
for j in range(len(dict)):
  if dict[j]%2==1:
    flag=False
if flag:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
/**
 *  winners never quit
**/

#include <bits/stdc++.h>

using namespace std;

#define pb push_back
#define mp make_pair
typedef long long Long;
void FastIO(){
  ios::sync_with_stdio(0);
  cin.tie(0);cout.tie(0);
}

const int N = 1e4;

int main()
{
  FastIO();
  int tc, ca = 0;
  string s;
  cin >> s;
  vector <int> v(26, 0);
  for (int i = 0;i < s.size();i++){
    v[s[i]-97]++;
  }
  string ans = "Yes";
  for (int i = 0;i < 26;i++){
    if (v[i]%2){
      ans = "No";
      break;
    }
  }
  cout << ans << '\n';
  return 0;
}

Submission status: Runtime Error

Solution code:
s=input()
t=input()
letters=[]
count=[]
for i in range(len(s)):
  if s[i] in letters:
    count[letters.index(s[i])].append(i)
  else:
    count.append([i])
    letters.append(s[i])
failflag=0
for i in count:
  r=t[i[0]]
  for j in i:
    if t[j]!=r:
      failflag=1
letters=[]
count=[]
for i in range(len(s)):
  if t[i] in letters:
    count[letters.index(t[i])].append(i)
  else:
    count.append([i])
    letters.append(t[i])
for i in count:
  r=s[i[0]]
  for j in i:
    if s[j]!=r:
      failflag=1
if failflag==0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
import sys

w = str(input())
arr = []

for i in range(0,len(w)):
  arr.append(w[i])
arr = sorted(arr)

for i in range(0,len(w),2):
  if arr[i] != arr[i+1]:
    print("No")
    sys.exit()
print("Yes")

Submission status: Runtime Error

Solution code:
s=list(input())
flag="Yes"
while(len(s)>0):
  d=s[0]
  if s.count(d)%2==1:
    flag="No"
    break
  else:
    for i in range(s.count(d)):
      s.remove(d)
print(frag)