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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s338595255 | p04012 | u996276765 | 1545501346 | Python | Python (3.4.3) | py | Accepted | 24 | 3316 | 197 | from collections import Counter
w = list(input())
count = Counter(w)
flag = True
for i in count.values():
if i % 2 != 0:
flag = False
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,371 |
s713760675 | p04012 | u782098901 | 1545495935 | Python | Python (3.4.3) | py | Accepted | 22 | 3316 | 138 | import collections
w = input()
c = collections.Counter(w)
if all(i % 2 == 0 for i in c.values()):
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,372 |
s807882916 | p04012 | u364741711 | 1545494617 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 127 | import sys
l=list(input())
for i in range(97, 97+26):
if l.count(chr(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,373 |
s685762397 | p04012 | u297574184 | 1545442618 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 73 | ws=list(input())
ws.sort()
print('Yes' if ws[::2] == ws[1::2] 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,374 |
s672838999 | p04012 | u546074985 | 1545411247 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 134 | w = input()
for x in w:
if w.count(x) % 2 == 0:
pass
else:
break
else:
print("Yes")
exit()
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,375 |
s872016507 | p04012 | u589726284 | 1545258222 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 143 | import collections
w = input()
c = collections.Counter(w)
result = 'Yes'
for v in c:
if c[v] % 2 != 0:
result = 'No'
print(result)
| 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,376 |
s455819810 | p04012 | u887207211 | 1545192513 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 159 | w = input()
words = list(set(w))
cnt = 0
for word in words:
if(w.count(word)%2 == 0):
cnt += 1
if(cnt == len(words)):
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,377 |
s060769762 | p04012 | u880373275 | 1545170822 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 285 | def main():
chars = dict()
for c in input():
if not c in chars:
chars[c] = 1
else:
chars[c] += 1
if all(v % 2 == 0 for v in chars.values()):
print('Yes')
else:
print('No')
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,378 |
s372456670 | p04012 | u641406334 | 1545150678 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 132 | char = [chr(ord('a')+i) for i in range(26)]
w = input()
for i in char:
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,379 |
s519864191 | p04012 | u557437077 | 1544847758 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 210 | _w = input()
w = [_w[i] for i in range(len(_w))]
if len(w) % 2 == 1:
print("No")
exit()
w.sort()
for i in range(int(len(w)/2)):
if w[i*2] != w[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,380 |
s721864264 | p04012 | u798086274 | 1544569649 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 134 | s = input()
d = set()
for i in s:
if i in d:
d.remove(i)
else:
d.add(i)
if d == set():
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,381 |
s047687141 | p04012 | u695811449 | 1544522665 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 169 | import sys
w=input()
from collections import Counter
counter=Counter(w)
for i in counter.values():
if i%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,382 |
s042061311 | p04012 | u764056643 | 1544504169 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 162 | cnt = [0] * 26
s = input()
for c in s:
cnt[ord(c) - ord('a')] += 1
ans = True
for c in range(26):
if cnt[c] % 2 != 0:
print('No')
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,383 |
s900134199 | p04012 | u201234972 | 1544489034 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 147 | w = input()
A = [0]*26
for v in w:
A[ ord(v) - ord('a')] = ( A[ ord(v) - ord('a')] + 1)%2
if sum(A) > 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,384 |
s625897480 | p04012 | u514383727 | 1544248605 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 156 | w = list(input())
wd = {s:0 for s in w}
for s in w:
wd[s] += 1
for d in wd.values():
if d % 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,385 |
s493729033 | p04012 | u572542887 | 1544125735 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 169 | import collections
import sys
line = input()
c = collections.Counter(line)
for i in c.values():
if 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,386 |
s604152733 | p04012 | u761529120 | 1544061938 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 136 | import sys
W = input()
set_w = set(W)
for i in set_w:
if W.count(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,387 |
s743228707 | p04012 | u555962250 | 1544060392 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 127 | w = input()
d = {}
for i in w:
d[i] = d.get(i, 0) + 1
for i in d:
if d[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,388 |
s076284092 | p04012 | u858136677 | 1544049167 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 179 | import collections
w = list(input())
a = collections.Counter(w)
check = True
for i in a:
if a[i]%2 != 0:
check = False
if check:
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,389 |
s794236933 | p04012 | u620945921 | 1543719573 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 145 | s=list(input())
s.sort()
t=set(s)
t=list(t)
flag=0
for i in range(len(t)):
if s.count(t[i])%2==1:
flag=1
print('Yes' if flag==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,390 |
s622090435 | p04012 | u844789719 | 1543424804 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 167 | count = [0] * 26
for c in input():
count['abcdefghijklmnopqrstuvwxyz'.index(c)] += 1
for n in count:
if n % 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,391 |
s714543323 | p04012 | u140251125 | 1543415565 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 150 | # input
w = input()
ans = 0
for c in list(set(w)):
if w.count(c) % 2 == 1:
ans += 1
if ans == 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,392 |
s108768797 | p04012 | u993642190 | 1543298952 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 208 | import collections
S = list(input())
counter = collections.Counter(S)
is_pretty = True
for v in counter.values() :
if v % 2 != 0 :
is_pretty = False
if (is_pretty) :
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,393 |
s722756350 | p04012 | u432805419 | 1543289759 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 146 | moji = list(input())
mojiset = list(set(moji))
for moj in mojiset:
if moji.count(moj) % 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,394 |
s069572110 | p04012 | u371763408 | 1543244628 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 138 | from collections import Counter
w = Counter(input()).most_common()
for _, i in w:
if i % 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,395 |
s325252730 | p04012 | u869728296 | 1542905973 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 169 | import collections
w=input()
c=collections.Counter(w)
keys=[k for k , v in c.items() if v%2!=0]
#print(keys)
if(len(keys)==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,396 |
s339943592 | p04012 | u919521780 | 1542827395 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 219 | from collections import Counter
flag = True
w = input()
c = Counter(w)
l = c.most_common()
for e in l:
if e[1] % 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,397 |
s982698883 | p04012 | u353919145 | 1542825625 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 205 | w = input()
al = dict([(chr(i),0) for i in range(97, 97+26)])
for i in range(len(w)):
al[w[i]] += 1
for keys,valuse in al.items():
if valuse%2 != 0:
print("No")
quit()
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,398 |
s283727528 | p04012 | u001024152 | 1542336592 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 195 | w = list(input())
cnt = [0]*26
for wi in w:
index = ord(wi)-ord("a")
cnt[index] += 1
for i in range(26):
if cnt[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,399 |
s654822596 | p04012 | u255280439 | 1542307779 | Python | Python (3.4.3) | py | Accepted | 50 | 5028 | 3,122 | import sys
import math
import collections
import itertools
import array
import inspect
# Set max recursion limit
sys.setrecursionlimit(1000000)
# Debug output
def chkprint(*args):
names = {
id(v): k
for k, v in inspect.currentframe().f_back.f_locals.items()
}
print(', '.join(
name... | 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,400 |
s804011756 | p04012 | u160861278 | 1542261276 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 155 | from collections import Counter
w = input()
counter = Counter(w)
bell = 'Yes'
for v in counter.values():
if v%2==1:
bell = 'No'
break
print(bell) | 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,401 |
s779982463 | p04012 | u160861278 | 1542261263 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 155 | from collections import Counter
w = input()
counter = Counter(w)
bell = 'Yes'
for v in counter.values():
if v%2==1:
bell = 'No'
break
print(bell) | 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,402 |
s744761524 | p04012 | u432805419 | 1541908846 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 135 | w = list(input())
a = list(set(w))
for i in range(len(a)):
if w.count(a[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,403 |
s301815486 | p04012 | u397531548 | 1541558417 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 211 | w=input()
for X in ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]:
if int(w.count(X))%2==1:
print("No")
break
else:
print("Yes") | 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,404 |
s187813723 | p04012 | u397531548 | 1541558260 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 134 | from collections import Counter
w = Counter(input())
ans = "Yes"
for i in w.values():
if i % 2 != 0:
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,405 |
s626046377 | p04012 | u163449343 | 1541542329 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 134 | from collections import Counter
w = Counter(input())
ans = "Yes"
for i in w.values():
if i % 2 != 0:
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,406 |
s066052181 | p04012 | u386819480 | 1541476357 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 187 | ## ABC 044 b
import sys
from collections import Counter
w = list(input())
c = Counter(w)
for i in c.values():
if(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,407 |
s606569311 | p04012 | u432805419 | 1541474330 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 135 | a = list(input())
b = list(set(a))
for i in range(len(b)):
if a.count(b[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,408 |
s352451667 | p04012 | u063052907 | 1541471398 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 85 | # coding: utf-8
w = input()
print("Yes" if all(w.count(s)%2==0 for s 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,409 |
s071562031 | p04012 | u063052907 | 1541471376 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 83 | # coding: utf-8
w = input()
print("No" if any(w.count(s)%2 for s in w) 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,410 |
s108763551 | p04012 | u063052907 | 1541471332 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 83 | # coding: utf-8
w = input()
print("No" if sum(w.count(s)%2 for s in w) 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,411 |
s831848076 | p04012 | u063052907 | 1541471298 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 116 | # coding: utf-8
w = input()
for s in w:
if w.count(s) %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,412 |
s460416693 | p04012 | u063052907 | 1541470876 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 125 | # coding: utf-8
w = input()
for s in w:
val = w.count(s)
if val%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,413 |
s205972084 | p04012 | u124139453 | 1541440367 | Python | Python (2.7.6) | py | Accepted | 11 | 2820 | 155 | w = raw_input()
l = set([])
for i in w:
if i in l:
l.remove(i)
else:
l.add(i)
if l == set([]):
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,414 |
s692851862 | p04012 | u350997995 | 1541300734 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 132 | w = input()
for i in "abcdefghijklmnopqrstuvwxyz0":
if w.count(i)%2 ==1:
break
if i == "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,415 |
s750514527 | p04012 | u923279197 | 1541188124 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 107 | s=input()
t=set(s)
for i in t:
if s.count(i)%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,416 |
s275470557 | p04012 | u943657163 | 1541172578 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 111 | s = input()
a = set(s)
for i in a:
if s.count(i) % 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,417 |
s880992398 | p04012 | u090225501 | 1541111381 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 92 | s = input()
if all(s.count(c) % 2 == 0 for c in set(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,418 |
s166263679 | p04012 | u637824361 | 1541107236 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 146 | w = input()
for i in 'abcdefghijklmnopqrstuvwxyz':
n = w.count(i)
if n % 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,419 |
s046337336 | p04012 | u733321071 | 1540929171 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 291 | w = list(input())
w_num = {}
for i in w:
if i in w_num.keys():
w_num[i] += 1
else:
w_num[i] = 0
w_num[i] += 1
flag = True
for value in w_num.values():
if value % 2 == 1:
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,420 |
s544847938 | p04012 | u363407238 | 1540872336 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 165 | w = list(input())
isBeautiful = True
for i in w:
if w.count(i) % 2 is not 0:
isBeautiful = False
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,421 |
s728151587 | p04012 | u240793404 | 1540823716 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 194 | w = input()
dif = ord('z') - ord('a')
flg = True
for i in range(dif + 1):
cnt = w.count(chr(ord('a')+i))
if cnt % 2 == 1:
flg = False
print("Yes") if flg == True 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,422 |
s535786370 | p04012 | u228294553 | 1540687611 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 117 | w=input()
flag="Yes"
for i in range (len(w)):
if w.count(w[i])%2!=0:
flag="No"
break
print(flag) | 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,423 |
s286496025 | p04012 | u842170774 | 1540687573 | Python | Python (3.4.3) | py | Accepted | 76 | 3444 | 137 | import collections
w=collections.Counter(list(input()))
w=[x%2 for x in w.values()]
if not 1 in 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,424 |
s162591555 | p04012 | u754553095 | 1540686039 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 298 | a=sorted(list(input()))
b=[]
c=[]
d=0
if len(a)%2==0:
for i in range(len(a)//2):
b.append(a[2*i])
c.append(a[2*i+1])
for j in range(len(b)):
if b[j]==c[j]:
d+=1
if d==len(a)//2:
print("Yes")
else:
print("No")
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,425 |
s076118247 | p04012 | u371763408 | 1540211753 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 88 | w =input()
for i in w:
if w.count(i) % 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,426 |
s509302484 | p04012 | u371763408 | 1540211350 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 143 | w = input()
for i in w:
count = 0
for j in w:
if i == j:
count += 1
if count % 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,427 |
s333538052 | p04012 | u295961023 | 1540202714 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 227 | from collections import Counter
def main():
w = input()
cnt = list(Counter(w).values())
s = list(filter(lambda x: x % 2 != 0, cnt))
print("Yes" if len(s) == 0 else "No")
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,428 |
s470537575 | p04012 | u883048396 | 1540069890 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 190 | sS = input().strip()
d = {}
for s in sS:
if s in d:
d[s]+=1
else:
d[s] = 1
for k,v in d.items():
if v % 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,429 |
s039620621 | p04012 | u323680411 | 1540065232 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 519 | from sys import stdin
def main():
w = next_str()
dic = dict()
ans = "Yes"
for v in w:
if v not in dic:
dic[v] = 0
dic[v] += 1
for v in dic.values():
if v % 2 != 0:
ans = "No"
break
print(ans)
def next_str():
result = ""
... | 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,430 |
s191497660 | p04012 | u052332717 | 1540052118 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 245 | s = input()
alp = ['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 alp:
if s.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,431 |
s399636107 | p04012 | u094191970 | 1539893663 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 231 | W = input()
import collections
switch = 0
W_list = list(W)
W_dic = collections.Counter(W_list)
for num in W_dic.values():
if num%2 != 0:
switch = 1
break
if switch == 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,432 |
s882686349 | p04012 | u848647227 | 1539708467 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 168 | a = list(input())
br = []
for ar in a:
br.append(a.count(ar))
x = 0
for b in br:
if b % 2 == 1:
x += 1
if x == 0:
print("Yes")
else:
print("No") | 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,433 |
s519703078 | p04012 | u620480037 | 1539662538 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 219 | w=input()
list1=[]
for i in range(len(w)):
if w[i] in list1:
pass
else:
if w.count(w[i])%2==0:
list1.append(w[i])
else:
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,434 |
s604830589 | p04012 | u681150536 | 1539500474 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 266 | def main():
s = []
for i in input():
s.append(i)
alpha = [chr(i) for i in range(97, 97 + 26)]
for a in alpha:
if s.count(a) % 2 != 0:
print("No")
return
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,435 |
s270557068 | p04012 | u595353654 | 1539492434 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 384 | # -*- coding: utf-8 -*-
from sys import stdin
s = stdin.readline().rstrip()
s_unique = list(set(s))
counter = [0 for i in range(len(s_unique))]
for i in range(len(s)):
for j in range(len(s_unique)):
if s[i] == s_unique[j]:
counter[j] += 1
break
for i in range(len(counter)):
if... | 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,436 |
s337848878 | p04012 | u233152254 | 1539466574 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 185 | W = input()
from collections import defaultdict
C = defaultdict(int)
for w in W: C[w] += 1
for k, v in C.items():
if v % 2:
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,437 |
s355023137 | p04012 | u459697504 | 1539033884 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 1,554 | #! /usr/bin/python3
# ABC044_B
# B - 美しい文字列 / Beautiful Strings
"""
collectionsを使わないタイプ
制約
1≤|w|≤100
w は英小文字 (a-z) のみからなる文字列である。
"""
import collections
test_mode = False
use_Counter = True # collections.Counter を使うかどうか
def judge_0(l):
"""
collections.Counter を使うタイプ
奇数会出現する要素があると False を返し、
... | 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,438 |
s973798315 | p04012 | u459697504 | 1539030320 | Python | Python (3.4.3) | py | Accepted | 30 | 3572 | 1,686 | #! /usr/bin/python3
# ABC044_B
# B - 美しい文字列 / Beautiful Strings
"""
collectionsを使わないタイプ
制約
1≤|w|≤100
w は英小文字 (a-z) のみからなる文字列である。
"""
import collections
test_mode = False
use_Counter = False # collections.Counter を使うかどうか
def judge_0(l):
"""
collections.Counter を使うタイプ
奇数会出現する要素があると False を返し、
... | 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,439 |
s627551302 | p04012 | u459697504 | 1539030293 | Python | Python (3.4.3) | py | Accepted | 24 | 3444 | 1,685 | #! /usr/bin/python3
# ABC044_B
# B - 美しい文字列 / Beautiful Strings
"""
collectionsを使わないタイプ
制約
1≤|w|≤100
w は英小文字 (a-z) のみからなる文字列である。
"""
import collections
test_mode = False
use_Counter = True # collections.Counter を使うかどうか
def judge_0(l):
"""
collections.Counter を使うタイプ
奇数会出現する要素があると False を返し、
... | 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,440 |
s305790676 | p04012 | u138486156 | 1539014197 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 114 | w = input()
a = list(set(w))
for s in a:
if w.count(s) % 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,441 |
s649292183 | p04012 | u320325426 | 1538869167 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 141 | sl = [i for i in input()]
s_s = set(sl)
r = ""
for s in s_s:
if sl.count(s) % 2 == 0:
r = "Yes"
else:
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,442 |
s947937697 | p04012 | u513081876 | 1538855496 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 156 | import collections
w = input()
W = collections.Counter(w).values()
for i in W:
if 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,443 |
s676988031 | p04012 | u426108351 | 1538603080 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 237 | import collections
w = list(input())
w = collections.Counter(w)
w_count = w.most_common()
flag = 0
for i in range(len(w_count)):
if int(w_count[i][1]) % 2 == 1:
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,444 |
s931606960 | p04012 | u940102677 | 1538542065 | Python | Python (3.4.3) | py | Accepted | 27 | 3444 | 120 | import collections
w = collections.Counter(list(input()))
c = [k%2 for k in w.values()]
print("No" if 1 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,445 |
s481416731 | p04012 | u596276291 | 1538512953 | Python | Python (3.4.3) | py | Accepted | 27 | 3948 | 822 | from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursi... | 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,446 |
s462975898 | p04012 | u474270503 | 1538246590 | Python | Python (3.4.3) | py | Accepted | 27 | 3444 | 169 | from collections import Counter
w=input()
wcnt=list(Counter(w).values())
for i in range(len(wcnt)):
if wcnt[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,447 |
s010997562 | p04012 | u099918199 | 1538097966 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 184 | w = str(input())
w_list = list(w)
for letter in set(w_list):
if w_list.count(letter) % 2 == 1:
print("No")
break
else:
continue
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,448 |
s703798225 | p04012 | u657913472 | 1537906517 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 58 | w=input();print("YNeos"[sum(w.count(c)%2for c in w)>0::2]) | 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,449 |
s167690328 | p04012 | u657913472 | 1537906458 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 90 | s=input();c=[0]*26;f=0
for i in s:c[ord(i)-97]+=1
for i in c:f+=i%2
print("YNeos"[f>0::2]) | 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,450 |
s296011265 | p04012 | u657913472 | 1537906429 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 92 | s=input();c=[0]*26;f=0
for i in s:c[ord(i)-97]+=1
for i in c:f+=i%2
print("YNeos"[(f>0)::2]) | 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,451 |
s308140377 | p04012 | u589087860 | 1537835615 | Python | Python (3.4.3) | py | Accepted | 18 | 3192 | 1,363 | w = input()
num = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
for i in range(len(w)):
if w[i] == 'a':
num[0] += 1
elif w[i] == 'b':
num[1] += 1
elif w[i] == 'c':
num[2] += 1
elif w[i] == 'd':
num[3] += 1
elif w[i] == 'e':
... | 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,452 |
s695112486 | p04012 | u853900545 | 1537722600 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 74 | a=input()
for x in(a):
if a.count(x)&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,453 |
s929253408 | p04012 | u879870653 | 1537574175 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 210 | w = list(input())
L = list(set(w))
counter = 0
for i in range(len(L)) :
if w.count(L[i]) % 2 != 0 :
print("No")
break
else :
counter += 1
if counter == len(L) :
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,454 |
s042628503 | p04012 | u608088992 | 1537561739 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 267 | w = list(input())
alphabet = ["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"]
i = 0
while i <= 25:
if w.count(alphabet[i]) % 2 == 1:
print("No")
break
i += 1
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,455 |
s004858516 | p04012 | u140342018 | 1537558619 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 221 | w = input()
l = [0]*len(w)
for i,s in enumerate(w):
for j in range(len(w)):
if w[j]==s:
l[i] += 1
for i in l:
if i%2!=0:
print('No')
import sys
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,456 |
s668150403 | p04012 | u756569003 | 1537491081 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 225 | def check(ar):
for i in ar:
if i%2 != 0: return False
return True
w = input()
a = 'abcdefghijklmnopqrstuvwxyz'
ar = [0]*26
for c in w:
ar[a.find(c)] += 1
if check(ar): 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,457 |
s079662209 | p04012 | u519849839 | 1537472121 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 147 | word = input()
answer = 'Yes'
for ch in map(chr, range(97, 123)):
if word.count(ch) % 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,458 |
s992466058 | p04012 | u519849839 | 1537471777 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 166 | w = input()
answer = 'Yes'
for c in map(chr, range(97, 123)):
if c in w:
if w.count(c) % 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,459 |
s896340884 | p04012 | u457901067 | 1537443579 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 209 | W = input()
dic = {}
for ch in W:
if ch in dic:
dic[ch] += 1
else:
dic[ch] = 1
ans = True
for k,v in dic.items():
if v%2 != 0:
ans = False
break
print("Yes" if ans 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,460 |
s836135962 | p04012 | u505420467 | 1537408208 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 147 | import sys
w=input()
for i in range(len(w)):
if w.count(w[i])%2==0:
pass
else:
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,461 |
s478152884 | p04012 | u177040005 | 1537405236 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 223 | w = input()
abc = 'abcdefghijklmnopqrstuvwxyz'
dic = {}
for s in abc:
dic[s] = 0
for s in w:
dic[s] += 1
ch = 0
for s in abc:
if dic[s]%2 != 0:
ch = 1
if ch == 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,462 |
s170256177 | p04012 | u611249982 | 1537179598 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 99 | w = input()
a = 0
for wi in w:
a ^= ord(wi)
if a == 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,463 |
s657598360 | p04012 | u102126195 | 1536688122 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 213 | wlist = [0 for i in range(26)]
w = list(input())
for i in w:
wlist[ord(i) - 97] += 1
ans = 1
for i in wlist:
if i % 2 != 0:
print("No")
ans = -1
break
if ans == 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,464 |
s031907105 | p04012 | u466105944 | 1536681134 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 160 | w = input()
def is_beutifull_str(char_str):
for s in w:
if w.count(s)%2 == 1:
return 'No'
return 'Yes'
print (is_beutifull_str(w)) | 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,465 |
s719766291 | p04012 | u932465688 | 1536620172 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 213 | w = list(input())
S = set(w)
L = []
T = sorted(S)
for i in range(0,len(S)):
L.append(w.count(T[i]))
flag = True
for a in L:
if (a % 2 != 0):
flag = False
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,466 |
s572545708 | p04012 | u863841238 | 1536612033 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 114 | w = input()
for s in set(w):
if w.count(s) % 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,467 |
s152820447 | p04012 | u787562674 | 1536535931 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 113 | w = input()
for s in set(w):
if w.count(s) % 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,468 |
s373427438 | p04012 | u787562674 | 1536535687 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 165 | from collections import Counter
w = Counter(list(input()))
for value in w.values():
if value % 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,469 |
s725121429 | p04012 | u017810624 | 1536371603 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 120 | a=input()
b=''
for x in a:
if int(x in b)==1:b=b.replace(x,'')
else:b=b+x
if b=='':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,470 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.