s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time int64 0 100 | memory stringlengths 4 6 | code_size int64 15 14.7k | code stringlengths 15 14.7k | problem_id stringlengths 6 6 | problem_description stringlengths 358 9.83k | input stringlengths 2 4.87k | output stringclasses 807
values | __index_level_0__ int64 1.1k 1.22M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s672966145 | p04012 | u272496669 | 1478454296 | Python | Python (3.4.3) | py | Accepted | 24 | 3188 | 545 | w = input()
def g(num):
if num%2 == 0:
return 1
else:
return 0
if g(w.count('a'))*g(w.count('b'))*g(w.count('c'))*g(w.count('d'))*g(w.count('e'))*g(w.count('f'))*g(w.count('g'))*g(w.count('h'))*g(w.count('i'))*g(w.count('j'))*g(w.count('k'))*g(w.count('l'))*g(w.count('m'))*g(w.count('n'))*g(w.count(... | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,671 |
s252686277 | p04012 | u354630369 | 1477794003 | Python | Python (2.7.6) | py | Accepted | 16 | 2696 | 186 | w = raw_input()
if len(w) % 2 != 0:
print 'No'
else:
answer = 'Yes'
for s in w:
if w.count(s) % 2 != 0:
answer = 'No'
break
print answer
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,672 |
s226098176 | p04012 | u117095520 | 1477598377 | Python | Python (2.7.6) | py | Accepted | 20 | 2936 | 182 | from collections import Counter
w = raw_input()
count_dict = Counter(w)
for key in count_dict:
if count_dict[key] % 2 != 0:
print 'No'
break
else:
print 'Yes' | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,673 |
s862090284 | p04012 | u234154017 | 1477273114 | Python | Python (3.4.3) | py | Accepted | 22 | 3064 | 300 | import sys
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")
sys.exit()
counter = 1
if counter % 2 == 0 :
print('Yes')
else:
print('No') | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,674 |
s752559229 | p04012 | u039623862 | 1477201369 | Python | Python (3.4.3) | py | Accepted | 26 | 3316 | 126 | import collections
s = input()
cnt = collections.Counter(s)
print('Yes' if all([v % 2 == 0 for v in cnt.values()]) else 'No')
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,675 |
s295862016 | p04012 | u448407332 | 1477021705 | Python | Python (2.7.6) | py | Accepted | 17 | 2568 | 264 | 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'
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,676 |
s649796027 | p04012 | u272028993 | 1476760512 | Python | Python (2.7.6) | py | Accepted | 17 | 2808 | 213 | 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") | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,677 |
s445093199 | p04012 | u471797506 | 1476590543 | Python | Python (2.7.6) | py | Accepted | 27 | 3984 | 247 | # -*- 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"
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,678 |
s764910207 | p04012 | u107077660 | 1476378050 | Python | Python (3.4.3) | py | Accepted | 29 | 3444 | 139 | from collections import Counter
s = input()
c = Counter(s).values()
for n in c:
if n & 1 == 1:
print("No")
break
else:
print("Yes")
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,679 |
s723039363 | p04012 | u596276291 | 1476230023 | Python | Python (3.4.3) | py | Accepted | 27 | 3316 | 244 | 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()
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,680 |
s582965645 | p04012 | u065683101 | 1475460015 | Python | Python (3.4.3) | py | Accepted | 24 | 3064 | 309 | 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()
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,681 |
s058124470 | p04012 | u133038626 | 1475362470 | Python | Python (3.4.3) | py | Accepted | 27 | 3316 | 121 | import collections
o = "Yes"
for v in collections.Counter(input().strip()).values():
if v % 2 != 0: o = "No"
print(o) | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,682 |
s278537116 | p04012 | u518732500 | 1474877738 | Python | Python (3.4.3) | py | Accepted | 26 | 3316 | 288 | 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()
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,683 |
s840955014 | p04012 | u059940903 | 1474844649 | Python | Python (2.7.6) | py | Accepted | 17 | 2568 | 163 | 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"
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,684 |
s615164024 | p04012 | u575473686 | 1474744113 | Python | Python (3.4.3) | py | Accepted | 22 | 3064 | 267 | 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') | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,685 |
s103809456 | p04012 | u476127533 | 1474691935 | Python | Python (2.7.6) | py | Accepted | 16 | 2568 | 270 | 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) | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,686 |
s972689315 | p04012 | u696805736 | 1474000421 | Python | Python (3.4.3) | py | Accepted | 38 | 3064 | 162 | 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)
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,687 |
s995940961 | p04012 | u480847874 | 1473953052 | Python | Python (3.4.3) | py | Accepted | 37 | 3064 | 322 | 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... | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,688 |
s529009770 | p04012 | u628586611 | 1473926528 | Python | Python (3.4.3) | py | Accepted | 39 | 3064 | 81 | w=input()
print("Yes" if not sum([w.count(i)%2 for i in list(set(w))]) else "No") | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,689 |
s049064660 | p04012 | u522204654 | 1473627986 | Python | Python (2.7.6) | py | Accepted | 29 | 2820 | 163 | 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" | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,690 |
s143751480 | p04012 | u971321372 | 1473584646 | Python | PyPy2 (5.6.0) | py | Accepted | 57 | 8816 | 203 | 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' | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,691 |
s928309216 | p04012 | u870040448 | 1473565144 | Python | Python (2.7.6) | py | Accepted | 27 | 2568 | 103 | w = raw_input()
for c in w :
if w.count(c) % 2 != 0 :
print "No"
break
else :
print "Yes"
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,692 |
s783498607 | p04012 | u315078622 | 1473546880 | Python | Python (3.4.3) | py | Accepted | 54 | 3828 | 108 | from collections import Counter
print("Yes" if all(x % 2 == 0 for x in Counter(input()).values()) else "No") | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,693 |
s925018198 | p04012 | u820351940 | 1473545595 | Python | Python (3.4.3) | py | Accepted | 39 | 3064 | 85 | text = input()
print('No' if any([text.count(x) & 1 for x in set(text)]) else 'Yes')
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,694 |
s369476922 | p04012 | u343675824 | 1473533615 | Python | Python (3.4.3) | py | Accepted | 66 | 4276 | 185 | 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" )
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,695 |
s108047115 | p04012 | u820839927 | 1473473571 | Python | Python (2.7.6) | py | Accepted | 28 | 2692 | 163 | 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
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,696 |
s042168658 | p04012 | u482544950 | 1473448031 | Python | Python (3.4.3) | py | Accepted | 41 | 3188 | 308 | 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")
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,697 |
s469026645 | p04012 | u284188208 | 1473351013 | Python | Python (2.7.6) | py | Accepted | 28 | 2568 | 189 | 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" | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,698 |
s420405013 | p04012 | u105412073 | 1473287171 | Python | Python (3.4.3) | py | Accepted | 39 | 3064 | 166 | # 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") | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,699 |
s995268530 | p04012 | u839224193 | 1473280848 | Python | Python (3.4.3) | py | Accepted | 39 | 3064 | 102 | w = input()
r = 'Yes'
for c in w:
if w.count(c) % 2 != 0:
r = 'No'
break
print(r)
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,700 |
s219754737 | p04012 | u514826602 | 1473280817 | Python | Python (3.4.3) | py | Accepted | 38 | 3188 | 323 | # 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 'N... | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,701 |
s673765026 | p04012 | u095015466 | 1473274654 | Python | Python (2.7.6) | py | Accepted | 28 | 2568 | 196 | 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" | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,702 |
s030424048 | p04012 | u550734883 | 1473251458 | Python | Python (3.4.3) | py | Accepted | 39 | 3064 | 123 | 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') | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,703 |
s550858063 | p04012 | u664031692 | 1473185583 | Python | Python (2.7.6) | py | Accepted | 29 | 2568 | 264 |
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 | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,704 |
s672015267 | p04012 | u544337787 | 1473182755 | Python | Python (2.7.6) | py | Accepted | 30 | 2808 | 167 | 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"
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,705 |
s751374884 | p04012 | u425448230 | 1473180220 | Python | Python (3.4.3) | py | Accepted | 54 | 3828 | 204 | 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") | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,706 |
s082432628 | p04012 | u679071005 | 1473100050 | Python | Python (2.7.6) | py | Accepted | 28 | 2808 | 214 | 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" | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,707 |
s588771746 | p04012 | u871239364 | 1473092083 | Python | Python (3.4.3) | py | Accepted | 37 | 3064 | 137 | 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")
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,708 |
s223415634 | p04012 | u212829728 | 1473050420 | Python | Python (3.4.3) | py | Accepted | 41 | 3064 | 250 | 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') | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,709 |
s184842241 | p04012 | u875021335 | 1473022503 | Python | Python (3.4.3) | py | Accepted | 39 | 3064 | 185 | # -*- coding:utf-8 -*-
w = input()
chars = "abcdefghijklmnopqrstuvwxyz"
for x in chars:
if w.count(x) % 2 != 0:
print("No")
break
else:
print("Yes")
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,710 |
s838236370 | p04012 | u945094648 | 1472963697 | Python | Python (2.7.6) | py | Accepted | 34 | 2812 | 179 | 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" | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,711 |
s714387260 | p04012 | u862517767 | 1472904792 | Python | Python (3.4.3) | py | Accepted | 49 | 3444 | 99 | from collections import Counter
print(('No','Yes')[all(i%2==0 for i in Counter(input()).values())]) | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,712 |
s524964828 | p04012 | u542939897 | 1472884225 | Python | Python (2.7.6) | py | Accepted | 29 | 2692 | 158 | 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"
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,713 |
s779206737 | p04012 | u713368238 | 1472841330 | Python | Python (3.4.3) | py | Accepted | 38 | 3064 | 125 | w = list(input())
x = set(w)
for i in x:
if w.count(i) % 2 != 0:
print('No')
break
else:
print('Yes') | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,714 |
s267479146 | p04012 | u030110634 | 1472760256 | Python | Python (3.4.3) | py | Accepted | 53 | 3832 | 151 | import string
import sys
w = input()
for c in string.ascii_lowercase:
if w.count(c) % 2 == 1:
print("No")
sys.exit()
print("Yes") | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,715 |
s416556262 | p04012 | u030110634 | 1472760121 | Python | Python (3.4.3) | py | Accepted | 45 | 3316 | 143 | import collections
for v in collections.Counter(input()).values():
if v % 2 != 0:
print("No")
break
else:
print("Yes") | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,716 |
s288246075 | p04012 | u338686846 | 1472747595 | Python | Python (2.7.6) | py | Accepted | 27 | 2568 | 168 | 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' | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,717 |
s522573811 | p04012 | u338686846 | 1472746173 | Python | Python (2.7.6) | py | Accepted | 28 | 2568 | 185 | 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'
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,718 |
s278941834 | p04012 | u886545507 | 1472741207 | Python | Python (2.7.6) | py | Accepted | 29 | 2568 | 157 | #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"
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,719 |
s221622064 | p04012 | u123849480 | 1472685380 | Python | Python (3.4.3) | py | Accepted | 38 | 3064 | 140 | str = input()
str_set = set(str)
for x in str_set:
c = str.count(x)
if c % 2 == 1:
print('No')
exit()
print('Yes') | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,720 |
s483903070 | p04012 | u337931720 | 1472620598 | Python | Python (2.7.6) | py | Accepted | 25 | 2568 | 97 | 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" | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,721 |
s247884617 | p04012 | u337931720 | 1472620424 | Python | Python (2.7.6) | py | Accepted | 27 | 2568 | 99 | 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" | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,722 |
s321222738 | p04012 | u337931720 | 1472620361 | Python | Python (2.7.6) | py | Accepted | 27 | 2568 | 100 | 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" | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,723 |
s733341612 | p04012 | u337931720 | 1472620237 | Python | Python (2.7.6) | py | Accepted | 27 | 2568 | 101 | 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" | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,724 |
s291573291 | p04012 | u337931720 | 1472618826 | Python | Python (2.7.6) | py | Accepted | 28 | 2808 | 149 | 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" | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,725 |
s654644054 | p04012 | u337931720 | 1472618280 | Python | Python (2.7.6) | py | Accepted | 32 | 2812 | 199 | 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" | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,726 |
s889511373 | p04012 | u088454437 | 1472617850 | Python | Python (2.7.6) | py | Accepted | 27 | 2692 | 303 | 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 | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,727 |
s798419833 | p04012 | u411544692 | 1472616467 | Python | Python (2.7.6) | py | Accepted | 30 | 2812 | 215 | 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
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,728 |
s802767916 | p04012 | u226155577 | 1472612636 | Python | Python (2.7.6) | py | Accepted | 27 | 2568 | 78 | w=raw_input()
print"Yes"*all(w.count(chr(97+e))%2==0for e in range(26))or"No"
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,729 |
s873468207 | p04012 | u742897895 | 1472608894 | Python | Python (3.4.3) | py | Accepted | 39 | 3064 | 249 | 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") | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,730 |
s516071431 | p04012 | u474821089 | 1472580717 | Python | Python (3.4.3) | py | Accepted | 39 | 3064 | 187 | 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")
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,731 |
s540273813 | p04012 | u163073599 | 1472570237 | Python | Python (3.4.3) | py | Accepted | 39 | 3064 | 73 | w = input()
print("Yes" if all([w.count(x)%2 == 0 for x in w]) else "No") | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,732 |
s781645895 | p04012 | u591287669 | 1472565106 | Python | Python (3.4.3) | py | Accepted | 45 | 3316 | 205 | 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')
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,733 |
s548674422 | p04012 | u461954362 | 1472559755 | Python | Python (3.4.3) | py | Accepted | 45 | 3316 | 222 | #!/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")
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,734 |
s378262486 | p04012 | u453847760 | 1472493147 | Python | Python (2.7.6) | py | Accepted | 40 | 3292 | 537 | 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... | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,735 |
s645388136 | p04012 | u830390742 | 1472482676 | Python | Python (2.7.6) | py | Accepted | 36 | 2812 | 107 | from collections import Counter
print 'Yes' if all(a%2-1 for a in Counter(raw_input()).values()) else 'No'
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,736 |
s898304366 | p04012 | u886790158 | 1472469083 | Python | Python (3.4.3) | py | Accepted | 47 | 3316 | 153 | from collections import Counter
if len(list((filter(lambda x: x%2 != 0, Counter(list(input())).values())))) > 0:
print('No')
else:
print('Yes')
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,737 |
s341290073 | p04012 | u010733367 | 1472459425 | Python | Python (3.4.3) | py | Accepted | 60 | 3960 | 149 | import string
W = input()
for s in string.ascii_lowercase:
cnt = W.count(s)
if cnt % 2 != 0:
print("No")
exit()
print("Yes")
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,738 |
s803844288 | p04012 | u024612773 | 1472452410 | Python | Python (3.4.3) | py | Accepted | 39 | 3064 | 118 | 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") | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,739 |
s758077211 | p04012 | u445498124 | 1472443481 | Python | Python (2.7.6) | py | Accepted | 27 | 2568 | 88 | s = raw_input()
if all(s.count(c) % 2 == 0 for c in s):
print "Yes"
else:
print "No" | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,740 |
s514605051 | p04012 | u352021237 | 1472442420 | Python | PyPy2 (5.6.0) | py | Accepted | 66 | 8816 | 112 | 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" | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,741 |
s454588387 | p04012 | u385672078 | 1472437317 | Python | Python (3.4.3) | py | Accepted | 39 | 3064 | 184 | 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)
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,742 |
s286362705 | p04012 | u077080573 | 1472436750 | Python | Python (3.4.3) | py | Accepted | 39 | 3064 | 236 | 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")
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,743 |
s731341540 | p04012 | u562283476 | 1472436193 | Python | Python (3.4.3) | py | Accepted | 44 | 3064 | 234 | 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")
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,744 |
s484165677 | p04012 | u429995021 | 1472436132 | Python | Python (2.7.6) | py | Accepted | 32 | 2812 | 285 | 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")
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,745 |
s746711640 | p04012 | u161703388 | 1472435290 | Python | Python (3.4.3) | py | Accepted | 36 | 3064 | 301 | 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")
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,746 |
s126552421 | p04012 | u442810826 | 1472435171 | Python | Python (2.7.6) | py | Accepted | 25 | 2568 | 281 | 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"
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,747 |
s204906128 | p04012 | u107077660 | 1472434978 | Python | Python (3.4.3) | py | Accepted | 38 | 3064 | 90 | w = input()
for l in w:
if w.count(l) % 2 == 1:
print("No")
break
else:
print("Yes") | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,748 |
s634839900 | p04012 | u495677768 | 1472434807 | Python | Python (3.4.3) | py | Accepted | 37 | 3064 | 505 | '''
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
... | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,749 |
s445380631 | p04012 | u495677768 | 1472434807 | Python | Python (3.4.3) | py | Accepted | 39 | 3064 | 505 | '''
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
... | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,750 |
s836765402 | p04012 | u824147251 | 1472434663 | Python | Python (3.4.3) | py | Accepted | 60 | 4216 | 141 | import string
w = input()
for i in string.ascii_lowercase:
if w.count(i)%2 == 1:
print('No')
break
else:
print('Yes') | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,751 |
s856457282 | p04012 | u632731979 | 1472434660 | Python | Python (3.4.3) | py | Accepted | 37 | 3064 | 484 | #!/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:
... | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,752 |
s634864234 | p04012 | u046672878 | 1472434531 | Python | Python (3.4.3) | py | Accepted | 40 | 3188 | 218 | 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")
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,753 |
s687252404 | p04012 | u776270419 | 1472434236 | Python | Python (3.4.3) | py | Accepted | 38 | 3064 | 155 | 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')
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,754 |
s742483812 | p04012 | u712335892 | 1472433852 | Python | Python (3.4.3) | py | Accepted | 49 | 3572 | 283 | 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')
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,755 |
s869506525 | p04012 | u177721681 | 1472433395 | Python | Python (2.7.6) | py | Accepted | 27 | 2568 | 266 | 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' | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,756 |
s836042681 | p04012 | u966695411 | 1472433214 | Python | Python (3.4.3) | py | Accepted | 38 | 3064 | 99 | s = input()
f = True
for i in set(s):
if s.count(i) % 2 : f = False
print('Yes' if f else 'No') | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,757 |
s171344908 | p04012 | u393971002 | 1472433171 | Python | Python (3.4.3) | py | Accepted | 46 | 3572 | 221 | 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")
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,758 |
s717384530 | p04012 | u941268675 | 1472433112 | Python | Python (2.7.6) | py | Accepted | 35 | 2812 | 137 | from collections import Counter
w = raw_input()
counter = Counter(w)
print "Yes" if all(v % 2 == 0 for v in counter.values()) else "No" | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,759 |
s201641696 | p04012 | u786082266 | 1472433097 | Python | Python (2.7.6) | py | Accepted | 26 | 2568 | 139 | 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" | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,760 |
s870664418 | p04012 | u257374434 | 1472433058 | Python | Python (3.4.3) | py | Accepted | 38 | 3064 | 107 | w=input()
if all(w.count(chr(ord('a')+i))%2==0 for i in range(26)):
print('Yes')
else:
print('No') | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,761 |
s400152677 | p04012 | u552668967 | 1472433008 | Python | Python (2.7.6) | py | Accepted | 25 | 2568 | 231 | # 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 | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,762 |
s550420452 | p04012 | u821262411 | 1472432976 | Python | Python (3.4.3) | py | Accepted | 38 | 3064 | 145 | w=list(input())
alpha=list('abcdefghijklmnopqrstuvwxyz')
for i in alpha:
if w.count(i)%2 ==1:
print('No')
exit()
print('Yes') | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,763 |
s517121394 | p04012 | u123756661 | 1472432900 | Python | Python (2.7.6) | py | Accepted | 28 | 2692 | 131 | 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() | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,764 |
s129854834 | p04012 | u496694349 | 1472432816 | Python | Python (3.4.3) | py | Accepted | 45 | 3316 | 161 | from collections import Counter
w = input()
c = Counter(w)
for _, v in c.items():
if v % 2 != 0:
print('No')
break
else:
print('Yes')
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,765 |
s926109226 | p04012 | u758661720 | 1472432795 | Python | Python (2.7.6) | py | Accepted | 27 | 2568 | 183 | 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' | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,199,766 |
s241164680 | p04013 | u626337957 | 1601153812 | Python | PyPy3 (7.3.0) | py | Accepted | 100 | 69464 | 376 | N, A = map(int, input().split())
nums = list(map(int, input().split()))
MAX = A*N
dp = [[0 for _ in range(A*N+1)] for _ in range(N+1)]
dp[0][0] = 1
for k, num in enumerate(nums, start=1):
for i in range(N-1, -1, -1):
for j in range(A*N-1, -1, -1):
if j + num <= A*N:
dp[i+1][j+num] += dp[i][j]
ans = ... | p04013 | <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Tak has <var>N</var> cards. On the <var>i</var>-th <var>(1 \leq i \leq N)</var> card is written an integer <var>x_i</var>.
He is selecting one or more cards from these <var>N</var> cards, so that the av... | 4 8
7 9 8 9
| 5
| 1,199,767 |
s056994900 | p04013 | u285891772 | 1600220194 | Python | Python (3.8.2) | py | Accepted | 45 | 10036 | 1,568 | import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, tan, asin, acos, atan, radians, degrees, log2, gcd
from itertools import accumulate, permutations, combinations, combinations_with_replacement, product, groupby
from operator import itemgetter... | p04013 | <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Tak has <var>N</var> cards. On the <var>i</var>-th <var>(1 \leq i \leq N)</var> card is written an integer <var>x_i</var>.
He is selecting one or more cards from these <var>N</var> cards, so that the av... | 4 8
7 9 8 9
| 5
| 1,199,768 |
s935026038 | p04013 | u968166680 | 1599966414 | Python | Python (3.8.2) | py | Accepted | 74 | 9260 | 537 | import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007
def main():
N, A, *X = map(int, read().split())
X = [x - A for x in X]
base = 2500
dp = [0] * 5001
dp[base] = 1
for i in range(N):
... | p04013 | <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Tak has <var>N</var> cards. On the <var>i</var>-th <var>(1 \leq i \leq N)</var> card is written an integer <var>x_i</var>.
He is selecting one or more cards from these <var>N</var> cards, so that the av... | 4 8
7 9 8 9
| 5
| 1,199,769 |
s880573655 | p04013 | u923270446 | 1599424953 | Python | Python (3.8.2) | py | Accepted | 42 | 9560 | 288 | from collections import defaultdict
n, a = map(int, input().split())
x = list(map(int, input().split()))
x.sort()
x = list(map(lambda x:x - a, x))
dic = defaultdict(int)
dic[0] = 1
for i in x:
for j, k in list(dic.items()):
dic[j + i] = dic.get(j + i, 0) + k
print(dic[0] - 1) | p04013 | <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Tak has <var>N</var> cards. On the <var>i</var>-th <var>(1 \leq i \leq N)</var> card is written an integer <var>x_i</var>.
He is selecting one or more cards from these <var>N</var> cards, so that the av... | 4 8
7 9 8 9
| 5
| 1,199,770 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.