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
stringlengths
1
5
memory
stringlengths
1
7
code_size
stringlengths
1
6
code
stringlengths
1
539k
s057081840
p04012
u519939795
1582054070
Python
Python (3.4.3)
py
Runtime Error
17
2940
739
a = str(input()) if a.count('a') % 2 == 0 and a.count('b') % 2 == 0 and a.count('c') % 2 == 0 and a.count('d') % 2 == 0 and a.count('e') % 2 == 0 and a.count('f') % 2 == 0 and a.count('g') % 2 == 0 and a.count('h') % 2 == 0 and a.count('i') % 2 == 0 and a.count('j') % 2 == 0 and a.count('k') % 2 == 0 and a.count('l') % 2 == 0 and a.count('m') % 2 == 0 and a.count('n') % 2 == 0 and a.count('o') % 2 == 0 and a.count('p') % 2 == 0 and a.count('q') % 2 == 0 and a.count('r') % 2 == 0 and a.count('s') % 2 == 0 and a.count('t') % 2 == 0 and a.count('u') % 2 == 0 and a.count('v') % 2 == 0 and a.count('w') % 2 == 0 and a.count('x') % 2 == 0 and a.count('y') % 2 == 0 and a.count('z') % 2 == 0: print('Yes') else: print('No')
s441157275
p04012
u269408023
1581819764
Python
Python (3.4.3)
py
Runtime Error
17
2940
335
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; int N=s.size(); sort(s.begin(),s.end()); int cnt=1; for(int i=0;i<N-1;i++){ if(s.at(i)==s.at(i+1)){ cnt++; } else if(cnt%2!=0){ break; } else{ cnt=1; } } if(cnt%2){ cout << "No" << endl; } else{ cout << "Yes" << endl; } }
s048318986
p04012
u627803856
1581750821
Python
PyPy3 (2.4.0)
py
Runtime Error
165
38256
154
s = input() from collections import Counter c = Counter(s) flag = True for v in c.values(): if v%2!=0: flag = False print('Yes' if bl else 'No')
s880235168
p04012
u980909653
1581450594
Python
Python (3.4.3)
py
Runtime Error
21
3316
162
s = input() from collections import Counter c = Counters(s) bl = True; for v in c.values(): if v%2==1: bl = False ans = 'Yes' if bl else 'No' print(ans)
s035039606
p04012
u630027862
1581388034
Python
Python (3.4.3)
py
Runtime Error
17
2940
198
w = input() w_list = list(w) w_set = set(w_list) for val in w_set: if w_list.count(val) % 2 == 0: continue else: print('No') break else: continue print('Yes')
s717042690
p04012
u961683150
1581007709
Python
Python (3.4.3)
py
Runtime Error
20
3316
148
from collections import Counter s=input() s=Couter(s) for i in s.values(): if i%2!=0: print("No") break else: print("Yes")
s128139920
p04012
u840958781
1580601789
Python
Python (3.4.3)
py
Runtime Error
17
2940
125
w=input() for i in range(w): if w.count(w[i])%2==0: ans="Yes" else: ans="No" break print(ans)
s251770284
p04012
u843722521
1579878482
Python
Python (3.4.3)
py
Runtime Error
21
3316
168
from collections import defaultdict s=list(input()) d=defaultdict(0) for i in s: d[i]+=1 for i in d.values(): if i%2: print("No") break else: print("Yes")
s312396586
p04012
u072717685
1579396100
Python
Python (3.4.3)
py
Runtime Error
17
2940
139
from collections import Counter c1 = Counter(input()) for c num in c1: if c1[c] % 2 != 0: print('No') break else: print('Yes')
s709796543
p04012
u121921603
1579366039
Python
PyPy3 (2.4.0)
py
Runtime Error
166
38256
185
import sys input = sys.stdin.readline w=input().strip() from collections import Counter s~Counter(w) for a in s.values(): if a%2==1: print("No") exit() print("Yes")
s502660255
p04012
u556016145
1578281091
Python
Python (3.4.3)
py
Runtime Error
17
2940
168
import collections s = input() lst = [] for i in s: lst.append(i) c = collections.Counter(lst) if sum(c.values()) % 2 == 0: print('Yes') else: print('No')
s477181961
p04012
u668352391
1578091984
Python
Python (3.4.3)
py
Runtime Error
17
2940
259
s = input() s_list = [s[_] for _ in range(len(s))] dic = dict() for c in s_list: if c in dic: dic[c] += 1 else: dic[c] = 1 flg = True for key in dic: if dic[key]%2 !- 0: flg = False break if flg: print('Yes') else: print('No')
s866791160
p04012
u473023730
1577822782
Python
Python (3.4.3)
py
Runtime Error
17
2940
107
import sys w = list(input()) for i in w.count(i): if i%2==1: print("No") sys.exit() print("Yes")
s759224730
p04012
u473023730
1577760892
Python
Python (3.4.3)
py
Runtime Error
17
2940
96
w = list(input()) for i in w: if count.w(i) %2 == 1: print("No") break print("Yes")
s907764683
p04012
u025595730
1577297651
Python
Python (3.4.3)
py
Runtime Error
17
2940
311
# coding: utf-8 import sys def main(argv=sys.argv): char_list = input() char_set = set(char_list) for char in char_set: if char_list.count(char) % 2 != 0: print('No') return -1 print('Yes') return 0 if __name__ == '__main__': sys.exit(main())
s840615125
p04012
u006425112
1577028977
Python
Python (3.4.3)
py
Runtime Error
20
3316
197
from collections import Counter w = input() c = Counter(l) flag = True for i in c.values(): if i % 2 == 1: flag = False break if flag: print("Yes") else: print("No")
s734744823
p04012
u063073794
1576716742
Python
Python (3.4.3)
py
Runtime Error
17
3060
178
w = input() print(set(w)) """for i in set(w): print(w) if w.count(i)%2 != 0: print("No") exit() print("Yes")""" γ‚»γƒƒγƒˆγ§ε‡Ίγ¦γγ‚‹ζ–‡ε­—εˆ—γ‚’η΅žγ£γ¦ζ•°γˆγ‚‹
s191747022
p04012
u503111914
1576127260
Python
Python (3.4.3)
py
Runtime Error
17
2940
154
S = input() A = set([i for i in S]) for j in range(len(A)): if S.count(A[j]) % 2 == 1: print("Yes") sys.exit() else: None print("No")
s809323558
p04012
u779728630
1573674117
Python
Python (3.4.3)
py
Runtime Error
18
3064
125
w = input() f = True for i in renge(len(w)): if w.count(w[i]) % 2 == 1: print("No") f = False if f: print("Yes")
s632817048
p04012
u052499405
1573618247
Python
Python (3.4.3)
py
Runtime Error
17
3060
266
#!/usr/bin/env python3 import sys sys.setrecursionlimit(10**8) input = sys.stdin.readline count = [0] * 26 w = input() for ch in w: count[ord(ch) - ord("a")] += 1 ok = True for item in count: if item % 2 == 1: ok = False print("Yes" if ok else "No")
s982289111
p04012
u970197315
1572182311
Python
Python (3.4.3)
py
Runtime Error
17
3060
318
# ABC044 B - ηΎŽγ—γ„ζ–‡ε­—εˆ— / Beautiful Strings si = lambda: input() ni = lambda: int(input()) nm = lambda: map(int, input().split()) nl = lambda: list(map(int, input().split())) S = si() SS = set() for s in S: SS.add(s) for ss in SS: if S.count(SS)%2==1: print('No') exit() print('Yes')
s768286111
p04012
u435084726
1572112280
Python
PyPy3 (2.4.0)
py
Runtime Error
164
38256
111
w = input() ans = "No" for i in w: if w.count(i)%2! = 0: break else: ans = "Yes" print(ans)
s059686949
p04012
u435084726
1572112234
Python
PyPy3 (2.4.0)
py
Runtime Error
170
38256
118
w = input() for i in w: if w.count(i)%2! = 0: ans = "No" break else: ans = "Yes" print(ans)
s283050959
p04012
u435084726
1572112218
Python
PyPy3 (2.4.0)
py
Runtime Error
175
38256
122
w = input() for i in w: if w.count(i)%2! = 0: ans = "No" break else: ans = "Yes" print(ans)
s844195697
p04012
u435084726
1572112119
Python
PyPy3 (2.4.0)
py
Runtime Error
173
38384
113
w = input() for i in w: if w.count(i)%2! = 0: print("No") break else: print("Yes")
s123754811
p04012
u435084726
1572112038
Python
PyPy3 (2.4.0)
py
Runtime Error
162
38384
118
w = input() for i in w: if w.count(i)%2! = 0: print("No") break else: print("Yes")
s513022707
p04012
u435084726
1572112006
Python
PyPy3 (2.4.0)
py
Runtime Error
159
38256
117
w = input() for i in w: if w.count(i)%2! = 0: print("No") break else: print("Yes")
s085133143
p04012
u747602774
1569784217
Python
Python (3.4.3)
py
Runtime Error
17
2940
179
w=list(input()) ans=sorted(w) while ans[-1]==ans[-2] and len(ans)>1: del ans[-2:] if len(ans)==0 or len(ans)==1: break if len(ans)==0: print('Yes') else: print('No')
s425434012
p04012
u747602774
1569783859
Python
Python (3.4.3)
py
Runtime Error
17
2940
167
w=list(input()) ans=sorted(w) while ans[-1]==ans[-2]: del ans[-2:] if len(ans)==0 or len(ans)==1: break if len(ans)==0: print('Yes') else: print('No')
s988904607
p04012
u747602774
1569783739
Python
Python (3.4.3)
py
Runtime Error
18
3064
162
w=list(input()) ans=sorted(w) while ans[-1]==ans[-2]: del ans[-2:] if len(ans)==0 or len(ans)==1: break if ans==[]: print('Yes') else: print('No')
s090802964
p04012
u747602774
1569783656
Python
Python (3.4.3)
py
Runtime Error
17
2940
168
w=list(input()) ans=sorted(w) print(ans) while ans[-1]==ans[-2]: del ans[-2:] if ans==[] or len(ans)==1: break if ans==[]: print('Yes') else: print('No')
s704744073
p04012
u747602774
1569783591
Python
Python (3.4.3)
py
Runtime Error
17
3060
182
w=list(input()) ans=sorted(w) print(ans) while ans[-1]==ans[-2]: del ans[-2:] if ans==[] or len(ans)==1: break print(ans) if ans==[]: print('Yes') else: print('No')
s279260520
p04012
u747602774
1569783496
Python
Python (3.4.3)
py
Runtime Error
18
3060
165
w=list(input()) ans=sorted(w) print(ans) while ans[-1]==ans[-2]: del ans[-2:] if ans==[]: break print(ans) if ans==[]: print('Yes') else: print('No')
s903294742
p04012
u556371693
1569275349
Python
Python (3.4.3)
py
Runtime Error
24
3768
196
w=input() if len(w)%2==1: print('No') else: c=0 import string for _ in string.ascii_lowercase: if not w.count(_)%2==0: c+=1 if c==0: print('Yes') else: print('No')
s974394535
p04012
u980322611
1569193157
Python
PyPy3 (2.4.0)
py
Runtime Error
186
39536
213
w = input() from collection import defaultdict D = defaultdict(int) for i in w: D[i]+=1 flag = 0 for i in D: if D[i]%2==1: flag = 1 break if flag==1: print("No") else: print("Yes")
s330645944
p04012
u760767494
1568387691
Python
Python (3.4.3)
py
Runtime Error
17
2940
126
w=input() s='' while True: s=w[0] if w.count(s)%2==1: print('No') break w=w.replace(s,'') if w: print('Yes') break
s096993087
p04012
u760767494
1568387573
Python
Python (3.4.3)
py
Runtime Error
20
3060
146
w=input() s='' while True: s=w[0] if w.count(s)%2==1: print('No') break print(w) w=w.replace(s,'') print(w) if w: print('Yes') break
s949829892
p04012
u760767494
1568386195
Python
Python (3.4.3)
py
Runtime Error
18
2940
129
w=str(input()) s='' while True: s=w[0] if w.count(s)%2==1: print('No') break w.replane(s,'') if w: print('Yes') break
s120320286
p04012
u699699071
1568255441
Python
Python (3.4.3)
py
Runtime Error
17
2940
145
w=input() for i in range(len(w)): if w.count(w[i])%2==0: pass else: break else: print("Yes") exit(1) print("No")
s024585903
p04012
u699699071
1568255408
Python
PyPy3 (2.4.0)
py
Runtime Error
183
38384
145
w=input() for i in range(len(w)): if w.count(w[i])%2==0: pass else: break else: print("Yes") exit(1) print("No")
s845841903
p04012
u868600519
1568208642
Python
Python (3.4.3)
py
Runtime Error
17
2940
113
a = defaultdict(int) for w in input(): a[w] += 1 print('Yes' if sum(c % 2 for c in a.values()) == 0 else 'No')
s291530771
p04012
u597455618
1568056411
Python
Python (3.4.3)
py
Runtime Error
17
2940
76
w = input() print("Yes" if all[s.count(i)%2 == 0 for i in set(s)] else "No")
s044250902
p04012
u993161647
1568051728
Python
Python (3.4.3)
py
Runtime Error
17
2940
342
import sys while True: w = input() if not w.islower(): continue if len(w) >= 100: continue for n_alpha in "abcdefghijklmnopqrstuvwxyz": count_alpha = w.count(n_alpha) if count_alpha % 2 == 1: print('No') else: print('Yes') break break sys.exit()
s021142408
p04012
u993161647
1568051685
Python
Python (3.4.3)
py
Runtime Error
17
3064
417
import sys def input_w(): w = input() while w.islower(): length = len(w) if length >= 100: return input_w() for n_alpha in "abcdefghijklmnopqrstuvwxyz": count_alpha = w.count(n_alpha) if count_alpha % 2 == 1: print('No') return input_w() print('Yes') sys.exit() return input_w() w=input_w()
s876632954
p04012
u264265458
1567138977
Python
Python (3.4.3)
py
Runtime Error
17
3060
128
a=list(input()) sum=0 b=set(a) for i in range(len(b)): if a.count(b[i])%2==0: sum+=1 print("Yes" if sum==len(b) else "No")
s413405510
p04012
u835482198
1567138425
Python
Python (3.4.3)
py
Runtime Error
18
2940
204
from collectiosn import Counter c = Counter(input()) valid = True for key, value in c.items(): if value % 2 == 1: valid = False break if valid: print("Yes") else: print("No")
s791180800
p04012
u865413330
1566940454
Python
Python (3.4.3)
py
Runtime Error
21
3316
131
import collections w = list(input()) c = collections.Counter(w) print("Yes") if all([i % 2 == 0 for i in list(c)]) else print("No")
s717664967
p04012
u410118019
1566441686
Python
Python (3.4.3)
py
Runtime Error
17
2940
85
w = input() for i in w: if w.coount(i) % 2: print('No') exit() print('Yes')
s813065337
p04012
u624075921
1565889983
Python
PyPy3 (2.4.0)
py
Runtime Error
203
38512
177
from collections import Counter as ca s = input() count = ca(s) count = list(ca.values()) ans = 'Yes' for i in count: if i % 2 != 0: ans = 'No' break print(ans)
s689239791
p04012
u457554982
1565710166
Python
Python (3.4.3)
py
Runtime Error
17
3064
190
w=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] flag=0 for i in alphabet: num=w.count(i) if num%2==1: flag=1 break if flag==0: print("Yes") else: print("No")
s270463276
p04012
u134712256
1565390005
Python
Python (3.4.3)
py
Runtime Error
17
2940
105
w = input() for i in set(w): if w.count(i)%2 == 1: print("No") exit(1) print("Yes")
s296772721
p04012
u134712256
1565389596
Python
Python (3.4.3)
py
Runtime Error
17
2940
105
w = input() for i in set(w): if w.count(i)%2 == 1: print("No") exit(1) print("Yes")
s267918182
p04012
u134712256
1565389205
Python
Python (3.4.3)
py
Runtime Error
17
2940
115
w = input() for i in range(len(w)): if w.count(w[i])%2 == 1: print("No") exit(1) print("Yes")
s503918472
p04012
u736729525
1565218654
Python
Python (3.4.3)
py
Runtime Error
17
2940
147
from collections import Counter r = 0 cnt = Counter(input()): for c in cnt: r += cnt[c] % 2 if r == 0: print("Yes") else: print("No")
s827117171
p04012
u084324798
1565180988
Python
Python (3.4.3)
py
Runtime Error
17
2940
230
word = input() flag = True if len(word)%2 == 1: flag = False wordset = set(word) leng = len(wordset) for s in wordset: if word.count(s)οΌ…2 == 1: flag = False break if flag:print("Yes") else: print("No")
s011595300
p04012
u084324798
1565180656
Python
Python (3.4.3)
py
Runtime Error
17
3060
249
word = input() flag = True if len(word)%2 == 1: flag = False wordset = set(word) leng = len(wordset) i = 0 while flag and (i<leng): if (word.count(wordset[i]))%2 == 1: flag = False i += 1 if flag:print("Yes") else: print("No")
s681705866
p04012
u084324798
1565178980
Python
Python (3.4.3)
py
Runtime Error
17
3060
261
word = input() flag = True if len(word)%2 == 1: flag = False wordset = set(word) leng = len(wordset) i = 0 while flag and (i<leng): if word.count(wordset[i])%2 == 1: flag = False break i += 1 if flag:print("Yes") else: print("No")
s508502807
p04012
u084324798
1565178572
Python
Python (3.4.3)
py
Runtime Error
17
3064
345
word = input() flag = True if len(word)%2 == 1: flag = False tab = ["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 leng = len(word) while flag and (i<leng): if word.count(tab[i])%2 == 1: flag = False break i += 1 if flag:print("Yes") else: print("No")
s706527376
p04012
u084324798
1565178134
Python
Python (3.4.3)
py
Runtime Error
17
3064
338
import sys word = input() if len(word)%2 == 1: print("No") sys.exit() tab = ["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"] flag = True for i in range(len(word)): if word.count(tab[i])%2 == 1: flag = False break if flag:print("Yes") else: print("No")
s040112779
p04012
u084324798
1565177775
Python
Python (3.4.3)
py
Runtime Error
18
2940
336
import sys word = input() tab = ["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"] flag = True if len(word)%2 == 1: print("No") sys.exit() for i in range(len(word)) if word.count(tab[i])%2 == 1: flag = False break if flag:print("Yes") else: print("No")
s638027427
p04012
u498397607
1564897315
Python
Python (3.4.3)
py
Runtime Error
17
2940
241
main(): ans = func(input()) print(ans) def func(sentence): unique_list = set(sentence) for s in unique_list: if sentence.count(s) % 2 != 0: return('No') break return('Yes') if __name__ == '__main__': main()
s146519517
p04012
u423585790
1563562771
Python
PyPy3 (2.4.0)
py
Runtime Error
186
38640
1629
#!/usr/bin/env python3 from collections import defaultdict from collections import deque from heapq import heappush, heappop import sys import math import bisect import random import itertools sys.setrecursionlimit(10**5) stdin = sys.stdin bisect_left = bisect.bisect_left bisect_right = bisect.bisect_right def LI(): return list(map(int, stdin.readline().split())) def LF(): return list(map(float, stdin.readline().split())) def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split())) def II(): return int(stdin.readline()) def IF(): return float(stdin.readline()) def LS(): return list(map(list, stdin.readline().split())) def S(): return list(stdin.readline().rstrip()) def IR(n): return [II() for _ in range(n)] def LIR(n): return [LI() for _ in range(n)] def FR(n): return [IF() for _ in range(n)] def LFR(n): return [LI() for _ in range(n)] def LIR_(n): return [LI_() for _ in range(n)] def SR(n): return [S() for _ in range(n)] def LSR(n): return [LS() for _ in range(n)] mod = 1000000007 inf = float('INF') #A def A(): n = II() k = II() x = II() y = II() ans = 0 for i in range(n): if i >= k: ans += y else: ans += x print(ans) return #B def B(): w = S() d = defaultdict(int) for s in w: d[s] += 1 for di in d.values(): if di % 2: continue print("No") break print("Yes") return #C def C(): return #D def D(): return #E def E(): return #F def F(): return #G def G(): return #H def H(): return #Solve if __name__ == '__main__': A()
s429807369
p04012
u423585790
1563562763
Python
PyPy3 (2.4.0)
py
Runtime Error
176
38768
1628
#!/usr/bin/env python3 from collections import defaultdict from collections import deque from heapq import heappush, heappop import sys import math import bisect import random import itertools sys.setrecursionlimit(10**5) stdin = sys.stdin bisect_left = bisect.bisect_left bisect_right = bisect.bisect_right def LI(): return list(map(int, stdin.readline().split())) def LF(): return list(map(float, stdin.readline().split())) def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split())) def II(): return int(stdin.readline()) def IF(): return float(stdin.readline()) def LS(): return list(map(list, stdin.readline().split())) def S(): return list(stdin.readline().rstrip()) def IR(n): return [II() for _ in range(n)] def LIR(n): return [LI() for _ in range(n)] def FR(n): return [IF() for _ in range(n)] def LFR(n): return [LI() for _ in range(n)] def LIR_(n): return [LI_() for _ in range(n)] def SR(n): return [S() for _ in range(n)] def LSR(n): return [LS() for _ in range(n)] mod = 1000000007 inf = float('INF') #A def A(): n = II() k = II() x = II() y = II() ans = 0 for i in range(n): if i >= k: ans += y else: ans += x print(ans) return #B def B(): w = S() d = defaultdict(int) for s in w: d[s] += 1 for di in d.values(): if d % 2: continue print("No") break print("Yes") return #C def C(): return #D def D(): return #E def E(): return #F def F(): return #G def G(): return #H def H(): return #Solve if __name__ == '__main__': A()
s513517444
p04012
u239342230
1562986213
Python
Python (3.4.3)
py
Runtime Error
17
2940
82
w=input() arr=[] for i in set(s): arr.append(s.count(i)%2==0) print(all(arr))
s416330712
p04012
u239342230
1562986185
Python
Python (3.4.3)
py
Runtime Error
17
2940
119
#!/usr/bin/env python # coding=utf-8 w=input() arr=[] for i in set(s): arr.append(s.count(i)%2==0) print(all(arr))
s533765173
p04012
u093500767
1562521342
Python
Python (3.4.3)
py
Runtime Error
21
3316
134
from collections import Counter l = list(input()) x = Counter(l) for i in x: if i%2==1: print("No") else: print("Yes")
s911877569
p04012
u456033454
1562378370
Python
Python (3.4.3)
py
Runtime Error
17
2940
168
import sys s = input() ans = {} for i in s: if i in ans: ans[i] +=1 else: ans[i] = 0 for i in ans: if i%2 !=0: print('No') sys.exit() print('Yes')
s597826325
p04012
u456033454
1562376551
Python
PyPy3 (2.4.0)
py
Runtime Error
166
38256
208
import sys s = input() ans = ['a':0,'b':0,'c':0] for i in s: if i in ans: ans[i] +=1 else: print('NO') sys.exit() print('YES' if (ans['a']%2==0 and ans['a']%2==0 and ans['a']%2==0) else 'NO')
s723768553
p04012
u759412327
1562124851
Python
Python (3.4.3)
py
Runtime Error
20
3316
165
from collections import Counter a = input() b = Counter(a) c = 0 for i in b.values: if i%2!=0: c = 1 else: if c==0: print("Yes") else: print("No")
s987934613
p04012
u759412327
1562124829
Python
Python (3.4.3)
py
Runtime Error
21
3316
175
from collections import Counter a = input() b = Counter(a) c = 0 for i in b.values: if i%2!=0: c = 1 break else: if c==0: print("Yes") else: print("No")
s977639160
p04012
u902151549
1561947189
Python
Python (3.4.3)
py
Runtime Error
16
2940
482
#include <iostream> #include <string> #include <map> #include <cfenv> #include <cmath> #include <vector> #include<cstdio> #include <iterator> #include <sstream> #include <algorithm> #include <numeric> using namespace std; typedef long long ll; int main() { string s; cin >> s; vector<int> c(26,0); for (int a = 0; a < s.size(); a++) { c[s[a] - 97]++; } bool f = true; for (int a = 0; a < c.size(); a++) { if (c[a] % 2 == 1)f = false; } cout <<(f?"Yes":"No")<< endl; }
s740712178
p04012
u902151549
1561947131
Python
Python (3.4.3)
py
Runtime Error
17
2940
480
#include <iostream> #include <string> #include <map> #include <cfenv> #include <cmath> #include <vector> #include<cstdio> #include <iterator> #include <sstream> #include <algorithm> #include <numeric> using namespace std; typedef long long ll; int main() { string s; cin >> s; vector<int> c(26,0); for (int a = 0; a < s.size(); a++) { c[s[a] - 97]++; } bool f = true; for (int a = 0; a < c.size; a++) { if (c[a] % 2 == 1)f = false; } cout <<(f?"Yes":"No")<< endl; }
s735213886
p04012
u044025551
1561580107
Python
Python (3.4.3)
py
Runtime Error
17
2940
105
w=input() list=w.spilt() YN="Yes" for i in list: if w.count(i)%2!=0: YN="No" break print(YN)
s564637150
p04012
u775266130
1560915698
Python
Python (3.4.3)
py
Runtime Error
17
2940
903
#include <bits/stdc++.h> using namespace std; #define ll long long #define N 100005 #define MOD 1000000007 #define dd double #define rep(i, n) for(ll i = 0; i < n; i++) #define REP(i,a,b) for(ll i=a;i<b;i++) #define rep1(i,b) for(ll i=1;i<=b;i++) #define pb push_back #define mp make_pair #define clr(x) x.clear() #define sz(x) ((int)(x).size()) #define vi vector<ll> #define all(v) v.begin(), v.end() int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); string inp = ""; cin >> inp; int arr[26]; memset(arr, 0, sizeof(arr)); rep(i, inp.length()) { arr[inp[i] - 'a']++; } bool flg = false; rep(i, 26) { if (arr[i] % 2 == 0) { flg = true; } else if (arr[i] % 2 == 1) { flg = false; break; } } if(flg == true) { cout << "Yes" << endl; } else { cout << "No" << endl; } //cerr << "Time elapsed: " << 1.0 * clock() / CLOCKS_PER_SEC << " s.\n"; return 0; }
s112042846
p04012
u663014688
1560459384
Python
Python (3.4.3)
py
Runtime Error
17
2940
172
w = input() flg = True for i in list("abcdefghijklmnopqrstuvwxyz"): if w.count(w[i]) % 2 != 0: flg = False if flg: print('Yes') else: print('No')
s103951978
p04012
u223646582
1560447570
Python
Python (3.4.3)
py
Runtime Error
17
2940
164
w=sorted(input()) if len(w)%2==1: print('No') else: while len(w)>=2: if w.pop(0)!=w.pop(0): print('No') exit() print('Yes')
s481437709
p04012
u778814286
1560426030
Python
PyPy3 (2.4.0)
py
Runtime Error
162
38256
124
w = input() for i in range(ord('a'),ord('z')+1): if w.count(chr(i))%2==1: print('No') break() else: print('Yes')
s126808444
p04012
u701318346
1560340670
Python
Python (3.4.3)
py
Runtime Error
17
2940
135
w = list(input()) s = set(w) ans = 'Yes' for i in range(len(s)): if w.count(s[0]) % 2 == 1: ans = 'No' break print(ans)
s245826227
p04012
u131405882
1560218047
Python
Python (3.4.3)
py
Runtime Error
17
2940
106
w = input() for t in w: if any(w.count(t)%2) == 0: print('Yes') else: print('No')
s539173525
p04012
u463655976
1559610142
Python
Python (3.4.3)
py
Runtime Error
17
2940
109
w = 0 codea = "a".encode() for x in input(): w ^= 1 << (x.encode() - codea) print("No" if w!=0 else "Yes")
s166564940
p04012
u623687794
1559425559
Python
Python (3.4.3)
py
Runtime Error
21
3316
183
from collections import Counter s=input() c=Counter(s) flag=0 a=c.values() for i in range(len(a)): if a[i]%2==1: flag=1 break if flag==0: print("Yes") else: print("No")
s985588682
p04012
u623687794
1559425473
Python
Python (3.4.3)
py
Runtime Error
22
3316
181
from collections import Counter s=input() c=Counter(s) flag=0 for i in range(len(c.value)): if c.value[i]%2==1: flag=1 break if flag==0: print("Yes") else: print("No")
s426564677
p04012
u167681750
1558752907
Python
Python (3.4.3)
py
Runtime Error
17
2940
77
print("Yes" if all(i % 2 == 0 for i in Counter(input()).values()) else "No")
s410524656
p04012
u856169020
1558717460
Python
Python (3.4.3)
py
Runtime Error
18
2940
216
w = str(input()) s = dic() for wrd in w: if s.get(wrd) is None: s[wrd] = 1 else: s[wrd] += 1 ans = 1 for wrd in s: if s[wrd] %2 !=0: ans = 0 break if ans: print("Yes") else: print("No")
s438914132
p04012
u008489560
1558641681
Python
Python (3.4.3)
py
Runtime Error
17
2940
128
w = sorted(input()) ret = 'Yes' for i in range(0, len(w), 2): if w[i] != w[i+1]: ret = 'No' break print(ret)
s343473633
p04012
u059262067
1556948548
Python
Python (3.4.3)
py
Runtime Error
17
2940
142
x = input() s = set(list(x)) f = 0 for i in s: x.count(i) % 2 == 1: f = 1 break if f == 1: print("No") else: print("Yes")
s253647568
p04012
u651277159
1556750840
Python
Python (3.4.3)
py
Runtime Error
17
2940
144
W = input() r = {} for w in W: r.setdefault(w, 0) r[w] += 1 print("Yes" if len(list(filter(lambda x: x % 2 == 1, r))) == 0 else "No")
s232805462
p04012
u220345792
1556410570
Python
Python (3.4.3)
py
Runtime Error
18
2940
236
w = input() flag = False arr = [] for i in range(w): arr.append(i) set_arr = list(set(arr)) for i in set_arr: cout_num = arr.count(i) if count_num % 2 != 0: flag = True break if flag: print("No") else: print("Yes")
s467838680
p04012
u149752754
1555631026
Python
Python (3.4.3)
py
Runtime Error
17
3060
299
mojiretsu = input() lett = list(mojiretsu) numlist = [] for i in lett: num = lett.count(i) numlist += [num] jud = [] for i in numlist: if i%2 == 0: jud += ['Yes'] else: jud += ['No'] anslist = [x for x in set(jud) if jud.count(x) > 1] ans = anslist[0] print(ans)
s192354913
p04012
u149752754
1555630800
Python
Python (3.4.3)
py
Runtime Error
18
3060
282
W = input() lett = list(W) numlist = [] for i in lett: num = lett.count(i) numlist += [num] jud = [] for i in numlist: if i%2 == 0: jud += ['Yes'] else: jud += ['No'] anslist = [x for x in set(jud) if jud.count(x) > 1] ans = anslist[0] print(ans)
s558496697
p04012
u149752754
1555630645
Python
Python (3.4.3)
py
Runtime Error
17
3064
281
W = input() lett = list(W) numlist = [] for i in lett: num = lett.count(i) numlist += [num] jud = [] for i in numlist: if i%2 == 0: jud += ['Yes'] else: jud += ['No'] anslist = [x for x in set(jud) if jud.count(x) > 1] ans = anslist[0] print(ans)
s037148936
p04012
u844005364
1555442602
Python
Python (3.4.3)
py
Runtime Error
20
3316
148
w = input() import collections c = collections.Counter(w) b = True for i in c.values: if i % 2 == 1: b = False print("Yes" if b else "No")
s031803532
p04012
u360090862
1554565939
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
w=input() def solve(): for j in [chr(i) for i in range(91,91+26)] if w.count(j)%2==0: print("No") return print("Yes") return solve()
s153570689
p04012
u019996510
1554342320
Python
Python (3.4.3)
py
Runtime Error
17
2940
146
def main2(): w = input() judge = "Yes" for i in w: if w.count(i) % 2 != 0: judge = false print(judge) main2()
s085050523
p04012
u019996510
1554342248
Python
Python (3.4.3)
py
Runtime Error
17
2940
143
def main2(): w = input() judge = "" for i in w: if w.count(i) % 2 != 0: judge = false print(judge) main2()
s032155890
p04012
u826557401
1553976158
Python
Python (3.4.3)
py
Runtime Error
17
3060
222
w = str(input()) w_list = list(w) str_list = [chr(i) for i in range(97, 97+26)] count = 0 for i in str_list: if w_list.count(str_list[i])%2 == 0: count +=1 else: print("NO") break if count == 26: print("YES")
s250181414
p04012
u227082700
1553379319
Python
Python (3.4.3)
py
Runtime Error
17
2940
133
s,ans=input(),0;a=[s[i]for i in range(len(s))];a.sort() for i in a: if a.count(i)%2!=0:ans=1 if ans=0:print("Yes") else:print("No")
s462674606
p04012
u518042385
1552873179
Python
Python (3.4.3)
py
Runtime Error
17
2940
132
word=input() list=set(word) T=True for i in list: if word.count(i)%2==1: T=False if T=True: print("Yes") else: print("No")
s091579764
p04012
u878138257
1552800052
Python
Python (3.4.3)
py
Runtime Error
17
2940
127
a = input() b = 0 for i in len(a): if a.count(a[i])%2!=0: print("No") b = 1 break if b==0: print("Yes")
s479083550
p04012
u301302814
1551400568
Python
Python (3.4.3)
py
Runtime Error
17
2940
199
# coding: utf-8 S = input() cnt = {} flg = True for s in S: if s in cnt: cnt[s] = 1 else: cnt[s] += 1 for i in cnt.values(): if j % 2 != 0: flg = False print('Yes' if flg else 'No')