node_ids listlengths 4 1.4k | edge_index listlengths 1 2.22k | text listlengths 4 1.4k | source stringlengths 14 427k |
|---|---|---|---|
[
7,
0,
13,
4,
13,
0,
13,
39,
28,
13,
4,
13,
4,
13,
13,
4,
18,
13,
13,
18,
13,
13,
0,
13,
4,
13,
4,
13,
13,
0,
13,
17,
28,
13,
13,
14,
40,
2,
4,
18,
13,
13,
13,
17,
17,
0,
13,
17,
4,
13,
13,
10,
17,
13,
10,
1... | [
[
61,
2
],
[
58,
6
],
[
10,
9
],
[
62,
14
],
[
59,
17
],
[
62,
20
],
[
9,
21
],
[
64,
23
],
[
59,
28
],
[
55,
30
],
[
34,
33
],
[
65,
33
],
[
59,
40
],
[
33... | [
"s = input()\n\nlst = []\n\nfor i in range(len(s)):\n lst.append(s[i])\n\nlst2 = list(set(lst))\n\nresult = 'Yes'\n\nfor i in lst2:\n if lst.count(i) % 2 != 0:\n result = 'No'\n\nprint(result)",
"s = input()",
"s",
"input()",
"input",
"lst = []",
"lst",
"[]",
"for i in range(len(s)):\n ls... | s = input()
lst = []
for i in range(len(s)):
lst.append(s[i])
lst2 = list(set(lst))
result = 'Yes'
for i in lst2:
if lst.count(i) % 2 != 0:
result = 'No'
print(result) |
[
7,
15,
13,
0,
13,
4,
13,
4,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
28,
13,
13,
14,
2,
2,
13,
17,
17,
4,
13,
17,
4,
13,
4,
13,
17,
10,
4,
13,
10,
4,
13,
10,
4,
13
] | [
[
40,
4
],
[
43,
10
],
[
41,
15
],
[
46,
17
],
[
44,
20
],
[
24,
23
],
[
47,
23
],
[
23,
28
],
[
40,
41
],
[
43,
44
],
[
46,
47
]
] | [
"import collections\nS=list(input())\nc = collections.Counter(S)\nL=c.values()\nfor i in L:\n if i%2==1:\n print(\"No\")\n exit()\nprint(\"Yes\")",
"import collections",
"collections",
"S=list(input())",
"S",
"list(input())",
"list",
"input()",
"input",
"c = collections.Counter(S)",
"c",
... | import collections
S=list(input())
c = collections.Counter(S)
L=c.values()
for i in L:
if i%2==1:
print("No")
exit()
print("Yes") |
[
7,
0,
13,
4,
13,
0,
13,
17,
28,
13,
13,
14,
40,
13,
4,
18,
13,
13,
0,
18,
13,
13,
17,
0,
18,
13,
13,
17,
0,
13,
17,
28,
13,
4,
18,
13,
13,
14,
2,
2,
18,
13,
13,
17,
17,
0,
13,
17,
3,
4,
13,
13,
10,
17,
13,
... | [
[
59,
2
],
[
56,
6
],
[
10,
9
],
[
60,
9
],
[
9,
13
],
[
57,
16
],
[
22,
19
],
[
57,
20
],
[
9,
21
],
[
27,
24
],
[
57,
25
],
[
9,
26
],
[
53,
29
],
[
33,
... | [
"w = input()\n\ncnt_dict = {}\nfor c in w:\n if c not in cnt_dict.keys():\n cnt_dict[c] = 0\n cnt_dict[c] += 1\n\nans = \"Yes\"\nfor c in cnt_dict.keys():\n if cnt_dict[c] % 2 == 1:\n ans = \"No\"\n break\nprint(ans)",
"w = input()",
"w",
"input()",
"input",
"cnt_dict = {}",
... | w = input()
cnt_dict = {}
for c in w:
if c not in cnt_dict.keys():
cnt_dict[c] = 0
cnt_dict[c] += 1
ans = "Yes"
for c in cnt_dict.keys():
if cnt_dict[c] % 2 == 1:
ans = "No"
break
print(ans)
|
[
7,
15,
13,
0,
13,
18,
18,
18,
13,
13,
13,
13,
0,
13,
18,
18,
18,
13,
13,
13,
13,
0,
13,
18,
18,
18,
13,
13,
13,
13,
4,
18,
13,
13,
2,
17,
17,
0,
13,
4,
13,
17,
0,
13,
4,
13,
15,
13,
0,
13,
4,
18,
13,
13,
13,
... | [
[
89,
4
],
[
83,
13
],
[
92,
22
],
[
80,
38
],
[
77,
43
],
[
86,
49
],
[
78,
54
],
[
87,
60
],
[
77,
78
],
[
80,
81
],
[
83,
84
],
[
86,
87
],
[
89,
90
],
[
... | [
"import sys\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\nread = sys.stdin.buffer.read\nsys.setrecursionlimit(10 ** 7)\nINF = float('inf')\n\nw = input()\nimport collections\nc = collections.Counter(w)\nfor k, v in c.items():\n if v % 2 != 0:\n print('No')\n quit()\... | import sys
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
read = sys.stdin.buffer.read
sys.setrecursionlimit(10 ** 7)
INF = float('inf')
w = input()
import collections
c = collections.Counter(w)
for k, v in c.items():
if v % 2 != 0:
print('No')
quit()
print('Yes')
|
[
7,
0,
13,
4,
13,
14,
40,
2,
4,
13,
13,
17,
17,
4,
13,
17,
4,
13,
0,
13,
2,
39,
17,
17,
28,
13,
4,
13,
4,
13,
13,
0,
13,
2,
4,
13,
18,
13,
13,
4,
13,
17,
0,
18,
13,
13,
17,
28,
13,
4,
13,
4,
13,
13,
14,
40,
... | [
[
77,
2
],
[
78,
10
],
[
74,
19
],
[
26,
25
],
[
78,
30
],
[
71,
32
],
[
78,
37
],
[
25,
38
],
[
46,
43
],
[
75,
44
],
[
72,
45
],
[
49,
48
],
[
75,
53
],
[
... | [
"w = input()\n\nif len(w) % 2 != 0:\n print('No')\n exit()\n\ncnt = [0]*30\nfor i in range(len(w)):\n a = ord(w[i]) - ord('a')\n cnt[a] += 1\n\nfor i in range(len(cnt)):\n if cnt[i] % 2 != 0:\n print('No')\n exit()\n\nprint('Yes')",
"w = input()",
"w",
"input()",
"input",
"if ... | w = input()
if len(w) % 2 != 0:
print('No')
exit()
cnt = [0]*30
for i in range(len(w)):
a = ord(w[i]) - ord('a')
cnt[a] += 1
for i in range(len(cnt)):
if cnt[i] % 2 != 0:
print('No')
exit()
print('Yes') |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
17,
0,
13,
17,
14,
40,
2,
4,
13,
13,
17,
17,
4,
13,
17,
28,
13,
4,
13,
4,
13,
13,
0,
13,
4,
18,
13,
13,
18,
13,
13,
14,
2,
2,
2,
13,
17,
17,
2,
13,
2,
4,
13,
13,
17,
4,
13,
... | [
[
72,
2
],
[
69,
8
],
[
78,
11
],
[
73,
18
],
[
26,
25
],
[
73,
30
],
[
75,
32
],
[
73,
35
],
[
73,
38
],
[
25,
39
],
[
76,
44
],
[
70,
44
],
[
25,
48
],
[
... | [
"w = list(input())\nj = 0\nans = 0\n\nif(len(w)%2 != 0):\n print('No')\nelse:\n for i in range(len(w)):\n j = w.count(w[i])\n if(j%2 == 0 and i == len(w)-1):\n print('Yes')\n break\n elif(j%2 != 0):\n print('No')\n break",
"w = list(input())",... | w = list(input())
j = 0
ans = 0
if(len(w)%2 != 0):
print('No')
else:
for i in range(len(w)):
j = w.count(w[i])
if(j%2 == 0 and i == len(w)-1):
print('Yes')
break
elif(j%2 != 0):
print('No')
break |
[
7,
15,
13,
0,
13,
4,
13,
4,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
17,
28,
13,
4,
18,
13,
13,
14,
40,
2,
13,
17,
17,
0,
13,
17,
3,
4,
13,
13,
10,
4,
13,
10,
17,
13,
10,
4,
13,
10,
17,
13
] | [
[
39,
4
],
[
45,
10
],
[
40,
15
],
[
42,
17
],
[
21,
20
],
[
46,
23
],
[
20,
28
],
[
48,
32
],
[
49,
37
],
[
43,
37
],
[
39,
40
],
[
42,
43
],
[
45,
46
],
[
... | [
"import collections\nw=list(input())\nW=collections.Counter(w)\nans=\"Yes\"\nfor i in W.values():\n if i%2!=0:\n ans=\"No\"\n break\n\nprint(ans)",
"import collections",
"collections",
"w=list(input())",
"w",
"list(input())",
"list",
"input()",
"input",
"W=collections.Counter(w)",... | import collections
w=list(input())
W=collections.Counter(w)
ans="Yes"
for i in W.values():
if i%2!=0:
ans="No"
break
print(ans) |
[
7,
15,
0,
13,
4,
13,
0,
13,
4,
13,
13,
28,
13,
4,
18,
13,
13,
14,
2,
13,
17,
4,
13,
17,
4,
13,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
30,
3
],
[
33,
7
],
[
31,
10
],
[
13,
12
],
[
34,
15
],
[
12,
19
],
[
30,
31
],
[
33,
34
]
] | [
"from collections import Counter\n\nW = input()\nC = Counter(W)\n\nfor v in C.values():\n if v % 2:\n print(\"No\")\n exit()\nprint(\"Yes\")",
"from collections import Counter",
"W = input()",
"W",
"input()",
"input",
"C = Counter(W)",
"C",
"Counter(W)",
"Counter",
"W",
"for v... | from collections import Counter
W = input()
C = Counter(W)
for v in C.values():
if v % 2:
print("No")
exit()
print("Yes")
|
[
7,
15,
13,
0,
13,
4,
13,
4,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
17,
28,
13,
4,
18,
13,
13,
14,
40,
2,
13,
17,
17,
0,
13,
17,
14,
13,
4,
13,
17,
4,
13,
17,
10,
17,
13,
10,
4,
13,
10,
4,
13,
10,
17,
13
] | [
[
46,
4
],
[
49,
10
],
[
47,
15
],
[
52,
17
],
[
21,
20
],
[
50,
23
],
[
20,
28
],
[
43,
32
],
[
43,
44
],
[
46,
47
],
[
49,
50
],
[
52,
53
]
] | [
"import collections\n\nw = list(input())\nw_count = collections.Counter(w)\nflag = True\nfor i in w_count.values():\n if i % 2 != 0:\n flag = False\nif flag:\n print(\"Yes\")\nelse:\n print(\"No\")",
"import collections",
"collections",
"w = list(input())",
"w",
"list(input())",
"list",
... | import collections
w = list(input())
w_count = collections.Counter(w)
flag = True
for i in w_count.values():
if i % 2 != 0:
flag = False
if flag:
print("Yes")
else:
print("No")
|
[
7,
0,
13,
4,
13,
0,
13,
39,
28,
13,
13,
4,
18,
13,
13,
13,
0,
13,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
0,
13,
39,
28,
13,
4,
13,
2,
4,
13,
13,
17,
14,
2,
18,
13,
13,
18,
13,
2,
13,
17,
0,
13,
17,
14,
2,
2,
... | [
[
109,
2
],
[
100,
6
],
[
10,
9
],
[
110,
9
],
[
101,
13
],
[
9,
15
],
[
97,
17
],
[
101,
20
],
[
101,
23
],
[
106,
26
],
[
103,
29
],
[
33,
32
],
[
101,
38
],
... | [
"# import math\n# import statistics\na=input()\n#b,c=int(input()),int(input())\nc=[]\nfor i in a:\n c.append(i)\n#e1,e2 = map(int,input().split())\n# f = list(map(int,input().split()))\n#g = [input() for _ in range(a)]\n# h = []\n# for i in range(e1):\n# h.append(list(map(int,input().split())))\nse=set(c)\nc... | # import math
# import statistics
a=input()
#b,c=int(input()),int(input())
c=[]
for i in a:
c.append(i)
#e1,e2 = map(int,input().split())
# f = list(map(int,input().split()))
#g = [input() for _ in range(a)]
# h = []
# for i in range(e1):
# h.append(list(map(int,input().split())))
se=set(c)
c.sort()
count=1
res... |
[
7,
0,
13,
4,
13,
0,
13,
4,
13,
13,
0,
13,
39,
28,
13,
13,
4,
18,
13,
13,
4,
18,
13,
13,
13,
0,
13,
17,
28,
13,
13,
14,
2,
2,
13,
17,
17,
0,
13,
17,
14,
2,
13,
17,
4,
13,
17,
4,
13,
17,
10,
39,
13,
10,
17,
1... | [
[
63,
2
],
[
57,
6
],
[
64,
9
],
[
51,
11
],
[
15,
14
],
[
58,
14
],
[
52,
18
],
[
64,
22
],
[
52,
23
],
[
14,
24
],
[
54,
26
],
[
30,
29
],
[
52,
29
],
[
2... | [
"w = input()\n\ngroup = set(w)\n\ncount = []\nfor i in group:\n count.append(w.count(i))\n\nans = 0\n\nfor j in count:\n if j % 2 == 1:\n ans = 1\n else:\n pass\n\nif ans == 0:\n print(\"Yes\")\nelse:\n print(\"No\")",
"w = input()",
"w",
"input()",
"input",
"group = set(w)",
... | w = input()
group = set(w)
count = []
for i in group:
count.append(w.count(i))
ans = 0
for j in count:
if j % 2 == 1:
ans = 1
else:
pass
if ans == 0:
print("Yes")
else:
print("No") |
[
7,
0,
13,
4,
13,
28,
13,
4,
13,
13,
14,
40,
2,
4,
18,
13,
13,
13,
17,
17,
4,
13,
17,
3,
4,
13,
17,
10,
4,
13
] | [
[
28,
2
],
[
7,
6
],
[
29,
9
],
[
29,
15
],
[
6,
17
],
[
28,
29
]
] | [
"s = input()\n\nfor i in set(s):\n if s.count(i) % 2 != 0:\n print('No')\n break\nelse:\n print('Yes')",
"s = input()",
"s",
"input()",
"input",
"for i in set(s):\n if s.count(i) % 2 != 0:\n print('No')\n break\nelse:\n print('Yes')",
"i",
"set(s)",
"set",
"... | s = input()
for i in set(s):
if s.count(i) % 2 != 0:
print('No')
break
else:
print('Yes') |
[
7,
15,
0,
13,
4,
13,
0,
13,
4,
13,
13,
28,
13,
4,
18,
13,
13,
14,
40,
2,
13,
17,
17,
4,
13,
17,
4,
13,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
32,
3
],
[
35,
7
],
[
33,
10
],
[
13,
12
],
[
36,
15
],
[
12,
20
],
[
32,
33
],
[
35,
36
]
] | [
"from collections import Counter\n\nw = input()\n\ncountAlphabets = Counter(w)\nfor count in countAlphabets.values():\n if count % 2 != 0:\n print(\"No\")\n exit()\n\nprint(\"Yes\")",
"from collections import Counter",
"w = input()",
"w",
"input()",
"input",
"countAlphabets = Counter(w)... | from collections import Counter
w = input()
countAlphabets = Counter(w)
for count in countAlphabets.values():
if count % 2 != 0:
print("No")
exit()
print("Yes")
|
[
7,
0,
13,
4,
13,
0,
13,
17,
28,
13,
13,
4,
18,
13,
13,
13,
17,
0,
18,
13,
13,
17,
0,
13,
17,
28,
13,
4,
18,
13,
13,
14,
40,
2,
13,
17,
17,
0,
13,
17,
3,
14,
13,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10,
17,
13,
... | [
[
50,
2
],
[
53,
6
],
[
10,
9
],
[
51,
9
],
[
54,
13
],
[
9,
15
],
[
21,
18
],
[
54,
19
],
[
9,
20
],
[
59,
23
],
[
27,
26
],
[
54,
29
],
[
26,
34
],
[
56,
... | [
"w = input()\n\ndict_ = {}\n\nfor i in w:\n dict_.setdefault(i, 0)\n dict_[i] +=1\n\nflg = True\n\nfor v in dict_.values():\n if v % 2 != 0:\n flg = False\n break\nif flg:\n print(\"Yes\")\nelse:\n print(\"No\")",
"w = input()",
"w",
"input()",
"input",
"dict_ = {}",
"dict_"... | w = input()
dict_ = {}
for i in w:
dict_.setdefault(i, 0)
dict_[i] +=1
flg = True
for v in dict_.values():
if v % 2 != 0:
flg = False
break
if flg:
print("Yes")
else:
print("No") |
[
7,
15,
13,
15,
13,
15,
13,
15,
13,
15,
13,
15,
13,
15,
13,
15,
0,
13,
12,
4,
18,
4,
18,
18,
13,
13,
13,
13,
0,
13,
12,
4,
18,
4,
18,
18,
13,
13,
13,
13,
0,
13,
12,
4,
13,
4,
18,
18,
13,
13,
13,
0,
13,
12,
4,
... | [
[
146,
17
],
[
131,
29
],
[
137,
41
],
[
143,
52
],
[
149,
67
],
[
134,
84
],
[
125,
89
],
[
140,
96
],
[
147,
98
],
[
128,
100
],
[
141,
105
],
[
108,
107
],
[
129,
... | [
"import sys\nimport math\nimport itertools\nimport collections\nimport heapq\nimport re\nimport numpy as np\nfrom functools import reduce\n\nrr = lambda: sys.stdin.readline().rstrip()\nrs = lambda: sys.stdin.readline().split()\nri = lambda: int(sys.stdin.readline())\nrm = lambda: map(int, sys.stdin.readline().split... | import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np
from functools import reduce
rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.readline().split())
rl = lambda: ... |
[
7,
0,
13,
4,
13,
4,
13,
41,
28,
13,
4,
13,
17,
2,
17,
17,
4,
4,
13,
13,
0,
13,
13,
28,
13,
13,
14,
40,
2,
4,
18,
13,
13,
13,
17,
17,
4,
13,
17,
3,
4,
13,
17,
10,
13,
13,
10,
4,
13
] | [
[
47,
2
],
[
10,
9
],
[
9,
19
],
[
44,
21
],
[
25,
24
],
[
45,
24
],
[
48,
31
],
[
24,
33
],
[
44,
45
],
[
47,
48
]
] | [
"w = list(input())\nS = [chr(i) for i in range(97, 97 + 26)]\n\nfor S in S:\n if w.count(S) % 2 != 0:\n print(\"No\")\n break\nelse:\n print(\"Yes\")",
"w = list(input())",
"w",
"list(input())",
"list",
"input()",
"input",
"chr(i) for i in range(97, 97 + 26)",
"for i in range(97,... | w = list(input())
S = [chr(i) for i in range(97, 97 + 26)]
for S in S:
if w.count(S) % 2 != 0:
print("No")
break
else:
print("Yes") |
[
7,
15,
13,
0,
13,
4,
13,
4,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
17,
28,
13,
4,
18,
13,
13,
14,
40,
2,
13,
17,
17,
0,
13,
17,
3,
4,
13,
13,
10,
17,
13,
10,
4,
13,
10,
4,
13,
10,
17,
13
] | [
[
42,
4
],
[
45,
10
],
[
43,
15
],
[
48,
17
],
[
21,
20
],
[
46,
23
],
[
20,
28
],
[
39,
32
],
[
40,
37
],
[
49,
37
],
[
39,
40
],
[
42,
43
],
[
45,
46
],
[
... | [
"import collections\nw = list(input())\n\ncnt = collections.Counter(w)\nans = \"Yes\"\nfor v in cnt.values():\n if v%2!=0:\n ans = \"No\"\n break\n \nprint(ans)",
"import collections",
"collections",
"w = list(input())",
"w",
"list(input())",
"list",
"input()",
"input",
"cn... | import collections
w = list(input())
cnt = collections.Counter(w)
ans = "Yes"
for v in cnt.values():
if v%2!=0:
ans = "No"
break
print(ans)
|
[
7,
15,
13,
15,
13,
15,
13,
15,
13,
15,
13,
0,
13,
4,
13,
28,
13,
17,
14,
2,
2,
4,
18,
13,
13,
13,
17,
17,
4,
13,
17,
4,
18,
13,
13,
17,
4,
13,
17,
10,
4,
13
] | [
[
40,
12
],
[
17,
16
],
[
41,
23
],
[
16,
25
],
[
40,
41
]
] | [
"import sys\nimport copy\nimport math\nimport itertools\nimport numpy as np\nw = input()\nfor i in \"abcdefghijklmnopqrstuvwxyz\":\n if w.count(i)%2==1:\n print(\"No\")\n sys.exit(0)\n\nprint(\"Yes\")",
"import sys",
"sys",
"import copy",
"copy",
"import math",
"math",
"import itertoo... | import sys
import copy
import math
import itertools
import numpy as np
w = input()
for i in "abcdefghijklmnopqrstuvwxyz":
if w.count(i)%2==1:
print("No")
sys.exit(0)
print("Yes") |
[
7,
0,
13,
4,
13,
0,
13,
17,
0,
13,
17,
28,
13,
13,
14,
2,
2,
4,
18,
13,
13,
13,
17,
17,
0,
13,
17,
14,
13,
4,
13,
17,
4,
13,
17,
10,
17,
13,
10,
17,
13,
10,
4,
13,
10,
17,
13
] | [
[
42,
2
],
[
45,
6
],
[
36,
9
],
[
13,
12
],
[
46,
12
],
[
43,
19
],
[
12,
21
],
[
39,
25
],
[
36,
37
],
[
39,
40
],
[
42,
43
],
[
45,
46
]
] | [
"w=input()\nS=\"abcdefghijklmnopqrstuvwxyz\"\n\nflag=True\nfor c in S:\n if w.count(c)%2==1:\n flag=False\nif flag:\n print(\"Yes\")\nelse:\n print(\"No\")",
"w=input()",
"w",
"input()",
"input",
"S=\"abcdefghijklmnopqrstuvwxyz\"",
"S",
"\"abcdefghijklmnopqrstuvwxyz\"",
"flag=True",
... | w=input()
S="abcdefghijklmnopqrstuvwxyz"
flag=True
for c in S:
if w.count(c)%2==1:
flag=False
if flag:
print("Yes")
else:
print("No")
|
[
7,
0,
13,
4,
13,
0,
13,
2,
39,
17,
17,
28,
13,
4,
13,
4,
13,
13,
0,
18,
13,
2,
4,
13,
18,
13,
13,
17,
17,
28,
13,
4,
13,
4,
13,
13,
14,
40,
2,
18,
13,
13,
17,
17,
4,
13,
17,
4,
13,
4,
13,
17,
10,
4,
13,
10,... | [
[
53,
2
],
[
56,
6
],
[
13,
12
],
[
54,
17
],
[
28,
19
],
[
57,
20
],
[
54,
25
],
[
12,
26
],
[
31,
30
],
[
57,
35
],
[
57,
40
],
[
30,
41
],
[
53,
54
],
[
... | [
"w = input()\ncount = [0] * 27\n\nfor i in range(len(w)):\n\tcount[ord(w[i])-97] += 1\n\nfor i in range(len(count)):\n\tif count[i] % 2 != 0:\n\t\tprint(\"No\")\n\t\texit()\n\nprint(\"Yes\")",
"w = input()",
"w",
"input()",
"input",
"count = [0] * 27",
"count",
"[0] * 27",
"[0]",
"0",
"27",
"f... | w = input()
count = [0] * 27
for i in range(len(w)):
count[ord(w[i])-97] += 1
for i in range(len(count)):
if count[i] % 2 != 0:
print("No")
exit()
print("Yes") |
[
7,
15,
13,
0,
13,
4,
13,
0,
13,
4,
18,
4,
18,
13,
13,
13,
13,
28,
13,
13,
14,
2,
2,
13,
17,
17,
4,
13,
17,
4,
13,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
35,
4
],
[
38,
8
],
[
36,
15
],
[
19,
18
],
[
39,
18
],
[
18,
23
],
[
35,
36
],
[
38,
39
]
] | [
"import collections\n\nw = input()\nC = collections.Counter(w).values()\n\nfor c in C:\n if c%2==0:\n pass\n else:\n print(\"No\")\n exit()\n \nprint(\"Yes\")",
"import collections",
"collections",
"w = input()",
"w",
"input()",
"input",
"C = collections.Counter(w).values()",
"C",
"c... | import collections
w = input()
C = collections.Counter(w).values()
for c in C:
if c%2==0:
pass
else:
print("No")
exit()
print("Yes") |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
28,
13,
4,
13,
4,
13,
13,
0,
13,
4,
18,
13,
13,
18,
13,
13,
14,
40,
2,
13,
17,
17,
4,
13,
17,
3,
4,
13,
17,
10,
4,
13,
10,
4,
13,
10,
4,
13
] | [
[
50,
2
],
[
47,
8
],
[
51,
13
],
[
16,
15
],
[
48,
20
],
[
44,
22
],
[
51,
25
],
[
48,
28
],
[
15,
29
],
[
45,
33
],
[
44,
45
],
[
47,
48
],
[
50,
51
]
] | [
"w = list(input())\nww = list(set(w))\n\nfor i in range(len(ww)):\n num = w.count(ww[i])\n if num % 2 != 0:\n print(\"No\")\n break\nelse:\n print(\"Yes\")",
"w = list(input())",
"w",
"list(input())",
"list",
"input()",
"input",
"ww = list(set(w))",
"ww",
"list(set(w))",
"... | w = list(input())
ww = list(set(w))
for i in range(len(ww)):
num = w.count(ww[i])
if num % 2 != 0:
print("No")
break
else:
print("Yes") |
[
7,
0,
13,
4,
13,
0,
13,
17,
28,
13,
13,
0,
13,
17,
28,
13,
13,
14,
2,
13,
13,
0,
13,
17,
14,
40,
2,
13,
17,
17,
0,
13,
17,
3,
14,
13,
4,
13,
17,
4,
13,
17,
10,
17,
13,
10,
17,
13,
10,
17,
13,
10,
4,
13,
10,
... | [
[
52,
2
],
[
43,
6
],
[
10,
9
],
[
53,
9
],
[
55,
12
],
[
16,
15
],
[
53,
15
],
[
9,
19
],
[
15,
20
],
[
46,
22
],
[
47,
27
],
[
56,
27
],
[
49,
31
],
[
43,... | [
"w = input()\nans = True\nfor i in w:\n cnt = 0\n for j in w:\n if i == j:\n cnt += 1\n if cnt % 2 != 0:\n ans = False\n break\n \nif ans:\n print(\"Yes\")\nelse:\n print(\"No\")",
"w = input()",
"w",
"input()",
"input",
"ans = True",
"ans",
"True",
"for i in w:\n cnt = 0\n f... | w = input()
ans = True
for i in w:
cnt = 0
for j in w:
if i == j:
cnt += 1
if cnt % 2 != 0:
ans = False
break
if ans:
print("Yes")
else:
print("No") |
[
7,
0,
13,
4,
13,
0,
13,
4,
13,
28,
13,
13,
14,
2,
13,
13,
0,
18,
13,
13,
17,
0,
18,
13,
13,
17,
0,
13,
17,
28,
13,
4,
18,
13,
13,
14,
40,
2,
13,
17,
17,
0,
13,
17,
3,
14,
13,
4,
13,
17,
4,
13,
17,
10,
17,
1... | [
[
57,
2
],
[
60,
6
],
[
11,
10
],
[
58,
10
],
[
10,
14
],
[
61,
15
],
[
20,
17
],
[
61,
18
],
[
10,
19
],
[
25,
22
],
[
61,
23
],
[
10,
24
],
[
54,
27
],
[
... | [
"S = input()\ncount = dict()\nfor c in S:\n if c in count:\n count[c] += 1\n else:\n count[c] = 1\n\nyes = True\nfor e in count.values():\n if e % 2 != 0:\n yes = False\n break\n \nif yes:\n print(\"Yes\")\nelse:\n print(\"No\")",
"S = input()",
"S",
"input()"... | S = input()
count = dict()
for c in S:
if c in count:
count[c] += 1
else:
count[c] = 1
yes = True
for e in count.values():
if e % 2 != 0:
yes = False
break
if yes:
print("Yes")
else:
print("No") |
[
7,
15,
13,
0,
13,
4,
18,
13,
13,
13,
28,
13,
13,
4,
18,
13,
13,
14,
40,
2,
13,
17,
17,
4,
13,
17,
3,
4,
13,
17,
10,
4,
13
] | [
[
31,
4
],
[
32,
15
],
[
31,
32
]
] | [
"import collections\nW=collections.Counter(x for x in input())\n\nfor i,v in W.items():\n if v%2!=0:\n print('No')\n break\nelse:\n print('Yes')",
"import collections",
"collections",
"W=collections.Counter(x for x in input())",
"W",
"collections.Counter(x for x in input())",
"collections.Counte... | import collections
W=collections.Counter(x for x in input())
for i,v in W.items():
if v%2!=0:
print('No')
break
else:
print('Yes') |
[
7,
0,
13,
4,
13,
42,
2,
4,
13,
13,
17,
0,
13,
18,
13,
17,
14,
40,
2,
4,
18,
13,
13,
13,
17,
17,
4,
13,
17,
4,
13,
0,
13,
4,
18,
13,
13,
13,
17,
4,
13,
17,
10,
18,
13,
10,
4,
13,
10,
4,
13
] | [
[
46,
2
],
[
47,
9
],
[
50,
9
],
[
43,
12
],
[
47,
14
],
[
50,
14
],
[
47,
21
],
[
50,
21
],
[
44,
23
],
[
49,
32
],
[
47,
35
],
[
50,
35
],
[
44,
37
],
[
4... | [
"w = input()\nwhile len(w) > 0:\n a = w[0]\n if w.count(a)%2 != 0:\n print(\"No\")\n exit()\n w = w.replace(a,\"\")\nprint(\"Yes\")",
"w = input()",
"w",
"input()",
"input",
"while len(w) > 0:\n a = w[0]\n if w.count(a)%2 != 0:\n print(\"No\")\n exit()\n w = w... | w = input()
while len(w) > 0:
a = w[0]
if w.count(a)%2 != 0:
print("No")
exit()
w = w.replace(a,"")
print("Yes") |
[
7,
0,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
0,
13,
17,
28,
13,
13,
14,
40,
2,
4,
18,
13,
13,
13,
17,
17,
0,
13,
17,
3,
14,
13,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10,
4,
13,
10,
17,
13,
10,
17,
13
] | [
[
44,
2
],
[
41,
6
],
[
50,
13
],
[
17,
16
],
[
42,
16
],
[
45,
23
],
[
16,
25
],
[
47,
29
],
[
41,
42
],
[
44,
45
],
[
47,
48
],
[
50,
51
]
] | [
"W = input()\nW_list = set(list(s for s in W))\nans = True \nfor s in W_list:\n if W.count(s) % 2 != 0:\n ans = False\n break\n\n\nif ans:\n print(\"Yes\")\nelse:\n print(\"No\")",
"W = input()",
"W",
"input()",
"input",
"W_list = set(list(s for s in W))",
"W_list",
"set(list(s ... | W = input()
W_list = set(list(s for s in W))
ans = True
for s in W_list:
if W.count(s) % 2 != 0:
ans = False
break
if ans:
print("Yes")
else:
print("No") |
[
7,
15,
0,
13,
4,
13,
4,
13,
4,
13,
0,
13,
17,
28,
13,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
17,
0,
13,
17,
4,
13,
8,
13,
17,
17,
10,
17,
13,
10,
17,
13,
10,
4,
13
] | [
[
42,
3
],
[
36,
11
],
[
43,
18
],
[
39,
27
],
[
40,
32
],
[
37,
32
],
[
36,
37
],
[
39,
40
],
[
42,
43
]
] | [
"from collections import Counter\nw = Counter(list(input()))\nf = True\nfor k, v in w.items():\n if v % 2 == 1:\n f = False\nprint(\"Yes\" if f else \"No\")",
"from collections import Counter",
"w = Counter(list(input()))",
"w",
"Counter(list(input()))",
"Counter",
"list(input())",
"list",
... | from collections import Counter
w = Counter(list(input()))
f = True
for k, v in w.items():
if v % 2 == 1:
f = False
print("Yes" if f else "No")
|
[
7,
15,
0,
13,
17,
0,
13,
4,
13,
4,
13,
28,
13,
4,
18,
13,
13,
0,
13,
2,
13,
2,
2,
13,
17,
17,
4,
13,
8,
13,
17,
17,
10,
17,
13,
10,
2,
13,
10,
4,
13
] | [
[
33,
3
],
[
39,
6
],
[
13,
12
],
[
40,
15
],
[
36,
18
],
[
34,
20
],
[
37,
20
],
[
12,
23
],
[
37,
29
],
[
34,
29
],
[
33,
34
],
[
36,
37
],
[
39,
40
]
] | [
"from collections import Counter\nflg = True\nc = Counter(input())\n\nfor v in c.values():\n flg = flg and v % 2 == 0\n\nprint('Yes' if flg else 'No')",
"from collections import Counter",
"flg = True",
"flg",
"True",
"c = Counter(input())",
"c",
"Counter(input())",
"Counter",
"input()",
"input"... | from collections import Counter
flg = True
c = Counter(input())
for v in c.values():
flg = flg and v % 2 == 0
print('Yes' if flg else 'No') |
[
7,
0,
13,
4,
13,
0,
13,
4,
13,
13,
41,
28,
13,
4,
13,
17,
4,
17,
0,
13,
13,
28,
13,
4,
13,
4,
13,
13,
0,
18,
13,
2,
4,
13,
18,
13,
13,
17,
17,
0,
13,
17,
28,
13,
4,
13,
17,
14,
40,
2,
18,
13,
13,
17,
17,
0,... | [
[
76,
2
],
[
70,
6
],
[
77,
9
],
[
13,
12
],
[
73,
19
],
[
23,
22
],
[
71,
27
],
[
38,
29
],
[
74,
30
],
[
71,
35
],
[
22,
36
],
[
79,
40
],
[
44,
43
],
[
7... | [
"str1 = input()\nwo = list(str1)\nli = [0 for i in range(26)]\nfor i in range(len(wo)):\n li[ord(wo[i])-97] += 1\nflag = True\nfor i in range(26):\n if li[i] % 2 != 0:\n flag = False\nif flag:\n print('Yes')\nelse:\n print('No')",
"str1 = input()",
"str1",
"input()",
"input",
"wo = list(st... | str1 = input()
wo = list(str1)
li = [0 for i in range(26)]
for i in range(len(wo)):
li[ord(wo[i])-97] += 1
flag = True
for i in range(26):
if li[i] % 2 != 0:
flag = False
if flag:
print('Yes')
else:
print('No') |
[
7,
0,
13,
4,
13,
4,
13,
41,
28,
13,
4,
13,
17,
4,
17,
0,
13,
13,
0,
13,
17,
28,
13,
4,
13,
4,
13,
13,
28,
13,
4,
13,
17,
14,
2,
4,
13,
18,
13,
13,
2,
17,
13,
0,
18,
13,
13,
17,
28,
13,
4,
13,
17,
14,
40,
2,... | [
[
74,
2
],
[
10,
9
],
[
68,
16
],
[
77,
19
],
[
23,
22
],
[
75,
27
],
[
30,
29
],
[
75,
38
],
[
22,
39
],
[
29,
42
],
[
47,
44
],
[
69,
45
],
[
29,
46
],
[
... | [
"W=str(input())\ncnt=[0 for i in range(26)]\nans=\"Yes\"\nfor i in range(len(W)):\n for j in range(26):\n if ord(W[i])==97+j:\n cnt[j]+=1\n\nfor s in range(26):\n if cnt[s]%2!=0:\n ans=\"No\"\nprint(ans)",
"W=str(input())",
"W",
"str(input())",
"str",
"input()",
"input",
... | W=str(input())
cnt=[0 for i in range(26)]
ans="Yes"
for i in range(len(W)):
for j in range(26):
if ord(W[i])==97+j:
cnt[j]+=1
for s in range(26):
if cnt[s]%2!=0:
ans="No"
print(ans) |
[
7,
15,
13,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
28,
13,
13,
14,
2,
2,
4,
18,
13,
13,
13,
17,
17,
4,
13,
17,
4,
18,
13,
13,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
43,
4
],
[
40,
10
],
[
44,
15
],
[
18,
17
],
[
41,
17
],
[
44,
24
],
[
17,
26
],
[
40,
41
],
[
43,
44
]
] | [
"import sys\nw = list(input())\ns = list(set(w))\nfor i in s:\n if w.count(i) % 2 == 1:\n print(\"No\")\n sys.exit()\nprint(\"Yes\") ",
"import sys",
"sys",
"w = list(input())",
"w",
"list(input())",
"list",
"input()",
"input",
"s = list(set(w))",
"s",
"list(set(w))",
"list"... | import sys
w = list(input())
s = list(set(w))
for i in s:
if w.count(i) % 2 == 1:
print("No")
sys.exit()
print("Yes") |
[
7,
0,
13,
4,
13,
0,
13,
17,
0,
13,
4,
13,
4,
13,
13,
28,
13,
13,
14,
2,
2,
4,
18,
13,
13,
13,
17,
17,
0,
13,
17,
3,
9,
14,
2,
13,
17,
4,
13,
17,
4,
13,
17,
10,
17,
13,
10,
17,
13,
10,
4,
13,
10,
4,
13
] | [
[
53,
2
],
[
44,
6
],
[
50,
9
],
[
54,
14
],
[
17,
16
],
[
51,
16
],
[
54,
23
],
[
16,
25
],
[
47,
29
],
[
48,
35
],
[
45,
35
],
[
44,
45
],
[
47,
48
],
[
5... | [
"N = input()\nans_num = 0\n# 重複を消して抽出する\nset_N = list(set(N))\nfor i in set_N:\n if N.count(i) % 2 == 1:\n ans_num = 1\n break\n else:\n continue\nif ans_num == 0:\n print('Yes')\nelse :\n print('No')",
"N = input()",
"N",
"input()",
"input",
"ans_num = 0",
"ans_num",
... | N = input()
ans_num = 0
# 重複を消して抽出する
set_N = list(set(N))
for i in set_N:
if N.count(i) % 2 == 1:
ans_num = 1
break
else:
continue
if ans_num == 0:
print('Yes')
else :
print('No') |
[
7,
0,
13,
4,
13,
0,
13,
4,
13,
13,
15,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
28,
13,
13,
14,
2,
2,
13,
17,
17,
4,
13,
17,
4,
13,
4,
13,
17,
10,
4,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13
] | [
[
46,
2
],
[
43,
6
],
[
47,
9
],
[
52,
13
],
[
44,
18
],
[
47,
18
],
[
49,
20
],
[
53,
23
],
[
27,
26
],
[
50,
26
],
[
26,
31
],
[
43,
44
],
[
46,
47
],
[
4... | [
"w = input()\nw = list(w)\nimport collections\nco = collections.Counter(w)\nli = co.values()\nfor i in li:\n if i % 2 == 1:\n print('No')\n exit()\nprint('Yes')",
"w = input()",
"w",
"input()",
"input",
"w = list(w)",
"w",
"list(w)",
"list",
"w",
"import collections",
"collect... | w = input()
w = list(w)
import collections
co = collections.Counter(w)
li = co.values()
for i in li:
if i % 2 == 1:
print('No')
exit()
print('Yes') |
[
7,
15,
13,
0,
13,
4,
13,
4,
13,
4,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
13,
13,
28,
13,
13,
14,
40,
2,
4,
13,
18,
13,
13,
17,
17,
4,
13,
17,
3,
4,
13,
17,
10,
4,
13,
10,
4,
13,
10,
4,
13
] | [
[
47,
4
],
[
50,
12
],
[
48,
17
],
[
44,
19
],
[
48,
22
],
[
25,
24
],
[
45,
24
],
[
51,
32
],
[
24,
33
],
[
44,
45
],
[
47,
48
],
[
50,
51
]
] | [
"import collections\nw = list(str(input()))\nl = collections.Counter(w)\ns = set(w)\n\nfor i in s:\n if int(l[i])%2 != 0:\n print('No')\n break\nelse:\n print('Yes')",
"import collections",
"collections",
"w = list(str(input()))",
"w",
"list(str(input()))",
"list",
"str(input())",
... | import collections
w = list(str(input()))
l = collections.Counter(w)
s = set(w)
for i in s:
if int(l[i])%2 != 0:
print('No')
break
else:
print('Yes')
|
[
7,
0,
13,
4,
13,
0,
13,
39,
28,
13,
13,
4,
18,
13,
13,
13,
0,
13,
4,
13,
13,
0,
13,
17,
28,
13,
13,
14,
40,
2,
4,
18,
13,
13,
13,
17,
17,
0,
13,
17,
3,
14,
13,
4,
13,
17,
4,
13,
17,
10,
17,
13,
10,
4,
13,
1... | [
[
53,
2
],
[
56,
6
],
[
10,
9
],
[
54,
9
],
[
57,
13
],
[
9,
15
],
[
59,
17
],
[
57,
20
],
[
62,
22
],
[
26,
25
],
[
60,
25
],
[
57,
32
],
[
25,
34
],
[
50,... | [
"w = input()\nchars = []\nfor c in w:\n chars.append(c)\n\ncset = set(chars)\n\nbeautiful = True\nfor c in cset:\n if chars.count(c) % 2 != 0:\n beautiful = False\n break\n\nif beautiful:\n print('Yes')\nelse:\n print('No')",
"w = input()",
"w",
"input()",
"input",
"chars = []",
... | w = input()
chars = []
for c in w:
chars.append(c)
cset = set(chars)
beautiful = True
for c in cset:
if chars.count(c) % 2 != 0:
beautiful = False
break
if beautiful:
print('Yes')
else:
print('No') |
[
7,
0,
13,
4,
13,
0,
13,
17,
28,
13,
13,
14,
2,
13,
13,
0,
18,
13,
13,
17,
0,
18,
13,
13,
17,
28,
13,
4,
18,
13,
13,
14,
40,
2,
13,
17,
17,
4,
13,
17,
3,
4,
13,
17,
10,
4,
13,
10,
17,
13
] | [
[
45,
2
],
[
48,
6
],
[
10,
9
],
[
46,
9
],
[
9,
13
],
[
49,
14
],
[
19,
16
],
[
49,
17
],
[
9,
18
],
[
24,
21
],
[
49,
22
],
[
9,
23
],
[
27,
26
],
[
49,
... | [
"w = input()\n\ncher_count = {}\n\nfor c in w:\n if c in cher_count:\n cher_count[c] += 1\n else:\n cher_count[c] = 1\n\nfor num in cher_count.values():\n if num % 2 != 0:\n print(\"No\")\n break\nelse:\n print(\"Yes\")",
"w = input()",
"w",
"input()",
"input",
"che... | w = input()
cher_count = {}
for c in w:
if c in cher_count:
cher_count[c] += 1
else:
cher_count[c] = 1
for num in cher_count.values():
if num % 2 != 0:
print("No")
break
else:
print("Yes") |
[
7,
15,
13,
0,
13,
4,
13,
4,
13,
0,
13,
4,
18,
13,
13,
13,
28,
13,
4,
18,
13,
13,
14,
40,
2,
13,
17,
17,
4,
13,
17,
4,
13,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
40,
4
],
[
37,
10
],
[
41,
15
],
[
18,
17
],
[
38,
20
],
[
17,
25
],
[
37,
38
],
[
40,
41
]
] | [
"import collections\ns = list(input())\nc = collections.Counter(s)\nfor s1 in c.values():\n\tif s1 % 2 !=0:\n\t\tprint('No')\n\t\texit()\nprint('Yes')",
"import collections",
"collections",
"s = list(input())",
"s",
"list(input())",
"list",
"input()",
"input",
"c = collections.Counter(s)",
"c",
... | import collections
s = list(input())
c = collections.Counter(s)
for s1 in c.values():
if s1 % 2 !=0:
print('No')
exit()
print('Yes') |
[
7,
12,
13,
15,
13,
0,
13,
18,
18,
13,
13,
13,
0,
13,
4,
18,
4,
13,
13,
15,
13,
41,
28,
13,
18,
13,
13,
4,
13,
17,
0,
13,
13,
28,
13,
13,
0,
18,
13,
13,
40,
18,
13,
13,
14,
4,
13,
4,
18,
13,
13,
4,
13,
17,
4,
... | [
[
7,
6
],
[
14,
13
],
[
6,
17
],
[
24,
23
],
[
23,
28
],
[
32,
31
],
[
35,
34
],
[
13,
34
],
[
40,
37
],
[
31,
38
],
[
34,
39
],
[
37,
41
],
[
31,
42
],
[
3... | [
"\ndef resolve():\n import sys\n input = sys.stdin.readline\n # row = [int(x) for x in input().rstrip().split(\" \")]\n # n = int(input().rstrip())\n w = input().rstrip()\n\n import string\n\n result = {alp: True for alp in string.ascii_lowercase}\n\n for c in w:\n result[c] = not res... |
def resolve():
import sys
input = sys.stdin.readline
# row = [int(x) for x in input().rstrip().split(" ")]
# n = int(input().rstrip())
w = input().rstrip()
import string
result = {alp: True for alp in string.ascii_lowercase}
for c in w:
result[c] = not result[c]
if all(r... |
[
7,
15,
13,
0,
13,
4,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
13,
4,
18,
13,
13,
28,
13,
13,
14,
2,
2,
13,
17,
17,
4,
13,
17,
4,
13,
4,
13,
17,
10,
4,
13,
10,
4,
13,
10,
4,
13
] | [
[
43,
4
],
[
40,
8
],
[
44,
13
],
[
46,
15
],
[
41,
20
],
[
24,
23
],
[
47,
23
],
[
23,
28
],
[
40,
41
],
[
43,
44
],
[
46,
47
]
] | [
"import collections\n\ns = input()\n\nc = collections.Counter(s)\n \nv = list(c.values())\n\nfor i in v:\n if i % 2 == 1:\n print(\"No\")\n exit()\nprint(\"Yes\")",
"import collections",
"collections",
"s = input()",
"s",
"input()",
"input",
"c = collections.Counter(s)",
"c",
"... | import collections
s = input()
c = collections.Counter(s)
v = list(c.values())
for i in v:
if i % 2 == 1:
print("No")
exit()
print("Yes") |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
0,
13,
17,
28,
13,
13,
14,
40,
2,
4,
18,
13,
13,
13,
17,
17,
0,
13,
17,
14,
13,
4,
13,
17,
4,
13,
17,
10,
17,
13,
10,
4,
13,
10,
17,
13,
10,
4,
13
] | [
[
45,
2
],
[
51,
8
],
[
46,
13
],
[
42,
15
],
[
19,
18
],
[
52,
18
],
[
46,
25
],
[
18,
27
],
[
48,
31
],
[
42,
43
],
[
45,
46
],
[
48,
49
],
[
51,
52
]
] | [
"# coding: utf-8\nw = list(input())\n\nw_ = list(set(w))\nflg = True\nfor a in w_:\n if w.count(a)%2 != 0:\n flg = False\n\nif flg:\n print(\"Yes\")\nelse:\n print('No')",
"w = list(input())",
"w",
"list(input())",
"list",
"input()",
"input",
"w_ = list(set(w))",
"w_",
"list(set(w)... | # coding: utf-8
w = list(input())
w_ = list(set(w))
flg = True
for a in w_:
if w.count(a)%2 != 0:
flg = False
if flg:
print("Yes")
else:
print('No') |
[
7,
0,
13,
4,
13,
15,
41,
28,
13,
4,
18,
4,
13,
13,
13,
4,
2,
2,
13,
17,
17,
4,
13,
8,
4,
13,
13,
17,
17,
10,
4,
13
] | [
[
30,
2
],
[
9,
8
],
[
31,
13
],
[
8,
18
],
[
30,
31
]
] | [
"s = input()\nfrom collections import Counter\nprint('Yes' if all([cnt%2==0 for cnt in Counter(s).values()]) else 'No')",
"s = input()",
"s",
"input()",
"input",
"from collections import Counter",
"cnt%2==0 for cnt in Counter(s).values()",
"for cnt in Counter(s).values()",
"cnt",
"Counter(s).value... | s = input()
from collections import Counter
print('Yes' if all([cnt%2==0 for cnt in Counter(s).values()]) else 'No')
|
[
7,
0,
13,
4,
13,
41,
28,
13,
4,
13,
17,
17,
4,
17,
0,
13,
13,
28,
13,
13,
14,
2,
40,
13,
17,
40,
13,
17,
0,
18,
13,
2,
4,
13,
13,
4,
13,
17,
2,
18,
13,
2,
4,
13,
13,
4,
13,
17,
17,
0,
13,
17,
28,
13,
4,
13,... | [
[
86,
2
],
[
8,
7
],
[
83,
15
],
[
19,
18
],
[
87,
18
],
[
18,
23
],
[
18,
26
],
[
38,
29
],
[
84,
30
],
[
18,
34
],
[
84,
40
],
[
18,
44
],
[
80,
50
],
[
5... | [
"s = input()\nalp=[0 for i in range(0, 28)]\nfor j in s:\n\tif j>='a' and j<='z':\n\t\talp[(ord(j)-ord('a'))]=alp[(ord(j)-ord('a'))]+1\nf=0\nfor i in range(0 ,26):\n\tif alp[i]%2!=0:\n\t\tf=1\nif f==1:\n\tprint(\"No\")\nelse:\n\tprint(\"Yes\")",
"s = input()",
"s",
"input()",
"input",
"0 for i in range(0,... | s = input()
alp=[0 for i in range(0, 28)]
for j in s:
if j>='a' and j<='z':
alp[(ord(j)-ord('a'))]=alp[(ord(j)-ord('a'))]+1
f=0
for i in range(0 ,26):
if alp[i]%2!=0:
f=1
if f==1:
print("No")
else:
print("Yes") |
[
7,
0,
13,
4,
13,
41,
28,
13,
13,
4,
13,
17,
0,
13,
13,
28,
13,
13,
0,
18,
13,
13,
17,
0,
13,
17,
28,
13,
4,
18,
13,
13,
14,
40,
2,
13,
17,
17,
0,
13,
17,
3,
4,
13,
8,
13,
17,
17,
10,
17,
13,
10,
4,
13,
10,
... | [
[
52,
2
],
[
8,
7
],
[
53,
7
],
[
7,
10
],
[
55,
13
],
[
17,
16
],
[
53,
16
],
[
22,
19
],
[
56,
20
],
[
16,
21
],
[
58,
24
],
[
28,
27
],
[
56,
30
],
[
27,... | [
"w = input()\nchar_map = { c: 0 for c in w }\nfor c in w:\n char_map[c] += 1\n\nflag = True\nfor val in char_map.values():\n if val % 2 != 0:\n flag = False\n break\n\nprint('Yes' if flag else 'No')",
"w = input()",
"w",
"input()",
"input",
"c: 0 for c in w",
"for c in w",
"c",
"... | w = input()
char_map = { c: 0 for c in w }
for c in w:
char_map[c] += 1
flag = True
for val in char_map.values():
if val % 2 != 0:
flag = False
break
print('Yes' if flag else 'No')
|
[
7,
15,
0,
13,
4,
13,
0,
13,
4,
13,
13,
0,
13,
4,
13,
4,
13,
13,
28,
13,
13,
14,
40,
2,
4,
13,
18,
13,
13,
17,
17,
4,
13,
17,
4,
13,
4,
13,
17,
10,
4,
13,
10,
4,
13,
10,
4,
13
] | [
[
40,
3
],
[
46,
7
],
[
41,
10
],
[
43,
12
],
[
41,
17
],
[
20,
19
],
[
44,
19
],
[
47,
27
],
[
19,
28
],
[
40,
41
],
[
43,
44
],
[
46,
47
]
] | [
"from collections import Counter\nw = input()\nc = Counter(w)\nli = set(list(w))\nfor i in li:\n if int(c[i]) % 2 != 0:\n print(\"No\")\n exit()\nprint(\"Yes\")",
"from collections import Counter",
"w = input()",
"w",
"input()",
"input",
"c = Counter(w)",
"c",
"Counter(w)",
"Count... | from collections import Counter
w = input()
c = Counter(w)
li = set(list(w))
for i in li:
if int(c[i]) % 2 != 0:
print("No")
exit()
print("Yes") |
[
7,
12,
13,
15,
13,
0,
13,
4,
13,
0,
13,
4,
18,
13,
13,
13,
28,
13,
4,
18,
13,
13,
14,
40,
2,
13,
17,
17,
4,
13,
17,
4,
13,
4,
13,
17,
14,
2,
13,
17,
4,
13,
10,
12,
13
] | [
[
7,
6
],
[
11,
10
],
[
6,
15
],
[
18,
17
],
[
10,
20
],
[
17,
25
],
[
44,
41
]
] | [
"# B - 美しい文字列\ndef main():\n import collections\n\n w = input()\n\n w_c = collections.Counter(w)\n\n for v in w_c.values():\n if v % 2 != 0:\n print('No')\n exit()\n else:\n print('Yes')\n \n\n \nif __name__ == \"__main__\":\n main()",
"def main():\... | # B - 美しい文字列
def main():
import collections
w = input()
w_c = collections.Counter(w)
for v in w_c.values():
if v % 2 != 0:
print('No')
exit()
else:
print('Yes')
if __name__ == "__main__":
main() |
[
7,
15,
13,
0,
13,
4,
13,
4,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
17,
28,
13,
13,
4,
13,
13,
14,
2,
2,
18,
13,
13,
17,
17,
0,
13,
17,
14,
2,
13,
4,
13,
13,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10,
17,
13,
10,
4,... | [
[
55,
4
],
[
49,
10
],
[
56,
15
],
[
58,
17
],
[
50,
24
],
[
50,
29
],
[
52,
34
],
[
53,
38
],
[
59,
38
],
[
50,
41
],
[
49,
50
],
[
52,
53
],
[
55,
56
],
[
... | [
"import collections\nw = list(input())\nwc = collections.Counter(w)\nnum = 0\nfor i, x in enumerate(wc):\n if(wc[x]%2==0):\n num += 1\nif(num==len(wc)):\n print('Yes')\nelse:\n print('No')",
"import collections",
"collections",
"w = list(input())",
"w",
"list(input())",
"list",
"input()",
"inp... | import collections
w = list(input())
wc = collections.Counter(w)
num = 0
for i, x in enumerate(wc):
if(wc[x]%2==0):
num += 1
if(num==len(wc)):
print('Yes')
else:
print('No') |
[
7,
15,
0,
13,
4,
13,
13,
0,
13,
4,
13,
28,
13,
13,
0,
18,
13,
13,
17,
28,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
17,
4,
13,
17,
4,
13,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
43,
3
],
[
40,
8
],
[
13,
12
],
[
41,
12
],
[
18,
15
],
[
44,
16
],
[
12,
17
],
[
21,
20
],
[
44,
23
],
[
20,
28
],
[
40,
41
],
[
43,
44
]
] | [
"from collections import defaultdict\nd=defaultdict(int)\ns=input()\nfor i in s:\n d[i]+=1\nfor v in d.values():\n if v%2==1:\n print(\"No\")\n exit()\nprint(\"Yes\")",
"from collections import defaultdict",
"d=defaultdict(int)",
"d",
"defaultdict(int)",
"defaultdict",
"int",
"s=in... | from collections import defaultdict
d=defaultdict(int)
s=input()
for i in s:
d[i]+=1
for v in d.values():
if v%2==1:
print("No")
exit()
print("Yes") |
[
7,
0,
13,
4,
13,
0,
13,
17,
0,
13,
17,
28,
13,
13,
0,
18,
13,
13,
17,
28,
13,
13,
0,
18,
13,
13,
17,
0,
13,
17,
28,
13,
13,
14,
2,
2,
18,
13,
13,
17,
17,
0,
13,
17,
14,
13,
4,
13,
17,
4,
13,
17,
10,
17,
13,
... | [
[
59,
2
],
[
65,
6
],
[
62,
9
],
[
13,
12
],
[
63,
12
],
[
18,
15
],
[
66,
16
],
[
12,
17
],
[
21,
20
],
[
60,
20
],
[
26,
23
],
[
66,
24
],
[
20,
25
],
[
5... | [
"w=input()\n\ndict={}\nalh=\"abcdefghijklmnopqrstuvwxyz\"\nfor i in alh:\n dict[i]=0\nfor i in w:\n dict[i]+=1\nflag=True\nfor i in alh:\n if dict[i]%2==1:\n flag=False\nif flag:\n print(\"Yes\")\nelse:\n print(\"No\")",
"w=input()",
"w",
"input()",
"input",
"dict={}",
"dict",
"{}",
"alh=\"a... | w=input()
dict={}
alh="abcdefghijklmnopqrstuvwxyz"
for i in alh:
dict[i]=0
for i in w:
dict[i]+=1
flag=True
for i in alh:
if dict[i]%2==1:
flag=False
if flag:
print("Yes")
else:
print("No") |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
13,
28,
13,
13,
0,
13,
4,
18,
13,
13,
13,
14,
2,
2,
13,
17,
17,
4,
13,
17,
4,
13,
4,
13,
17,
10,
4,
13,
10,
4,
13,
10,
4,
13
] | [
[
40,
2
],
[
43,
8
],
[
41,
11
],
[
14,
13
],
[
44,
13
],
[
37,
16
],
[
41,
19
],
[
13,
21
],
[
38,
25
],
[
37,
38
],
[
40,
41
],
[
43,
44
]
] | [
"w = list(input())\nW = set(w)\n\nfor i in W:\n ans = w.count(i)\n if ans % 2 == 1:\n print(\"No\")\n exit()\nprint(\"Yes\")",
"w = list(input())",
"w",
"list(input())",
"list",
"input()",
"input",
"W = set(w)",
"W",
"set(w)",
"set",
"w",
"for i in W:\n ans = w.count(i... | w = list(input())
W = set(w)
for i in W:
ans = w.count(i)
if ans % 2 == 1:
print("No")
exit()
print("Yes") |
[
7,
0,
13,
4,
13,
15,
0,
13,
4,
13,
13,
28,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
17,
4,
13,
17,
3,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
31,
2
],
[
34,
7
],
[
32,
10
],
[
13,
12
],
[
35,
15
],
[
12,
20
],
[
31,
32
],
[
34,
35
]
] | [
"w = input()\nfrom collections import Counter\nwc = Counter(w)\n\nfor c in wc.values():\n if c%2 == 1:\n print('No')\n break\nelse:\n print('Yes')",
"w = input()",
"w",
"input()",
"input",
"from collections import Counter",
"wc = Counter(w)",
"wc",
"Counter(w)",
"Counter",
"w... | w = input()
from collections import Counter
wc = Counter(w)
for c in wc.values():
if c%2 == 1:
print('No')
break
else:
print('Yes') |
[
7,
0,
13,
4,
13,
0,
13,
39,
28,
13,
4,
13,
4,
13,
13,
4,
18,
13,
13,
4,
18,
13,
13,
18,
13,
13,
0,
13,
39,
28,
13,
13,
14,
40,
2,
13,
17,
17,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
14,
4,
13,
13,
4,
13,
17,
... | [
[
62,
2
],
[
65,
6
],
[
10,
9
],
[
63,
14
],
[
66,
17
],
[
63,
21
],
[
63,
24
],
[
9,
25
],
[
59,
27
],
[
31,
30
],
[
66,
30
],
[
30,
35
],
[
60,
40
],
[
60... | [
"s = input()\nl = []\nfor i in range(len(s)):\n\tl.append(s.count(s[i]))\nr = []\nfor x in l:\n\tif(x%2!=0):\n\t\tr.append(False)\n\telse:\n\t\tr.append(True)\n\nif(all(r)):\n\tprint(\"Yes\")\nelse:\n\tprint(\"No\")",
"s = input()",
"s",
"input()",
"input",
"l = []",
"l",
"[]",
"for i in range(len(s... | s = input()
l = []
for i in range(len(s)):
l.append(s.count(s[i]))
r = []
for x in l:
if(x%2!=0):
r.append(False)
else:
r.append(True)
if(all(r)):
print("Yes")
else:
print("No")
|
[
7,
0,
13,
4,
13,
0,
13,
17,
14,
2,
2,
4,
13,
13,
17,
17,
0,
13,
17,
0,
13,
4,
13,
13,
0,
13,
17,
28,
13,
4,
13,
17,
4,
13,
13,
14,
2,
18,
13,
13,
18,
13,
2,
13,
17,
0,
13,
17,
14,
2,
2,
13,
17,
17,
0,
13,
... | [
[
68,
2
],
[
77,
6
],
[
69,
13
],
[
71,
17
],
[
86,
20
],
[
69,
23
],
[
65,
25
],
[
29,
28
],
[
87,
34
],
[
87,
38
],
[
28,
39
],
[
87,
41
],
[
28,
43
],
[
... | [
"w = input()\nans = 'Yes'\nif len(w) % 2 == 1:\n ans = 'No'\nelse:\n s = sorted(w)\n count = 1\n for i in range(1, len(s)):\n if s[i] == s[i - 1]:\n count += 1\n else:\n if count % 2 == 1:\n ans = 'No'\n break\n count = 1\nprin... | w = input()
ans = 'Yes'
if len(w) % 2 == 1:
ans = 'No'
else:
s = sorted(w)
count = 1
for i in range(1, len(s)):
if s[i] == s[i - 1]:
count += 1
else:
if count % 2 == 1:
ans = 'No'
break
count = 1
print(ans) |
[
7,
12,
13,
0,
13,
4,
13,
0,
13,
4,
13,
13,
0,
13,
4,
13,
13,
0,
13,
4,
13,
13,
28,
13,
13,
14,
2,
2,
4,
18,
13,
13,
13,
17,
17,
0,
13,
17,
3,
0,
13,
17,
4,
13,
13,
14,
2,
13,
17,
4,
13,
10,
12,
13
] | [
[
5,
4
],
[
9,
8
],
[
4,
11
],
[
14,
13
],
[
4,
16
],
[
19,
18
],
[
13,
21
],
[
24,
23
],
[
8,
23
],
[
13,
30
],
[
23,
32
],
[
37,
36
],
[
41,
40
],
[
40,
... | [
"# -*- coding: utf-8 -*-\n\ndef main():\n\n w = input()\n setW = set(w)\n listW = list(w)\n n = len(listW)\n\n for i in setW:\n if listW.count(i) % 2 == 1:\n ans = 'No'\n break\n\n else:\n ans = 'Yes'\n\n print(ans)\n\nif __name__ == \"__main__\":\n ... | # -*- coding: utf-8 -*-
def main():
w = input()
setW = set(w)
listW = list(w)
n = len(listW)
for i in setW:
if listW.count(i) % 2 == 1:
ans = 'No'
break
else:
ans = 'Yes'
print(ans)
if __name__ == "__main__":
main() |
[
7,
0,
13,
4,
13,
0,
13,
17,
0,
13,
17,
28,
13,
13,
14,
2,
13,
13,
0,
18,
13,
13,
17,
4,
18,
13,
13,
13,
17,
28,
13,
4,
18,
13,
13,
14,
40,
2,
13,
17,
17,
0,
13,
17,
14,
2,
13,
17,
4,
13,
17,
4,
13,
17,
10,
... | [
[
58,
2
],
[
55,
6
],
[
61,
9
],
[
13,
12
],
[
59,
12
],
[
12,
16
],
[
56,
17
],
[
22,
19
],
[
56,
20
],
[
12,
21
],
[
56,
25
],
[
12,
27
],
[
31,
30
],
[
5... | [
"s = input()\nd = {}\nflag = 1\nfor i in s:\n if i in d:\n d[i] += 1\n else:\n d.setdefault(i, 1)\n \nfor j in d.values():\n if j % 2 != 0:\n flag = 0\nif flag == 0:\n print(\"No\")\nelse:\n print(\"Yes\")",
"s = input()",
"s",
"input()",
"input",
"d = {}",
"d",
... | s = input()
d = {}
flag = 1
for i in s:
if i in d:
d[i] += 1
else:
d.setdefault(i, 1)
for j in d.values():
if j % 2 != 0:
flag = 0
if flag == 0:
print("No")
else:
print("Yes") |
[
7,
15,
0,
13,
4,
13,
0,
13,
17,
28,
13,
4,
18,
4,
13,
13,
13,
14,
2,
2,
13,
17,
17,
0,
13,
17,
4,
13,
13,
10,
17,
13,
10,
4,
13,
10,
17,
13
] | [
[
33,
3
],
[
30,
7
],
[
11,
10
],
[
34,
15
],
[
10,
20
],
[
36,
24
],
[
37,
28
],
[
31,
28
],
[
30,
31
],
[
33,
34
],
[
36,
37
]
] | [
"from collections import Counter\ns = input()\nres = 'Yes'\nfor i in Counter(s).values():\n if i % 2 ==1:\n res = 'No'\nprint(res)",
"from collections import Counter",
"s = input()",
"s",
"input()",
"input",
"res = 'Yes'",
"res",
"'Yes'",
"for i in Counter(s).values():\n if i % 2 ==... | from collections import Counter
s = input()
res = 'Yes'
for i in Counter(s).values():
if i % 2 ==1:
res = 'No'
print(res) |
[
7,
0,
13,
4,
13,
15,
13,
0,
13,
4,
18,
13,
13,
13,
14,
4,
13,
2,
2,
13,
17,
17,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
29,
2
],
[
32,
8
],
[
30,
13
],
[
29,
30
],
[
32,
33
]
] | [
"w = input()\n\nimport collections as c\n\ncounts = c.Counter(w)\nif all(elem % 2 == 0 for elem in counts.values()):\n print('Yes')\nelse:\n print('No')",
"w = input()",
"w",
"input()",
"input",
"import collections as c",
"collections",
"counts = c.Counter(w)",
"counts",
"c.Counter(w)",
"c.Cou... | w = input()
import collections as c
counts = c.Counter(w)
if all(elem % 2 == 0 for elem in counts.values()):
print('Yes')
else:
print('No') |
[
7,
15,
13,
0,
13,
4,
13,
0,
13,
4,
18,
13,
13,
13,
28,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
17,
4,
13,
17,
4,
13,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
38,
4
],
[
35,
8
],
[
39,
13
],
[
16,
15
],
[
36,
18
],
[
15,
23
],
[
35,
36
],
[
38,
39
]
] | [
"import collections\nw = input()\ncw = collections.Counter(w)\nfor val in cw.values():\n if val%2 == 1:\n print('No')\n exit()\nprint('Yes')",
"import collections",
"collections",
"w = input()",
"w",
"input()",
"input",
"cw = collections.Counter(w)",
"cw",
"collections.Counter(w)"... | import collections
w = input()
cw = collections.Counter(w)
for val in cw.values():
if val%2 == 1:
print('No')
exit()
print('Yes')
|
[
7,
12,
13,
0,
13,
4,
13,
0,
13,
4,
13,
28,
13,
4,
13,
4,
13,
13,
14,
2,
18,
13,
13,
13,
0,
18,
13,
18,
13,
13,
17,
0,
18,
13,
18,
13,
13,
17,
0,
13,
17,
28,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
17,
0,
13,
1... | [
[
5,
4
],
[
9,
8
],
[
13,
12
],
[
4,
17
],
[
4,
21
],
[
12,
22
],
[
8,
23
],
[
30,
25
],
[
8,
26
],
[
4,
28
],
[
12,
29
],
[
37,
32
],
[
8,
33
],
[
4,
3... | [
"def main():\n w = input()\n d = dict()\n\n for i in range(len(w)):\n if (w[i] in d):\n d[w[i]] += 1\n else:\n d[w[i]] = 1\n\n correct = 0\n for v in d.values():\n if v % 2 == 0:\n correct += 1\n\n if correct == len(d):\n print(\"Yes\")\... | def main():
w = input()
d = dict()
for i in range(len(w)):
if (w[i] in d):
d[w[i]] += 1
else:
d[w[i]] = 1
correct = 0
for v in d.values():
if v % 2 == 0:
correct += 1
if correct == len(d):
print("Yes")
else:
print... |
[
7,
41,
28,
13,
4,
13,
13,
4,
8,
2,
2,
4,
18,
13,
13,
13,
17,
17,
17,
17,
0,
13,
39,
31,
4,
13,
4,
13,
18,
17,
39,
4,
13,
13,
17,
10,
39,
13
] | [
[
4,
3
],
[
3,
15
],
[
36,
21
],
[
36,
37
]
] | [
"s=[*input()];print('NYoe s'[all([1 if s.count(i)%2==0 else 0 for i in set(s)])::2])",
"1 if s.count(i)%2==0 else 0 for i in set(s)",
"for i in set(s)",
"i",
"set(s)",
"set",
"s",
"for i in set(s)",
"1 if s.count(i)%2==0 else 0",
"s.count(i)%2==0",
"s.count(i)%2",
"s.count(i)",
"s.count",
... | s=[*input()];print('NYoe s'[all([1 if s.count(i)%2==0 else 0 for i in set(s)])::2]) |
[
7,
0,
13,
4,
13,
28,
13,
4,
13,
4,
13,
13,
14,
40,
2,
4,
18,
13,
13,
18,
13,
13,
17,
17,
4,
13,
17,
4,
13,
4,
13,
17,
10,
4,
13
] | [
[
33,
2
],
[
7,
6
],
[
34,
11
],
[
34,
17
],
[
34,
20
],
[
6,
21
],
[
33,
34
]
] | [
"#!/usr/bin/env python3\nw = input()\n\nfor i in range(len(w)):\n if w.count(w[i]) % 2 != 0:\n print('No')\n exit()\nprint('Yes')",
"w = input()",
"w",
"input()",
"input",
"for i in range(len(w)):\n if w.count(w[i]) % 2 != 0:\n print('No')\n exit()",
"i",
"range(len(w... | #!/usr/bin/env python3
w = input()
for i in range(len(w)):
if w.count(w[i]) % 2 != 0:
print('No')
exit()
print('Yes')
|
[
7,
0,
13,
4,
13,
0,
13,
17,
28,
13,
13,
0,
18,
13,
13,
2,
4,
18,
13,
13,
13,
17,
17,
28,
13,
4,
13,
13,
14,
2,
2,
18,
13,
13,
17,
17,
4,
13,
17,
3,
4,
13,
17,
10,
17,
13,
10,
4,
13
] | [
[
47,
2
],
[
44,
6
],
[
10,
9
],
[
48,
9
],
[
15,
12
],
[
45,
13
],
[
9,
14
],
[
45,
18
],
[
9,
20
],
[
25,
24
],
[
48,
27
],
[
12,
31
],
[
45,
32
],
[
24,
... | [
"s=input()\nd={}\nfor i in s:\n d[i]=d.get(i,0)+1\nfor i in set(s):\n if d[i]%2==1:\n print(\"No\")\n break\nelse:\n print(\"Yes\")",
"s=input()",
"s",
"input()",
"input",
"d={}",
"d",
"{}",
"for i in s:\n d[i]=d.get(i,0)+1",
"i",
"s",
"d[i]=d.get(i,0)+1",
"d[i]",
"d",
"i",
"... | s=input()
d={}
for i in s:
d[i]=d.get(i,0)+1
for i in set(s):
if d[i]%2==1:
print("No")
break
else:
print("Yes") |
[
7,
0,
13,
4,
13,
0,
13,
17,
28,
13,
4,
13,
4,
13,
13,
14,
40,
2,
18,
13,
13,
13,
0,
18,
13,
18,
13,
13,
17,
0,
18,
13,
18,
13,
13,
17,
0,
13,
4,
13,
4,
13,
4,
13,
12,
2,
13,
17,
23,
4,
13,
4,
18,
13,
13,
14... | [
[
69,
2
],
[
66,
6
],
[
10,
9
],
[
70,
14
],
[
70,
19
],
[
9,
20
],
[
67,
21
],
[
28,
23
],
[
67,
24
],
[
70,
26
],
[
9,
27
],
[
35,
30
],
[
67,
31
],
[
70,... | [
"w = input()\nbeau = {}\nfor i in range(len(w)):\n if not w[i] in beau:\n beau[w[i]] = 1\n else:\n beau[w[i]] += 1\nnum = sum(list(map(lambda x: x%2,list(beau.values()))))\nif num == 0:\n print('Yes')\nelse:\n print('No')",
"w = input()",
"w",
"input()",
"input",
"beau = {}",
"... | w = input()
beau = {}
for i in range(len(w)):
if not w[i] in beau:
beau[w[i]] = 1
else:
beau[w[i]] += 1
num = sum(list(map(lambda x: x%2,list(beau.values()))))
if num == 0:
print('Yes')
else:
print('No') |
[
7,
15,
13,
15,
13,
15,
13,
0,
13,
17,
12,
13,
28,
13,
13,
14,
40,
2,
4,
18,
13,
13,
13,
17,
17,
29,
17,
29,
17,
23,
13,
12,
13,
0,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
13,
13,
29,
13,
0,
13,
17,
0,
13,
17,
... | [
[
110,
8
],
[
14,
13
],
[
111,
13
],
[
30,
20
],
[
13,
22
],
[
30,
30
],
[
35,
34
],
[
39,
38
],
[
102,
42
],
[
34,
43
],
[
38,
46
],
[
38,
48
],
[
113,
50
],
[... | [
"# -*- coding: utf-8 -*-\n# template: v1.2\n\nimport io\nimport sys\nimport math\n\nCASES = \"abcdefghijklmnopqrstuvwxyz\"\n\ndef solve(s):\n # implement process\n for c in CASES:\n if s.count(c) % 2 != 0:\n return \"No\"\n return \"Yes\"\n\ndef main():\n # input\n s = input()\n ... | # -*- coding: utf-8 -*-
# template: v1.2
import io
import sys
import math
CASES = "abcdefghijklmnopqrstuvwxyz"
def solve(s):
# implement process
for c in CASES:
if s.count(c) % 2 != 0:
return "No"
return "Yes"
def main():
# input
s = input()
# process
ans = str( ... |
[
7,
15,
13,
15,
13,
0,
13,
4,
13,
0,
13,
39,
28,
13,
13,
4,
18,
13,
13,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
13,
4,
18,
13,
13,
28,
13,
4,
13,
4,
13,
13,
14,
2,
2,
4,
13,
18,
13,
13,
17,
17... | [
[
73,
6
],
[
79,
10
],
[
14,
13
],
[
74,
13
],
[
80,
17
],
[
13,
19
],
[
80,
22
],
[
82,
25
],
[
80,
30
],
[
85,
32
],
[
83,
37
],
[
41,
40
],
[
86,
45
],
[
... | [
"import collections\nimport sys\na=input()\nb=[]\n\nfor i in a:\n b.append(i)\n \nb.sort()\nc=collections.Counter(b)\nc=list(c.values())\n\nfor i in range(len(c)):\n if int(c[i])%2==0:\n q=0\n else:\n q=1\n print('No')\n sys.exit()\n \nprint('Yes')",
"import collections",
"collections",
"im... | import collections
import sys
a=input()
b=[]
for i in a:
b.append(i)
b.sort()
c=collections.Counter(b)
c=list(c.values())
for i in range(len(c)):
if int(c[i])%2==0:
q=0
else:
q=1
print('No')
sys.exit()
print('Yes')
|
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
13,
0,
13,
17,
28,
13,
13,
14,
40,
2,
4,
18,
13,
13,
13,
17,
17,
4,
13,
17,
0,
13,
17,
3,
14,
2,
13,
17,
4,
13,
17,
10,
4,
13,
10,
17,
13,
10,
17,
13,
10,
4,
13
] | [
[
43,
2
],
[
52,
8
],
[
44,
11
],
[
46,
13
],
[
17,
16
],
[
53,
16
],
[
44,
23
],
[
16,
25
],
[
49,
32
],
[
50,
37
],
[
47,
37
],
[
43,
44
],
[
46,
47
],
[
... | [
"w = list(input())\n\nw_set = set(w)\nflag = 0\n\nfor l in w_set:\n if w.count(l)%2 != 0:\n print('No')\n flag = 1\n break\n\nif flag==0:\n print('Yes')",
"w = list(input())",
"w",
"list(input())",
"list",
"input()",
"input",
"w_set = set(w)",
"w_set",
"set(w)",
"set",... | w = list(input())
w_set = set(w)
flag = 0
for l in w_set:
if w.count(l)%2 != 0:
print('No')
flag = 1
break
if flag==0:
print('Yes') |
[
7,
15,
13,
0,
13,
4,
18,
13,
13,
4,
13,
4,
13,
0,
13,
17,
28,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
17,
0,
13,
17,
14,
13,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10,
17,
13,
10,
17,
13
] | [
[
40,
4
],
[
46,
14
],
[
18,
17
],
[
41,
20
],
[
17,
25
],
[
43,
29
],
[
40,
41
],
[
43,
44
],
[
46,
47
]
] | [
"import collections #Counterを使いたいから\n\nc = collections.Counter(list(input())) #出現回数が多い順に要素を取得 キーと値\n\nf = True\nfor val in c.values():\n if val%2==1:\n f = False\nif f:\n print(\"Yes\")\nelse:\n print(\"No\")",
"import collections",
"collections",
"c = collections.Counter(list(input()))",
"c",
"coll... | import collections #Counterを使いたいから
c = collections.Counter(list(input())) #出現回数が多い順に要素を取得 キーと値
f = True
for val in c.values():
if val%2==1:
f = False
if f:
print("Yes")
else:
print("No") |
[
7,
15,
0,
13,
4,
13,
4,
13,
28,
13,
4,
18,
13,
13,
14,
2,
2,
18,
13,
13,
17,
17,
4,
13,
17,
4,
13,
4,
13,
17,
10,
4,
13
] | [
[
31,
3
],
[
10,
9
],
[
32,
12
],
[
32,
18
],
[
9,
19
],
[
31,
32
]
] | [
"from collections import Counter\n\nc = Counter(input())\n\nfor k in c.keys():\n if c[k] % 2 == 1:\n print('No')\n exit()\n \nprint('Yes')",
"from collections import Counter",
"c = Counter(input())",
"c",
"Counter(input())",
"Counter",
"input()",
"input",
"for k in c.keys():\n if c[k] % 2... | from collections import Counter
c = Counter(input())
for k in c.keys():
if c[k] % 2 == 1:
print('No')
exit()
print('Yes') |
[
7,
15,
13,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
13,
28,
13,
13,
14,
40,
2,
4,
18,
13,
13,
13,
17,
17,
4,
13,
17,
4,
18,
13,
13,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
41,
4
],
[
38,
10
],
[
42,
13
],
[
16,
15
],
[
39,
15
],
[
42,
15
],
[
39,
22
],
[
42,
22
],
[
15,
24
],
[
38,
39
],
[
41,
42
]
] | [
"import sys\nst = str(input())\n\nst = sorted(st)\n\nfor i in st:\n if st.count(i) % 2 != 0:\n print('No')\n sys.exit()\nprint('Yes')",
"import sys",
"sys",
"st = str(input())",
"st",
"str(input())",
"str",
"input()",
"input",
"st = sorted(st)",
"st",
"sorted(st)",
"sorted",... | import sys
st = str(input())
st = sorted(st)
for i in st:
if st.count(i) % 2 != 0:
print('No')
sys.exit()
print('Yes') |
[
7,
0,
13,
4,
13,
0,
13,
17,
28,
13,
4,
13,
17,
14,
2,
2,
4,
18,
13,
13,
18,
13,
13,
17,
17,
9,
4,
13,
17,
4,
13,
4,
13,
17,
10,
17,
13,
10,
4,
13
] | [
[
38,
2
],
[
35,
6
],
[
10,
9
],
[
39,
18
],
[
36,
21
],
[
9,
22
],
[
35,
36
],
[
38,
39
]
] | [
"w=input()\ndata='abcdefghijklmnopqrstuvwxyz'\nfor i in range(26):\n if w.count(data[i])%2==0:\n continue\n else:\n print('No')\n exit()\nprint('Yes')",
"w=input()",
"w",
"input()",
"input",
"data='abcdefghijklmnopqrstuvwxyz'",
"data",
"'abcdefghijklmnopqrstuvwxyz'",
"for i in range(26):\... | w=input()
data='abcdefghijklmnopqrstuvwxyz'
for i in range(26):
if w.count(data[i])%2==0:
continue
else:
print('No')
exit()
print('Yes') |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
39,
28,
13,
4,
13,
4,
13,
13,
4,
18,
13,
13,
18,
13,
13,
15,
0,
13,
4,
18,
4,
13,
13,
13,
0,
13,
17,
28,
13,
4,
13,
4,
13,
13,
14,
40,
2,
18,
18,
13,
13,
17,
17,
17,
0,
13,
17... | [
[
64,
2
],
[
67,
8
],
[
12,
11
],
[
65,
16
],
[
68,
19
],
[
65,
22
],
[
11,
23
],
[
73,
26
],
[
68,
31
],
[
61,
34
],
[
38,
37
],
[
74,
42
],
[
74,
48
],
[
... | [
"w1 = str(input())\nw2 = []\nfor i in range(len(w1)):\n w2.append(w1[i])\nfrom collections import Counter\nw = Counter(w2).most_common()\nx = 'Yes'\nfor h in range(len(w)):\n if w[h][1]%2 != 0:\n x = 'No'\n break\nprint(x)",
"w1 = str(input())",
"w1",
"str(input())",
"str",
"input()",
... | w1 = str(input())
w2 = []
for i in range(len(w1)):
w2.append(w1[i])
from collections import Counter
w = Counter(w2).most_common()
x = 'Yes'
for h in range(len(w)):
if w[h][1]%2 != 0:
x = 'No'
break
print(x) |
[
7,
0,
13,
4,
13,
0,
13,
4,
13,
13,
0,
13,
39,
28,
13,
13,
4,
18,
13,
13,
4,
18,
13,
13,
13,
28,
13,
13,
14,
2,
2,
13,
17,
17,
9,
4,
13,
17,
4,
13,
4,
13,
17,
10,
39,
13,
10,
4,
13,
10,
4,
13
] | [
[
47,
2
],
[
50,
6
],
[
48,
9
],
[
44,
11
],
[
15,
14
],
[
51,
14
],
[
45,
18
],
[
48,
22
],
[
14,
24
],
[
27,
26
],
[
45,
26
],
[
26,
31
],
[
44,
45
],
[
4... | [
"w = input()\nx = set(w)\ny = []\nfor i in x:\n y.append(w.count(i))\nfor j in y:\n if j%2 == 0:\n continue\n else:\n print(\"No\")\n exit()\nprint(\"Yes\")",
"w = input()",
"w",
"input()",
"input",
"x = set(w)",
"x",
"set(w)",
"set",
"w",
"y = []",
"y",
"[]",
... | w = input()
x = set(w)
y = []
for i in x:
y.append(w.count(i))
for j in y:
if j%2 == 0:
continue
else:
print("No")
exit()
print("Yes")
|
[
7,
0,
13,
4,
13,
0,
13,
4,
13,
13,
28,
13,
13,
14,
40,
2,
4,
18,
13,
13,
13,
17,
17,
4,
13,
17,
3,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
31,
2
],
[
34,
6
],
[
32,
9
],
[
12,
11
],
[
35,
11
],
[
32,
18
],
[
11,
20
],
[
31,
32
],
[
34,
35
]
] | [
"w=input()\nx=set(w)\nfor i in x:\n if w.count(i)%2!=0:\n print('No')\n break\nelse:\n print('Yes')",
"w=input()",
"w",
"input()",
"input",
"x=set(w)",
"x",
"set(w)",
"set",
"w",
"for i in x:\n if w.count(i)%2!=0:\n print('No')\n break\nelse:\n print('Yes'... | w=input()
x=set(w)
for i in x:
if w.count(i)%2!=0:
print('No')
break
else:
print('Yes') |
[
7,
0,
13,
4,
13,
0,
13,
17,
0,
13,
17,
28,
13,
4,
13,
17,
17,
0,
13,
4,
18,
13,
13,
4,
13,
13,
14,
2,
2,
13,
17,
17,
0,
13,
17,
14,
13,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10,
17,
13,
10,
17,
13,
10,
17,
13,
1... | [
[
56,
2
],
[
53,
6
],
[
47,
9
],
[
13,
12
],
[
44,
18
],
[
57,
21
],
[
12,
25
],
[
45,
29
],
[
54,
29
],
[
50,
33
],
[
44,
45
],
[
47,
48
],
[
50,
51
],
[
5... | [
"s = input()\ncheck = 0\nflag = True\nfor i in range(97,123):\n check =s.count(chr(i))\n if check % 2 == 1 :\n flag = False\nif flag:\n print(\"Yes\")\nelse:\n print(\"No\")",
"s = input()",
"s",
"input()",
"input",
"check = 0",
"check",
"0",
"flag = True",
"flag",
"True",
"for i in ran... | s = input()
check = 0
flag = True
for i in range(97,123):
check =s.count(chr(i))
if check % 2 == 1 :
flag = False
if flag:
print("Yes")
else:
print("No") |
[
7,
15,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
13,
0,
13,
17,
28,
13,
4,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
17,
0,
13,
17,
3,
14,
13,
4,
13,
17,
4,
13,
17,
10,
17,
13,
10,
4,
13,
10,
17,
13,
10,
4,
13
] | [
[
46,
3
],
[
52,
9
],
[
47,
12
],
[
49,
14
],
[
18,
17
],
[
53,
22
],
[
17,
27
],
[
43,
31
],
[
43,
44
],
[
46,
47
],
[
49,
50
],
[
52,
53
]
] | [
"from collections import Counter\nw = list(input())\nc = Counter(w)\nf = True\nfor i in list(c.values()):\n if i % 2 == 1:\n f = False\n break\n\nif f:\n print(\"Yes\")\nelse:\n print(\"No\")",
"from collections import Counter",
"w = list(input())",
"w",
"list(input())",
"list",
"... | from collections import Counter
w = list(input())
c = Counter(w)
f = True
for i in list(c.values()):
if i % 2 == 1:
f = False
break
if f:
print("Yes")
else:
print("No")
|
[
7,
12,
13,
0,
13,
4,
13,
0,
13,
2,
39,
17,
17,
28,
13,
13,
0,
18,
13,
2,
4,
13,
13,
4,
13,
17,
17,
28,
13,
13,
14,
40,
2,
13,
17,
17,
4,
13,
17,
3,
4,
13,
17,
14,
2,
13,
17,
4,
13,
10,
12,
13
] | [
[
5,
4
],
[
9,
8
],
[
15,
14
],
[
4,
14
],
[
26,
17
],
[
8,
18
],
[
14,
22
],
[
29,
28
],
[
8,
28
],
[
28,
33
],
[
51,
48
]
] | [
"def main():\n w = input()\n lst = [0] * 26\n\n for c in w:\n lst[ord(c) - ord(\"a\")] += 1\n\n for num in lst:\n if num % 2 != 0:\n print(\"No\")\n break\n else:\n print(\"Yes\")\n\n\nif __name__ == \"__main__\":\n main()",
"def main():\n w = input(... | def main():
w = input()
lst = [0] * 26
for c in w:
lst[ord(c) - ord("a")] += 1
for num in lst:
if num % 2 != 0:
print("No")
break
else:
print("Yes")
if __name__ == "__main__":
main()
|
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
2,
39,
17,
17,
28,
13,
13,
0,
18,
13,
2,
4,
13,
13,
17,
17,
14,
4,
13,
2,
2,
13,
17,
17,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10,
2,
13
] | [
[
40,
2
],
[
43,
8
],
[
15,
14
],
[
41,
14
],
[
24,
17
],
[
44,
18
],
[
14,
22
],
[
40,
41
],
[
43,
44
]
] | [
"#B - 美しい文字列\nw = list(input())\n\ncount = [0]*26\nfor i in w:\n count[ord(i)-97] += 1\nif all(i%2 == 0 for i in count):\n print('Yes')\nelse:\n print('No')",
"w = list(input())",
"w",
"list(input())",
"list",
"input()",
"input",
"count = [0]*26",
"count",
"[0]*26",
"[0]",
"0",
"26"... | #B - 美しい文字列
w = list(input())
count = [0]*26
for i in w:
count[ord(i)-97] += 1
if all(i%2 == 0 for i in count):
print('Yes')
else:
print('No') |
[
7,
15,
13,
0,
13,
4,
13,
4,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
13,
4,
18,
13,
13,
28,
13,
13,
14,
2,
2,
13,
17,
17,
4,
13,
17,
4,
13,
4,
13,
17,
10,
4,
13,
10,
4,
13,
10,
4,
13
] | [
[
48,
4
],
[
42,
10
],
[
49,
15
],
[
45,
17
],
[
43,
22
],
[
26,
25
],
[
46,
25
],
[
25,
30
],
[
42,
43
],
[
45,
46
],
[
48,
49
]
] | [
"import collections\nw = list(input())\nc = collections.Counter(w)\ntmp = list(c.values())\nfor i in tmp:\n if i % 2 == 1:\n print(\"No\")\n exit()\nprint(\"Yes\")",
"import collections",
"collections",
"w = list(input())",
"w",
"list(input())",
"list",
"input()",
"input",
"c = co... | import collections
w = list(input())
c = collections.Counter(w)
tmp = list(c.values())
for i in tmp:
if i % 2 == 1:
print("No")
exit()
print("Yes") |
[
7,
0,
13,
4,
13,
0,
13,
4,
13,
13,
0,
13,
4,
13,
13,
28,
13,
13,
14,
2,
2,
4,
18,
13,
13,
13,
17,
17,
0,
13,
17,
3,
0,
13,
17,
4,
13,
13,
10,
17,
13,
10,
4,
13,
10,
17,
13,
10,
4,
13,
10,
4,
13
] | [
[
42,
2
],
[
51,
6
],
[
43,
9
],
[
48,
11
],
[
43,
14
],
[
17,
16
],
[
49,
16
],
[
52,
23
],
[
16,
25
],
[
39,
29
],
[
45,
33
],
[
46,
37
],
[
40,
37
],
[
3... | [
"w = input()\nwl = list(w)\nws = set(w)\nfor i in ws:\n if wl.count(i) % 2 == 1:\n r = 'No'\n break\n else:\n r = 'Yes'\n \nprint(r)",
"w = input()",
"w",
"input()",
"input",
"wl = list(w)",
"wl",
"list(w)",
"list",
"w",
"ws = set(w)",
"ws",
"set(w)",
"set",
"w",
"for i i... | w = input()
wl = list(w)
ws = set(w)
for i in ws:
if wl.count(i) % 2 == 1:
r = 'No'
break
else:
r = 'Yes'
print(r) |
[
7,
0,
13,
4,
13,
0,
13,
2,
39,
17,
17,
28,
13,
4,
13,
4,
13,
13,
0,
18,
13,
2,
4,
13,
18,
13,
13,
17,
17,
28,
13,
4,
13,
17,
14,
2,
2,
18,
13,
13,
17,
17,
4,
13,
17,
3,
4,
13,
17,
10,
4,
13,
10,
2,
13
] | [
[
50,
2
],
[
53,
6
],
[
13,
12
],
[
51,
17
],
[
28,
19
],
[
54,
20
],
[
51,
25
],
[
12,
26
],
[
31,
30
],
[
54,
38
],
[
30,
39
],
[
50,
51
],
[
53,
54
]
] | [
"w=input()\nl=[0]*26\nfor i in range(len(w)):\n l[ord(w[i])-97]+=1\nfor j in range(26):\n if l[j]%2==1:\n print(\"No\")\n break\nelse:\n print(\"Yes\")",
"w=input()",
"w",
"input()",
"input",
"l=[0]*26",
"l",
"[0]*26",
"[0]",
"0",
"26",
"for i in range(len(w)):\n l[ord(w[i])-97]+=1",... | w=input()
l=[0]*26
for i in range(len(w)):
l[ord(w[i])-97]+=1
for j in range(26):
if l[j]%2==1:
print("No")
break
else:
print("Yes") |
[
7,
0,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
0,
13,
17,
28,
13,
13,
0,
13,
4,
18,
13,
13,
4,
13,
13,
14,
2,
2,
13,
17,
17,
0,
13,
17,
4,
13,
13,
10,
17,
13,
10,
17,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13
] | [
[
49,
2
],
[
46,
6
],
[
50,
11
],
[
43,
13
],
[
17,
16
],
[
47,
16
],
[
52,
19
],
[
50,
22
],
[
16,
26
],
[
53,
30
],
[
40,
34
],
[
41,
38
],
[
44,
38
],
[
... | [
"S = input()\ns = list(set(S))\n\nans = \"Yes\"\n\nfor i in s:\n num = S.count(str(i))\n if num % 2 == 1:\n ans = \"No\"\n\nprint(ans)",
"S = input()",
"S",
"input()",
"input",
"s = list(set(S))",
"s",
"list(set(S))",
"list",
"set(S)",
"set",
"S",
"ans = \"Yes\"",
"ans",
"\"... | S = input()
s = list(set(S))
ans = "Yes"
for i in s:
num = S.count(str(i))
if num % 2 == 1:
ans = "No"
print(ans) |
[
7,
15,
13,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
41,
28,
13,
13,
4,
2,
13,
13,
0,
13,
13,
4,
18,
13,
13,
13,
0,
13,
2,
4,
13,
13,
13,
41,
28,
13,
4,
13,
2,
2,
... | [
[
219,
4
],
[
219,
13
],
[
204,
15
],
[
29,
28
],
[
205,
28
],
[
28,
32
],
[
214,
33
],
[
207,
35
],
[
205,
39
],
[
214,
41
],
[
210,
43
],
[
205,
47
],
[
220,
48
... | [
"import sys\n\nn,a=map(int, input().split())\ncards=list(map(int, input().split()))\n\nintegers=[x-a for x in cards]\ncards.append(a)\nf=max(cards)*n\n\n\ndp=[[0 for i in range(n+1)] for j in range(2*f+1) ]\n\nfor y in range(n+1):\n for x in range(2*f+1):\n if y==0 and x==f:\n dp[x][y]=1\n ... | import sys
n,a=map(int, input().split())
cards=list(map(int, input().split()))
integers=[x-a for x in cards]
cards.append(a)
f=max(cards)*n
dp=[[0 for i in range(n+1)] for j in range(2*f+1) ]
for y in range(n+1):
for x in range(2*f+1):
if y==0 and x==f:
dp[x][y]=1
elif y>0 and (x-in... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
41,
28,
13,
13,
4,
2,
13,
13,
0,
13,
13,
41,
28,
13,
4,
13,
2,
13,
17,
4,
2,
2,
2,
39,
17,
17,
13,
17,
0,
13,
13,
0,
1... | [
[
154,
2
],
[
154,
11
],
[
157,
13
],
[
27,
26
],
[
158,
26
],
[
26,
30
],
[
155,
31
],
[
163,
33
],
[
38,
37
],
[
149,
41
],
[
149,
50
],
[
160,
53
],
[
63,
56
]... | [
"N,A=map(int,input().split())\nx=list(map(int,input().split()))\nx=[i-A for i in x]\ndp=[[0]*50*N*2 for i in range(N+1)]\ndp[0][50*N]=1\nfor i in range(1,N+1):\n for j in range(50*N*2):\n n=j-x[i-1]\n if n>=0 and n<50*N*2:\n dp[i][j]=dp[i-1][j]+dp[i-1][n]\n else:\n dp[i... | N,A=map(int,input().split())
x=list(map(int,input().split()))
x=[i-A for i in x]
dp=[[0]*50*N*2 for i in range(N+1)]
dp[0][50*N]=1
for i in range(1,N+1):
for j in range(50*N*2):
n=j-x[i-1]
if n>=0 and n<50*N*2:
dp[i][j]=dp[i-1][j]+dp[i-1][n]
else:
dp[i][j]=dp[i-1][j]
... |
[
7,
15,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
4,
13,
13,
0,
18,
18,
13,
17,
17,
17,
28,
13,
13,
0,
13,
4,
13,
13,
28,
13,
13,
4,
18,
13,
13,
28,
13,
13,
4,... | [
[
161,
3
],
[
161,
12
],
[
149,
14
],
[
155,
26
],
[
36,
31
],
[
156,
33
],
[
39,
38
],
[
150,
38
],
[
164,
41
],
[
156,
50
],
[
147,
50
],
[
165,
63
],
[
71,
66
... | [
"from collections import defaultdict\nN, A = map(int, input().split())\nX = list(map(int, input().split()))\n\ndp = defaultdict(dict)\ndp[0][0] = 1 # カード0枚で合計\n\nfor x in X:\n newDP = defaultdict(dict)\n for card, memo in dp.items():\n for k, v in memo.items():\n # カードXを追加しない\n i... | from collections import defaultdict
N, A = map(int, input().split())
X = list(map(int, input().split()))
dp = defaultdict(dict)
dp[0][0] = 1 # カード0枚で合計
for x in X:
newDP = defaultdict(dict)
for card, memo in dp.items():
for k, v in memo.items():
# カードXを追加しない
if k in newDP[card... |
[
7,
15,
13,
12,
13,
0,
13,
2,
2,
4,
13,
13,
4,
13,
13,
13,
17,
0,
13,
4,
18,
13,
13,
0,
13,
39,
2,
13,
17,
2,
13,
17,
13,
0,
13,
13,
0,
18,
18,
18,
13,
17,
17,
17,
17,
28,
13,
4,
13,
17,
2,
13,
17,
28,
13,
4... | [
[
7,
6
],
[
169,
11
],
[
171,
14
],
[
167,
15
],
[
19,
18
],
[
25,
24
],
[
167,
27
],
[
167,
30
],
[
35,
34
],
[
44,
37
],
[
18,
40
],
[
47,
46
],
[
167,
51
],
... | [
"import numpy as np\n\n\ndef main(n, a, x):\n SUM_MAX = max(a, max(x)) * n + 1\n dp = np.zeros(shape=(n + 1, n + 1, SUM_MAX), dtype=int)\n\n dp[0][0][0] = 1\n for j in range(1, n + 1):\n for k in range(j + 1):\n dp[j][k][0:x[j - 1]] = dp[j - 1][k][0:x[j - 1]]\n if k >= 1:\n ... | import numpy as np
def main(n, a, x):
SUM_MAX = max(a, max(x)) * n + 1
dp = np.zeros(shape=(n + 1, n + 1, SUM_MAX), dtype=int)
dp[0][0][0] = 1
for j in range(1, n + 1):
for k in range(j + 1):
dp[j][k][0:x[j - 1]] = dp[j - 1][k][0:x[j - 1]]
if k >= 1:
dp... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
41,
28,
13,
13,
4,
2,
13,
13,
0,
13,
13,
0,
13,
4,
13,
4,
13,
13,
13,
41,
28,
13,
4,
13,
2,
13,
17,
4,
13,
0,
13,
13,
... | [
[
210,
2
],
[
210,
11
],
[
198,
13
],
[
27,
26
],
[
199,
26
],
[
26,
30
],
[
208,
31
],
[
213,
33
],
[
201,
36
],
[
199,
41
],
[
208,
42
],
[
46,
45
],
[
211,
49
... | [
"N, A = map(int, input().split())\nX = list(map(int, input().split()))\nY = [x - A for x in X]\nLMT = max(max(X), A)\n\ndp = [[0 for _ in range(2 * N * LMT + 1)] for _ in range(N + 1)]\n \nfor j in range(N + 1) :\n for t in range(2 * N * LMT + 1):\n if j == 0 and t == N * LMT:\n dp[j][t] = 1\n ... | N, A = map(int, input().split())
X = list(map(int, input().split()))
Y = [x - A for x in X]
LMT = max(max(X), A)
dp = [[0 for _ in range(2 * N * LMT + 1)] for _ in range(N + 1)]
for j in range(N + 1) :
for t in range(2 * N * LMT + 1):
if j == 0 and t == N * LMT:
dp[j][t] = 1
elif j >=... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
41,
28,
13,
4,
13,
2,
13,
17,
4,
13,
0,
13,
13,
0,
18,
18,
18,
13,
17,
17,
17,
17,
28,
13,
4,
13,
17,
2,
13,
17,
28,
13,... | [
[
163,
2
],
[
163,
11
],
[
145,
13
],
[
27,
26
],
[
161,
30
],
[
151,
35
],
[
45,
38
],
[
152,
41
],
[
48,
47
],
[
161,
52
],
[
56,
55
],
[
61,
60
],
[
47,
63
],
... | [
"n, a = map(int, input().split())\nx = list(map(int, input().split()))\n\ndp = [[[0] * (n + 1) for _ in range(2501)] for _ in range(n + 1)]\n\ndp[0][0][0] = 1\nfor i in range(1, n+1):\n for s in range(2501):\n for k in range(i):\n # no use\n dp[i][s][k] += dp[i-1][s][k]\n\n ... | n, a = map(int, input().split())
x = list(map(int, input().split()))
dp = [[[0] * (n + 1) for _ in range(2501)] for _ in range(n + 1)]
dp[0][0][0] = 1
for i in range(1, n+1):
for s in range(2501):
for k in range(i):
# no use
dp[i][s][k] += dp[i-1][s][k]
# use
... |
[
7,
12,
13,
29,
4,
13,
4,
13,
12,
13,
29,
4,
13,
13,
4,
18,
4,
13,
13,
12,
13,
29,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
12,
13,
41,
28,
13,
4,
13,
13,
4,
4,
13,
4,
13,
29,
13,
23,
13,
12,
13,
29,
4,
18,
4,
18... | [
[
37,
36
],
[
48,
39
],
[
48,
48
],
[
71,
68
],
[
73,
69
],
[
71,
71
],
[
73,
73
],
[
79,
78
],
[
96,
81
],
[
92,
87
],
[
94,
88
],
[
92,
92
],
[
94,
94
],
[
... | [
"def getN():\n return int(input())\ndef getNM():\n return map(int, input().split())\ndef getList():\n return list(map(int, input().split()))\ndef getArray(intn):\n return [int(input()) for i in range(intn)]\ndef input():\n return sys.stdin.readline().rstrip()\ndef rand_N(ran1, ran2):\n return rand... | def getN():
return int(input())
def getNM():
return map(int, input().split())
def getList():
return list(map(int, input().split()))
def getArray(intn):
return [int(input()) for i in range(intn)]
def input():
return sys.stdin.readline().rstrip()
def rand_N(ran1, ran2):
return random.randint(ran1,... |
[
7,
15,
13,
4,
18,
13,
13,
2,
17,
17,
0,
13,
2,
17,
17,
0,
13,
2,
2,
17,
17,
17,
0,
13,
12,
4,
18,
4,
18,
18,
13,
13,
13,
13,
0,
13,
12,
4,
13,
8,
13,
39,
4,
13,
17,
4,
13,
17,
23,
0,
13,
12,
4,
13,
8,
13,
... | [
[
233,
11
],
[
227,
16
],
[
230,
23
],
[
224,
35
],
[
239,
50
],
[
236,
65
],
[
77,
76
],
[
231,
83
],
[
77,
85
],
[
88,
87
],
[
231,
96
],
[
101,
100
],
[
76,
104
... | [
"# -*- coding: utf-8 -*-\nimport sys\nsys.setrecursionlimit(10**9)\nINF=10**18\nMOD=10**9+7\ninput=lambda: sys.stdin.readline().rstrip()\nYesNo=lambda b: bool([print('Yes')] if b else print('No'))\nYESNO=lambda b: bool([print('YES')] if b else print('NO'))\nint1=lambda x:int(x)-1\n\ndef main():\n N,A=map(int,inp... | # -*- coding: utf-8 -*-
import sys
sys.setrecursionlimit(10**9)
INF=10**18
MOD=10**9+7
input=lambda: sys.stdin.readline().rstrip()
YesNo=lambda b: bool([print('Yes')] if b else print('No'))
YESNO=lambda b: bool([print('YES')] if b else print('NO'))
int1=lambda x:int(x)-1
def main():
N,A=map(int,input().split())
... |
[
7,
15,
13,
12,
13,
12,
13,
12,
13,
0,
13,
2,
2,
17,
17,
17,
0,
13,
4,
13,
13,
0,
13,
4,
13,
41,
28,
13,
4,
13,
2,
13,
17,
4,
13,
0,
13,
13,
28,
13,
4,
13,
13,
0,
18,
18,
18,
13,
13,
17,
17,
17,
0,
18,
18,
1... | [
[
199,
10
],
[
187,
17
],
[
173,
19
],
[
187,
20
],
[
190,
22
],
[
182,
24
],
[
28,
27
],
[
188,
31
],
[
196,
36
],
[
40,
39
],
[
188,
42
],
[
51,
44
],
[
197,
47
... | [
"import sys\n\ndef I(): return int(sys.stdin.readline())\ndef MI(): return map(int, sys.stdin.readline().split())\ndef LMI(): return list(map(int, sys.stdin.readline().split()))\nMOD = 10 ** 9 + 7\n\nN, A = MI()\nX = LMI()\n\n# dp[i][j][s] := i番目までのカードからj枚を選んで合計がsになる組み合わせの数\ndp = [[[0] * 2502 for _ in range(N + 2)]... | import sys
def I(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LMI(): return list(map(int, sys.stdin.readline().split()))
MOD = 10 ** 9 + 7
N, A = MI()
X = LMI()
# dp[i][j][s] := i番目までのカードからj枚を選んで合計がsになる組み合わせの数
dp = [[[0] * 2502 for _ in range(N + 2)] for _ in range(... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
41,
28,
13,
4,
13,
2,
13,
17,
4,
13,
0,
13,
13,
0,
18,
18,
18,
13,
17,
17,
17,
17,
28,
13,
4,
13,
13,
28,
13,
4,
13,
13,... | [
[
143,
2
],
[
143,
11
],
[
146,
13
],
[
27,
26
],
[
138,
30
],
[
152,
35
],
[
45,
38
],
[
153,
41
],
[
48,
47
],
[
138,
50
],
[
53,
52
],
[
138,
55
],
[
58,
57
],... | [
"n, a = map(int, input().split())\nx = list(map(int, input().split()))\n\ndp = [[[0] * (50 * (n + 10)) for _ in range(n + 10)] for _ in range(n + 10)]\ndp[0][0][0] = 1\n\nfor i in range(n):\n for use in range(n):\n for total in range(n * a):\n if dp[i][use][total]:\n dp[i + 1][us... | n, a = map(int, input().split())
x = list(map(int, input().split()))
dp = [[[0] * (50 * (n + 10)) for _ in range(n + 10)] for _ in range(n + 10)]
dp[0][0][0] = 1
for i in range(n):
for use in range(n):
for total in range(n * a):
if dp[i][use][total]:
dp[i + 1][use][total] += dp... |
[
7,
15,
13,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
41,
28,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
2,
13,
13,
0,
13,
4,
13,
13,
0,
13,
4,
18,
13,
13,
28,
13,
13,
28,
13,
13,
4,
13,
4,
18,
13,
13,
0,
18,
13,
2,
... | [
[
79,
4
],
[
79,
13
],
[
17,
16
],
[
16,
27
],
[
80,
28
],
[
82,
30
],
[
85,
35
],
[
42,
41
],
[
83,
41
],
[
86,
50
],
[
58,
53
],
[
86,
54
],
[
41,
57
],
[
... | [
"import collections\n\nn, a = map(int, input().split())\nls = sorted([x - a for x in map(int, input().split())])\ncounter = collections.Counter()\nfor x in ls:\n for k, v in list(counter.items()):\n counter[k + x] = counter[k + x] + v\n counter[x] += 1\nprint(counter[0])",
"import collections",
"co... | import collections
n, a = map(int, input().split())
ls = sorted([x - a for x in map(int, input().split())])
counter = collections.Counter()
for x in ls:
for k, v in list(counter.items()):
counter[k + x] = counter[k + x] + v
counter[x] += 1
print(counter[0]) |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
2,
13,
13,
41,
28,
13,
4,
13,
2,
13,
17,
4,
13,
0,
13,
13,
0,
18,
18,
13,
17,
17,
17,
28,
13,
13,
41,
28,
13,
4,
... | [
[
162,
2
],
[
162,
11
],
[
165,
13
],
[
150,
25
],
[
148,
27
],
[
163,
28
],
[
32,
31
],
[
151,
35
],
[
144,
40
],
[
48,
43
],
[
145,
45
],
[
51,
50
],
[
166,
50
... | [
"n, a = map(int, input().split())\nx = list(map(int, input().split()))\n\nm = a * n\n\n# dp[i][j]: j 個使って合計がi\ndp = [[0 for j in range(n+1)] for i in range(m+1)]\ndp[0][0] = 1\n\n\nfor xk in x:\n # xkまで見たときを計算\n dpk = [dp[i][:] for i in range(m+1)]\n for i in range(m+1):\n if i - xk >= 0:\n ... | n, a = map(int, input().split())
x = list(map(int, input().split()))
m = a * n
# dp[i][j]: j 個使って合計がi
dp = [[0 for j in range(n+1)] for i in range(m+1)]
dp[0][0] = 1
for xk in x:
# xkまで見たときを計算
dpk = [dp[i][:] for i in range(m+1)]
for i in range(m+1):
if i - xk >= 0:
for j in range(1,... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
28,
13,
4,
13,
13,
0,
18,
13,
13,
13,
0,
13,
17,
41,
28,
13,
4,
13,
17,
4,
13,
0,
13,
13,
28,
13,
4,
13,
2,
13,
17,
28,
... | [
[
173,
2
],
[
173,
11
],
[
176,
13
],
[
26,
25
],
[
174,
28
],
[
33,
30
],
[
177,
31
],
[
25,
32
],
[
168,
33
],
[
164,
35
],
[
40,
39
],
[
170,
46
],
[
50,
49
],... | [
"n,a=map(int,input().split())\nlists=list(map(int,input().split()))\n \nfor i in range(n):\n lists[i]-=a\nanswer=0\ndp=[[0 for i in range(5001)] for _ in range(51)]\n#dp[i][j]で0からi枚目まで好きなように選択してそのそうわがj-2500となるような撮り方の総数\n#最終的に求めるのはdp[i][0]である\n \nfor i in range(n+1):\n for j in range(4951):\n if i>=1 an... | n,a=map(int,input().split())
lists=list(map(int,input().split()))
for i in range(n):
lists[i]-=a
answer=0
dp=[[0 for i in range(5001)] for _ in range(51)]
#dp[i][j]で0からi枚目まで好きなように選択してそのそうわがj-2500となるような撮り方の総数
#最終的に求めるのはdp[i][0]である
for i in range(n+1):
for j in range(4951):
if i>=1 and j>=lists[i-1]:
... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
17,
13,
15,
13,
41,
28,
13,
4,
18,
4,
13,
13,
17,
4,
2,
4,
13,
13,
13,
0,
13,
13,
41,
28,
13,
13,
2,
13,
17,
4,
13,
0,
13,
4,
13,
13,
41,
28,
13,
13,
2,
13,
17,
4,
13,... | [
[
160,
2
],
[
160,
12
],
[
18,
17
],
[
17,
28
],
[
161,
29
],
[
148,
31
],
[
36,
35
],
[
149,
35
],
[
35,
38
],
[
35,
41
],
[
151,
43
],
[
50,
49
],
[
149,
49
],
... | [
"# -*- coding: utf-8 -*-\nN, A = map(int, input().split(' '))\nimport collections\n\nX = [int(a) - A for a in input().split(' ')]\nsum_positives = sum([x for x in X if x > 0])\nsum_negatives = sum([x for x in X if x < 0])\n\ndp = [dict([(i, 0) for i in range(sum_negatives, sum_positives+1)])\n for _ in r... | # -*- coding: utf-8 -*-
N, A = map(int, input().split(' '))
import collections
X = [int(a) - A for a in input().split(' ')]
sum_positives = sum([x for x in X if x > 0])
sum_negatives = sum([x for x in X if x < 0])
dp = [dict([(i, 0) for i in range(sum_negatives, sum_positives+1)])
for _ in range(N+1)]
dp[... |
[
7,
12,
13,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
4,
13,
4,
13,
12,
2,
4,
13,
13,
13,
23,
4,
18,
4,
13,
13,
41,
28,
13,
4,
13,
2,
13,
17,
4,
4,
13,
0,
13,
13,
0,
18,
18,
13,
17,
17,
17,
28,
13,
13,
... | [
[
5,
4
],
[
5,
13
],
[
16,
15
],
[
13,
25
],
[
35,
34
],
[
4,
38
],
[
45,
44
],
[
52,
47
],
[
44,
49
],
[
15,
58
],
[
65,
60
],
[
44,
61
],
[
44,
68
],
[
44... | [
"def abc044_c():\n N, A = map(int, input().split())\n X = list(map(lambda x: int(x) - A, input().split())) # 平均ターゲットを引いた状態\n dp = [dict() for _ in range(N+1)] # 負の値を取り得るため、配列でなく辞書で持つ\n dp[0][0] = 1 # 0枚時点で何も選ばない、を初期値とする\n for i, x in enumerate(X):\n dp[i+1] = dp[i].copy() # 前の状態を引き継ぐ\n ... | def abc044_c():
N, A = map(int, input().split())
X = list(map(lambda x: int(x) - A, input().split())) # 平均ターゲットを引いた状態
dp = [dict() for _ in range(N+1)] # 負の値を取り得るため、配列でなく辞書で持つ
dp[0][0] = 1 # 0枚時点で何も選ばない、を初期値とする
for i, x in enumerate(X):
dp[i+1] = dp[i].copy() # 前の状態を引き継ぐ
for val,... |
[
7,
15,
13,
0,
13,
18,
18,
13,
13,
13,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
13,
41,
28,
13,
4,
18,
4,
13,
13,
4,
2,
4,
13,
13,
13,
0,
13,
13,
41,
28,
13,
4,
13,
2,
13,
17,
4,
2,
39,
17,
17,... | [
[
167,
4
],
[
13,
12
],
[
168,
16
],
[
12,
21
],
[
161,
23
],
[
161,
25
],
[
29,
28
],
[
168,
32
],
[
28,
38
],
[
162,
39
],
[
164,
41
],
[
46,
45
],
[
159,
49
],... | [
"import sys\ninput = sys.stdin.readline\n\nN, A = [int(x) for x in input().split()]\nx = [int(x) - A for x in input().split()]\n\ndp = [[0] * 5001 for _ in range(N + 1)]\ndp[0][0 + 2500] = 1\n\nfor i in range(1, N + 1):\n for j in range(-2500, 2501):\n if 5000 >= j + 2500 - x[i - 1] >= 0:\n dp[... | import sys
input = sys.stdin.readline
N, A = [int(x) for x in input().split()]
x = [int(x) - A for x in input().split()]
dp = [[0] * 5001 for _ in range(N + 1)]
dp[0][0 + 2500] = 1
for i in range(1, N + 1):
for j in range(-2500, 2501):
if 5000 >= j + 2500 - x[i - 1] >= 0:
dp[i][j + 2500] = dp... |
[
7,
15,
13,
0,
13,
18,
18,
18,
13,
13,
13,
13,
12,
13,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
4,
13,
13,
41,
28,
13,
4,
13,
2,
13,
17,
4,
13,
0,
13,
13,
0,
... | [
[
173,
4
],
[
16,
15
],
[
174,
22
],
[
16,
24
],
[
27,
26
],
[
174,
35
],
[
39,
38
],
[
26,
41
],
[
45,
44
],
[
15,
48
],
[
54,
53
],
[
63,
56
],
[
53,
59
],
[
... | [
"import sys\ninput = sys.stdin.buffer.readline\n\ndef main():\n N,A = map(int,input().split())\n x = list(map(int,input().split()))\n S = sum(x)\n \n dp = [[[0 for _ in range(S+1)] for _ in range(N+1)] for _ in range(N+1)]\n dp[0][0][0] = 1\n for i in range(N):\n for j in range(N):\n ... | import sys
input = sys.stdin.buffer.readline
def main():
N,A = map(int,input().split())
x = list(map(int,input().split()))
S = sum(x)
dp = [[[0 for _ in range(S+1)] for _ in range(N+1)] for _ in range(N+1)]
dp[0][0][0] = 1
for i in range(N):
for j in range(N):
for k in ... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
41,
28,
13,
4,
13,
2,
13,
17,
4,
13,
0,
13,
13,
28,
13,
4,
13,
2,
13,
17,
0,
18,
18,
18,
13,
13,
17,
17,
17,
28,
13,
4,
... | [
[
206,
2
],
[
206,
11
],
[
191,
13
],
[
27,
26
],
[
204,
30
],
[
197,
35
],
[
39,
38
],
[
204,
42
],
[
52,
45
],
[
198,
48
],
[
38,
49
],
[
55,
54
],
[
204,
57
],... | [
"n, a = map(int, input().split())\nX = list(map(int, input().split()))\ndp = [ [[0]*(n*a+1) for j in range(i+1)] for i in range(n+1) ]\nfor i in range(n+1):\n dp[i][0][0] = 1\nfor i in range(n):\n for j in range(i+1):\n for k in range(n*a+1):\n if X[i] > k:\n if i > j:\n dp[i+1][j+1][k] = ... | n, a = map(int, input().split())
X = list(map(int, input().split()))
dp = [ [[0]*(n*a+1) for j in range(i+1)] for i in range(n+1) ]
for i in range(n+1):
dp[i][0][0] = 1
for i in range(n):
for j in range(i+1):
for k in range(n*a+1):
if X[i] > k:
if i > j:
dp[i+1][j+1][k] = dp[i][j+1][k]
... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
2,
39,
17,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
41,
28,
13,
4,
13,
17,
4,
13,
0,
13,
13,
28,
13,
4,
13,
17,
0,
18,
18,
18,
13,
13,
17,
17,
17,
28,
13,
4,
13,... | [
[
170,
2
],
[
170,
11
],
[
173,
13
],
[
30,
29
],
[
176,
36
],
[
40,
39
],
[
51,
44
],
[
177,
47
],
[
39,
48
],
[
54,
53
],
[
162,
58
],
[
62,
61
],
[
53,
66
],
... | [
"N,A = map(int,input().split())\nls1 = [0] + list(map(int,input().split()))\n\ndp = [[[0 for k in range(2600)] for j in range(51) ] for i in range(51)]\nfor i in range(51):\n dp[i][0][0] = 1\nfor j in range(1,N+1):\n for k in range(1,j+1):\n for s in range(2600):\n if s < ls1[j]:\n ... | N,A = map(int,input().split())
ls1 = [0] + list(map(int,input().split()))
dp = [[[0 for k in range(2600)] for j in range(51) ] for i in range(51)]
for i in range(51):
dp[i][0][0] = 1
for j in range(1,N+1):
for k in range(1,j+1):
for s in range(2600):
if s < ls1[j]:
dp[j][k][... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.