s_id string | p_id string | u_id string | date string | language string | original_language string | filename_ext string | status string | cpu_time string | memory string | code_size string | code string | error string | stdout string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s500038227 | p02417 | u677096240 | 1535679820 | Python | Python3 | py | Runtime Error | 0 | 0 | 246 | from string import ascii_lowercase
table = dict(zip(ascii_lowercase, [0 for _ in range(len(ascii_lowercase))]))
for s in input().split():
for c in s:
table[c.lower()] += 1
for k, v in table.items():
print("{} : {}".format(k, v))
| Traceback (most recent call last):
File "/tmp/tmpy0jsdwgo/tmpmlon1zai.py", line 3, in <module>
for s in input().split():
^^^^^^^
EOFError: EOF when reading a line
| |
s711694673 | p02417 | u720674978 | 1540373788 | Python | Python3 | py | Runtime Error | 0 | 0 | 236 | import re
import collections
answer = collections.OrderedDict()
answer = {chr(i): 0 for i in range(65, 91)}
n = re.sub(r"\s|,|\.", "", input().lower())
for i in n:
answer[i] += 1
for k, v in answer.items():
print(k+":"+str(v))
| Traceback (most recent call last):
File "/tmp/tmpa7a891ft/tmpuhf47bzs.py", line 6, in <module>
n = re.sub(r"\s|,|\.", "", input().lower())
^^^^^^^
EOFError: EOF when reading a line
| |
s242205939 | p02417 | u720674978 | 1540376621 | Python | Python3 | py | Runtime Error | 0 | 0 | 301 | import re
import collections
while (True):
n += input().lower()
if n[-1] == ".":
break
answer = collections.OrderedDict()
answer = {chr(i): 0 for i in range(97, 123)}
n = re.sub(r"\s|,|\.", "", n)
for i in n:
answer[i] += 1
for k, v in answer.items():
print(k+" : "+str(v))
| Traceback (most recent call last):
File "/tmp/tmpxbljt3ge/tmpehkmkd2j.py", line 5, in <module>
n += input().lower()
^
NameError: name 'n' is not defined
| |
s372038836 | p02417 | u720674978 | 1540376648 | Python | Python3 | py | Runtime Error | 40 | 6508 | 308 | import re
import collections
n = ""
while (True):
n += input().lower()
if n[-1] == ".":
break
answer = collections.OrderedDict()
answer = {chr(i): 0 for i in range(97, 123)}
n = re.sub(r"\s|,|\.", "", n)
for i in n:
answer[i] += 1
for k, v in answer.items():
print(k+" : "+str(v))
| Traceback (most recent call last):
File "/tmp/tmp64hjk1om/tmpchyvj8ot.py", line 6, in <module>
n += input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s016030204 | p02417 | u720674978 | 1540376863 | Python | Python3 | py | Runtime Error | 40 | 6508 | 309 | import re
import collections
n = ""
while (True):
n += input().lower()
if n[-1] == ".":
break
answer = collections.OrderedDict()
answer = {chr(i): 0 for i in range(97, 123)}
n = re.sub(r"\s|,|\.", "", n)
for i in n:
answer[i] += 1
for k, v in answer.items():
print(k+" : "+str(v))
| Traceback (most recent call last):
File "/tmp/tmp6n1depg5/tmpbon3891v.py", line 6, in <module>
n += input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s464395426 | p02417 | u720674978 | 1540376937 | Python | Python3 | py | Runtime Error | 40 | 6508 | 322 | import re
import collections
n = input().lower()
while (True):
if n[-1] == ".":
break
n += input().lower()
answer = collections.OrderedDict()
answer = {chr(i): 0 for i in range(97, 123)}
n = re.sub(r"\s|,|\.", "", n)
for i in n:
answer[i] += 1
for k, v in answer.items():
print(k+" : "+str(v))... | Traceback (most recent call last):
File "/tmp/tmpllk74u0n/tmpg5kpadsa.py", line 4, in <module>
n = input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s580279639 | p02417 | u720674978 | 1540376952 | Python | Python3 | py | Runtime Error | 30 | 6508 | 332 | import re
import collections
n = input().lower()
while (True):
if n[-1] == ".":
break
a = input().lower()
n += a
answer = collections.OrderedDict()
answer = {chr(i): 0 for i in range(97, 123)}
n = re.sub(r"\s|,|\.", "", n)
for i in n:
answer[i] += 1
for k, v in answer.items():
print(k+" :... | Traceback (most recent call last):
File "/tmp/tmphpwmep5y/tmpdb36t4wa.py", line 4, in <module>
n = input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s176311128 | p02417 | u720674978 | 1540377029 | Python | Python3 | py | Runtime Error | 40 | 6508 | 307 | import re
import collections
n=""
while (True):
n += input()
if n[-1] == ".":
break
answer = collections.OrderedDict()
answer = {chr(i): 0 for i in range(97, 123)}
n = re.sub(r"\s|,|\.", "", n.lower())
for i in n:
answer[i] += 1
for k, v in answer.items():
print(k+" : "+str(v))
| Traceback (most recent call last):
File "/tmp/tmpoco3eh1y/tmprm4yrw3v.py", line 6, in <module>
n += input()
^^^^^^^
EOFError: EOF when reading a line
| |
s400217216 | p02417 | u198574985 | 1545307779 | Python | Python3 | py | Runtime Error | 0 | 0 | 246 | alp_count = [0]*26
while True:
string = str(input()).lower()
alp = [chr(ord("a")+i) for i in range(26)]
c = 0
for j in range(26):
c = string.count(alp[j])
alp_count[j] += c
print("%s : %d"%(alp[j],c))
| Traceback (most recent call last):
File "/tmp/tmpadeqao22/tmp33n8dity.py", line 5, in <module>
string = str(input()).lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s086920675 | p02417 | u088337682 | 1545407052 | Python | Python3 | py | Runtime Error | 0 | 0 | 198 | ans = [0 for i in range(23)]
S = list(map(ord,input().upper()))
S = [e for e in S if 64<e<91]
print(S)
for i in S:
ans[i-65]+=1
for i in range(26):
print("{} : {}".format(chr(97+i),ans[i]))
| Traceback (most recent call last):
File "/tmp/tmpzthl3zwr/tmpwhhzsrwx.py", line 2, in <module>
S = list(map(ord,input().upper()))
^^^^^^^
EOFError: EOF when reading a line
| |
s517497111 | p02417 | u088337682 | 1545407839 | Python | Python3 | py | Runtime Error | 0 | 0 | 248 | ans = [0 for i in range(26)]
while True:
a = input().upper()
if a == "":break
S = list(map(ord,a))
S = [e for e in S if 64<e<91]
for i in S:
ans[i-65]+=1
for i in range(26):
print("{} : {}".format(chr(97+i),ans[i]))
| Traceback (most recent call last):
File "/tmp/tmplgbiueso/tmpo1o0lgjj.py", line 3, in <module>
a = input().upper()
^^^^^^^
EOFError: EOF when reading a line
| |
s655222520 | p02417 | u879471116 | 1546236843 | Python | Python3 | py | Runtime Error | 0 | 0 | 385 | 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']
dic = {}
for c in alphabet:
dic[c] = 0
while True:
string = list(input().rstrip().lower())
if string == []: break
for c in string:
if c in alphabet:
dic[c] = dic... | Traceback (most recent call last):
File "/tmp/tmps1mo3gkd/tmp2f7irmxm.py", line 10, in <module>
string = list(input().rstrip().lower())
^^^^^^^
EOFError: EOF when reading a line
| |
s301516317 | p02417 | u697703458 | 1555941824 | Python | Python3 | py | Runtime Error | 0 | 0 | 168 | ll=[chr(i) for i in range(97, 97+26)]
while True:
a=input()
a=a.lower()
for i in a:
l2.append(i)
for i in ll:
b=l2.count(i)
print(i,":",b)
| Traceback (most recent call last):
File "/tmp/tmp5u09o4wy/tmpmdx3frdz.py", line 3, in <module>
a=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s499181264 | p02417 | u697703458 | 1555941876 | Python | Python3 | py | Runtime Error | 0 | 0 | 178 | ll=[chr(i) for i in range(97, 97+26)]
l2=list()
while True:
a=input()
a=a.lower()
for i in a:
l2.append(i)
for i in ll:
b=l2.count(i)
print(i,":",b)
| Traceback (most recent call last):
File "/tmp/tmpkotxyywc/tmpv8ai96jg.py", line 4, in <module>
a=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s208996099 | p02417 | u697703458 | 1555941992 | Python | Python3 | py | Runtime Error | 0 | 0 | 193 | ll=[chr(i) for i in range(97, 97+26)]
l2=list()
a="happy"
while len(a)!=0:
a=input()
a=a.lower()
for i in a:
l2.append(i)
for i in ll:
b=l2.count(i)
print(i,":",b)
| Traceback (most recent call last):
File "/tmp/tmpc470lhsy/tmpjsnmfk0h.py", line 5, in <module>
a=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s724158567 | p02417 | u697703458 | 1555943611 | Python | Python3 | py | Runtime Error | 0 | 0 | 255 | ll=[chr(i) for i in range(97, 97+26)]
l2=list()
a=input()
b=input()
c=input()
d=input()
for i in a:
l2.append(i)
for i in b:
l2.append(i)
for i in c:
l2.append(i)
for i in d:
l2.append(i)
for i in ll:
b=l2.count(i)
print(i,":",b)
| Traceback (most recent call last):
File "/tmp/tmp1xbhldvn/tmprpf2oo43.py", line 3, in <module>
a=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s521448681 | p02417 | u083560765 | 1555967153 | Python | Python3 | py | Runtime Error | 0 | 0 | 243 | alp=[]
txt=[]
for i in range(97,97+26):
alp.append(chr(i))
while True:
if input()=='':
break
else:
a=input()
for i in a:
txt.append(str.lower(i))
for i in alp:
num=0
for j in txt:
if i==j:
num+=1
print(i+' : '+str(num))
| Traceback (most recent call last):
File "/tmp/tmphliptnth/tmpsslgg85s.py", line 6, in <module>
if input()=='':
^^^^^^^
EOFError: EOF when reading a line
| |
s595623269 | p02417 | u697703458 | 1556002544 | Python | Python3 | py | Runtime Error | 0 | 0 | 355 | a=input().split()
r=int(a[0])
c=int(a[1])
all_list=list()
for i in range(c+1):
all_list.append(0)
for i in range(r):
count=0
b=input().split()
b=[int(i) for i in b]
b.append(sum(b))
for i in b:
all_list[count]=all_list[count]+i
print(i,end=" ")
count+=1
print()
for i ... | Traceback (most recent call last):
File "/tmp/tmpw6x2sj_w/tmpzy1mdcy0.py", line 1, in <module>
a=input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s143359882 | p02417 | u967268722 | 1556120276 | Python | Python3 | py | Runtime Error | 0 | 0 | 196 | import string
text = ''
while True:
in_text = input().lower()
if not in_text:
break
text += in_text
for char in string.ascii_lowercase:
print(char, ':', text.count(char))
| Traceback (most recent call last):
File "/tmp/tmpzmkabuj7/tmpc3kjrlbx.py", line 4, in <module>
in_text = input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s347298657 | p02417 | u967268722 | 1556120456 | Python | Python3 | py | Runtime Error | 0 | 0 | 148 | import string
text = ''
while True:
text += input().lower()
for char in string.ascii_lowercase:
print(char, ':', text.count(char))
| Traceback (most recent call last):
File "/tmp/tmpjpipmee6/tmpy6asw970.py", line 4, in <module>
text += input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s266197204 | p02417 | u340503368 | 1556375332 | Python | Python3 | py | Runtime Error | 0 | 0 | 373 | count = [0 for i in range(26)]
alpha = "abcdefghijklmnopqrstuvwxyz"
while True:
sentence = input()
for letter in sentence:
letter.lower()
num = 0
for j in alpha:
if letter == j:
count[num] += 1
else:
num += 1
num = 0
for k in alpha:... | Traceback (most recent call last):
File "/tmp/tmp__nb5jow/tmpzt96ae9g.py", line 4, in <module>
sentence = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s778377943 | p02417 | u340503368 | 1556375418 | Python | Python3 | py | Runtime Error | 0 | 0 | 410 | count = [0 for i in range(26)]
alpha = "abcdefghijklmnopqrstuvwxyz"
while True:
sentence = input()
if sentence == "":
break
for letter in sentence:
letter.lower()
num = 0
for j in alpha:
if letter == j:
count[num] += 1
else:
... | Traceback (most recent call last):
File "/tmp/tmprj1vpixk/tmprk_nlwpz.py", line 4, in <module>
sentence = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s436402755 | p02417 | u928633434 | 1556521134 | Python | Python3 | py | Runtime Error | 0 | 0 | 264 | table = [0] * 26
string = []
while True:
try:
string += list(input())
except EOFError:
break
for s in string:
n = ord(s.lower()) - 97
if n >= 0 and n <= 25:
table[n] += 1
for idx, s in enumerate(table):
print(chr(idx + 97) + " : " + str(s)
| File "/tmp/tmpznstipah/tmpztaqurr6.py", line 15
print(chr(idx + 97) + " : " + str(s)
^
SyntaxError: '(' was never closed
| |
s366681875 | p02417 | u662822413 | 1556633014 | Python | Python3 | py | Runtime Error | 0 | 0 | 318 | import sys
letter="abcdefghijklmnopqrstuvwxyz"
table=[]*26
input_str=sys.stdin.read()
for A in input_str:
index=0
for B in letter:
if A == B or A == B.upper():
table[index] += 1
break
index += 1
for i in ragne(len(letter)):
print("%s : %d"%(letter[i],table[i]))
| Traceback (most recent call last):
File "/tmp/tmpk_kvf9lq/tmpuiglk1z5.py", line 15, in <module>
for i in ragne(len(letter)):
^^^^^
NameError: name 'ragne' is not defined. Did you mean: 'range'?
| |
s139036149 | p02417 | u662822413 | 1556633656 | Python | Python3 | py | Runtime Error | 0 | 0 | 411 | import sys
letter="abcdefghijklmnopqrstuvwxyz"
While True
table=[0]*26
try:
input_str=input()
except:
break
for A in input_str:
index=0
for B in letter:
if A == B or A == B.upper():
table[index] += 1
break
i... | File "/tmp/tmp04qv_m76/tmppz5hwelp.py", line 4
While True
^^^^
SyntaxError: invalid syntax
| |
s504311312 | p02417 | u662822413 | 1556633673 | Python | Python3 | py | Runtime Error | 0 | 0 | 408 | import sys
letter="abcdefghijklmnopqrstuvwxyz"
While True:
table=[0]*26
try:
input_str=input()
except:
break
for A in input_str:
index=0
for B in letter:
if A == B or A == B.upper():
table[index] += 1
break
inde... | File "/tmp/tmps516l9tm/tmptpzd7xw2.py", line 4
While True:
^^^^
SyntaxError: invalid syntax
| |
s798379737 | p02417 | u805716376 | 1556720419 | Python | Python3 | py | Runtime Error | 0 | 0 | 97 | a = abcdefghijklmnopqrstuvwxyz
b = input()
for i in range(26):
print(a[i],':',b.count(a[i]))
| Traceback (most recent call last):
File "/tmp/tmpfdcj6dn0/tmpfb3ropgi.py", line 1, in <module>
a = abcdefghijklmnopqrstuvwxyz
^^^^^^^^^^^^^^^^^^^^^^^^^^
NameError: name 'abcdefghijklmnopqrstuvwxyz' is not defined
| |
s768078776 | p02417 | u805716376 | 1556721727 | Python | Python3 | py | Runtime Error | 0 | 0 | 160 | a = "abcdefghijklmnopqrstuvwxyz"
while 1:
try:
b += input().lower()
except:
break
for i in range(26):
print(a[i],':',b.count(a[i]))
| Traceback (most recent call last):
File "/tmp/tmpy_hm2hiw/tmpiyharsjr.py", line 8, in <module>
print(a[i],':',b.count(a[i]))
^
NameError: name 'b' is not defined
| |
s068281380 | p02417 | u264450287 | 1558932070 | Python | Python3 | py | Runtime Error | 0 | 0 | 202 | while True:
st=[]
n=input()
if n=="":
break
st += n.lower()
char = "abcdefghijklmnopqrstuvwxyz"
for i in range(len(char)):
print(char[i],":",st.count(char[i]))
| Traceback (most recent call last):
File "/tmp/tmpuy2gpdmz/tmpqhfonzvl.py", line 3, in <module>
n=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s254864747 | p02417 | u264450287 | 1558932199 | Python | Python3 | py | Runtime Error | 0 | 0 | 189 | while True:
st=[]
n=input()
if n=="":
break
st += n.lower()
char = "abcdefghijklmnopqrstuvwxyz"
for i in range(len(char)):
print(char[i],":",st.count(char[i]))
| Traceback (most recent call last):
File "/tmp/tmphn7ufodx/tmpotwlvui9.py", line 3, in <module>
n=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s255877822 | p02417 | u264450287 | 1558932283 | Python | Python3 | py | Runtime Error | 0 | 0 | 187 | st=[]
while True:
n=input()
if n=="":
break
st += n.lower()
char = "abcdefghijklmnopqrstuvwxyz"
for i in range(len(char)):
print(char[i],":",st.count(char[i]))
| Traceback (most recent call last):
File "/tmp/tmp98ow9w7s/tmpaaj2rps3.py", line 3, in <module>
n=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s602758253 | p02417 | u966110132 | 1559209459 | Python | Python3 | py | Runtime Error | 0 | 0 | 641 | x = ""
while True:
try:
x += str(input())
except ValueError:
pass
alist = list(x)
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"]
ALPHABET = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","... | Traceback (most recent call last):
File "/tmp/tmpw_04qh4p/tmpj_ncivhu.py", line 4, in <module>
x += str(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s152668610 | p02417 | u966110132 | 1559211603 | Python | Python3 | py | Runtime Error | 0 | 0 | 325 | import sys
c = [0]*26
b = "abcdefghijklmnopqrstuvwxyz"
a = sys.stdin.read()
for A in a:
k = 0
for B in b:
if A == B or A == B.upper():
c[k] += 1
break
index += 1
for i in range(len(b)):
print("%s : %d"%(letters[i],c[i]))
| File "/tmp/tmp2mukubem/tmpukg9a5eo.py", line 6
k = 0
^
SyntaxError: invalid non-printable character U+00A0
| |
s440614742 | p02417 | u535719732 | 1559290906 | Python | Python3 | py | Runtime Error | 0 | 0 | 86 | str = input()
for i in range(0x61,0x7b):
print("%c : %d", %(i,str.count(str(i))))
| File "/tmp/tmpk58o0anv/tmp8i7kdo95.py", line 3
print("%c : %d", %(i,str.count(str(i))))
^
SyntaxError: invalid syntax
| |
s284583499 | p02417 | u535719732 | 1559290970 | Python | Python3 | py | Runtime Error | 0 | 0 | 84 | st = input()
for i in range(0x61,0x7b):
print("%c : %d", %(i,st.count(str(i))))
| File "/tmp/tmppsrnmeks/tmp63m6u3ul.py", line 3
print("%c : %d", %(i,st.count(str(i))))
^
SyntaxError: invalid syntax
| |
s480947632 | p02417 | u535719732 | 1559291175 | Python | Python3 | py | Runtime Error | 0 | 0 | 84 | st = input()
for i in range(0x61,0x7b):
print("%c : %d", %(i,st.count(chr(i))))
| File "/tmp/tmp1ze01hco/tmp77blr_sd.py", line 3
print("%c : %d", %(i,st.count(chr(i))))
^
SyntaxError: invalid syntax
| |
s126008211 | p02417 | u535719732 | 1559291518 | Python | Python3 | py | Runtime Error | 0 | 0 | 119 | import sys
data = sys.stdin().read()
for i in range(0x61,0x7b):
print("%c : %d" %(i,data.lower().count(chr(i))))
| Traceback (most recent call last):
File "/tmp/tmpr1u1um6h/tmpzvdcfu7b.py", line 3, in <module>
data = sys.stdin().read()
^^^^^^^^^^^
TypeError: '_io.TextIOWrapper' object is not callable
| |
s573246928 | p02417 | u327972099 | 1410528072 | Python | Python3 | py | Runtime Error | 0 | 0 | 259 | l = {chr(i): 0 for i in range(ord("a"), ord("z")+1)}
while True:
s = input().lower()
if not s:
break
for s_ in s:
if ord("a") <= ord(s_) <= ord("z"):
l[s_] += 1
for k in sorted(l.keys()):
print("%c : %d" %(k, l[k])) | Traceback (most recent call last):
File "/tmp/tmpdcjk1amk/tmp6alx2afb.py", line 3, in <module>
s = input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s405945824 | p02417 | u327972099 | 1410529760 | Python | Python3 | py | Runtime Error | 0 | 0 | 237 | l = {chr(i): 0 for i in range(ord("a"), ord("z")+1)}
s = ""
while True:
try:
s += input()
except EOFError:
break
for s_ in list(s.lower()):
l[s_] += 1
for k in sorted(l.keys()):
print("%c : %d" %(k, l[k])) | a : 0
b : 0
c : 0
d : 0
e : 0
f : 0
g : 0
h : 0
i : 0
j : 0
k : 0
l : 0
m : 0
n : 0
o : 0
p : 0
q : 0
r : 0
s : 0
t : 0
u : 0
v : 0
w : 0
x : 0
y : 0
z : 0
| |
s222090932 | p02417 | u140201022 | 1410791553 | Python | Python | py | Runtime Error | 0 | 0 | 144 | l=[0]*26
for h in sys.stdin:
for i in h:
k=ord(i.lower())
if 96<k<123:l[k-97]+=1
for i in range(26):print chr(i+97),':',l[i] | File "/tmp/tmp9bawveqr/tmp_vmbon1v.py", line 6
for i in range(26):print chr(i+97),':',l[i]
^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s794130451 | p02417 | u507118101 | 1415948932 | Python | Python | py | Runtime Error | 0 | 0 | 227 | a = 'abcdefghijklmnopqrstuvwxyz'
b = [0 for i in range(len(a))]
while True:
S = raw_input().lower()
if len(S) == 0:
break
for j in range(26):
b[j] += S.count(a[j])
for i in range(len(a)):
print str(a[i])+" : "+str(b[i]) | File "/tmp/tmpawj7x5vb/tmpe4cud59f.py", line 10
print str(a[i])+" : "+str(b[i])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s763136358 | p02417 | u507118101 | 1415949094 | Python | Python | py | Runtime Error | 0 | 0 | 223 | a = 'abcdefghijklmnopqrstuvwxyz'
b = [0 for i in range(len(a))]
while True:
S = raw_input().lower()
if S == "":
break
for j in range(26):
b[j] += S.count(a[j])
for i in range(len(a)):
print str(a[i])+" : "+str(b[i]) | File "/tmp/tmp3okzw508/tmpc3m1ro5_.py", line 10
print str(a[i])+" : "+str(b[i])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s305345123 | p02417 | u017764209 | 1420633361 | Python | Python | py | Runtime Error | 0 | 0 | 355 | import string
abc = list(string.ascii_lowercase)
li = [0 for a in range(len(abc))]
while True:
a = raw_input()
if a != '':
for a in list(a):
if a.lower() in abc:
tmp = abc.index(a.lower())
li[tmp] = li[tmp] + 1
else:
break
for a in range(len(abc)... | File "/tmp/tmpeywyk4fb/tmp2y2wvi48.py", line 16
print abc[a] + ' : ' + li[a]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s452487899 | p02417 | u017764209 | 1420633416 | Python | Python | py | Runtime Error | 0 | 0 | 360 | import string
abc = list(string.ascii_lowercase)
li = [0 for a in range(len(abc))]
while True:
a = raw_input()
if a != '':
for a in list(a):
if a.lower() in abc:
tmp = abc.index(a.lower())
li[tmp] = li[tmp] + 1
else:
break
for a in range(len(abc)... | File "/tmp/tmp9r873qaz/tmp3b3hkl50.py", line 16
print abc[a] + ' : ' + str(li[a])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s771973435 | p02417 | u017764209 | 1420633649 | Python | Python | py | Runtime Error | 0 | 0 | 360 | import string
abc = list(string.ascii_lowercase)
li = [0 for a in range(len(abc))]
while True:
a = raw_input()
if a != '':
for a in list(a):
if a.lower() in abc:
tmp = abc.index(a.lower())
li[tmp] = li[tmp] + 1
else:
break
for a in range(len(abc)... | File "/tmp/tmpz0zr6sxt/tmptzlxyuov.py", line 16
print abc[a] + ' : ' + str(li[a])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s781103836 | p02417 | u017764209 | 1420633795 | Python | Python | py | Runtime Error | 0 | 0 | 423 | abc = ['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']
li = [0 for a in range(len(abc))]
while True:
a = raw_input()
if a != '':
for a in list(a):
if a.lower() in abc:
tmp = abc.index(a.lower())
li[tmp]... | File "/tmp/tmpomlaenyv/tmplxdlm8eb.py", line 15
print abc[a] + ' : ' + str(li[a])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s564673335 | p02417 | u017764209 | 1420634110 | Python | Python | py | Runtime Error | 0 | 0 | 380 | abc = ['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']
li = [0 for a in range(len(abc))]
a = raw_input()
if a != '':
for a in list(a):
if a.lower() in abc:
tmp = abc.index(a.lower())
li[tmp] = li[tmp] + 1
else:
break
for... | File "/tmp/tmp3av991dk/tmp0sicdhck.py", line 15
print abc[a] + ' : ' + str(li[a])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s652316666 | p02417 | u017764209 | 1420634577 | Python | Python | py | Runtime Error | 0 | 0 | 356 | import string
az = list(string.ascii_lowercase)
li = [0 for a in range(len(az))]
while True:
a = raw_input()
if a != '':
for b in list(a):
if b.lower() in abc:
tmp = az.index(a.lower())
li[tmp] = li[tmp] + 1
else:
break
for c in range(len(ac)):
... | File "/tmp/tmp2qkx4hy3/tmpoda2o9wt.py", line 16
print abc[c] + ' : ' + str(li[c])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s927399153 | p02417 | u017764209 | 1420634608 | Python | Python | py | Runtime Error | 0 | 0 | 355 | import string
az = list(string.ascii_lowercase)
li = [0 for a in range(len(az))]
while True:
a = raw_input()
if a != '':
for b in list(a):
if b.lower() in az:
tmp = az.index(a.lower())
li[tmp] = li[tmp] + 1
else:
break
for c in range(len(az)):
... | File "/tmp/tmp7_rburla/tmplnjb8u1s.py", line 16
print abc[c] + ' : ' + str(li[c])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s048793262 | p02417 | u017764209 | 1420634719 | Python | Python | py | Runtime Error | 0 | 0 | 354 | import string
az = list(string.ascii_lowercase)
li = [0 for a in range(len(az))]
while True:
a = raw_input()
if a != '':
for b in list(a):
if b.lower() in az:
tmp = az.index(b.lower())
li[tmp] = li[tmp] + 1
else:
break
for c in range(len(az)):
... | File "/tmp/tmpg73k14qp/tmpg5yljwfn.py", line 16
print az[c] + ' : ' + str(li[c])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s005489918 | p02417 | u017764209 | 1420634946 | Python | Python | py | Runtime Error | 0 | 0 | 385 | import string
az = list(string.ascii_lowercase)
li = [0 for a in range(len(az))]
while True:
a = raw_input()
try:
if a != '':
for b in list(a):
if b.lower() in az:
tmp = az.index(b.lower())
li[tmp] = li[tmp] + 1
except:
bre... | File "/tmp/tmpgjwl1q9i/tmpubkj5532.py", line 17
print az[c] + ' : ' + str(li[c])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s532299753 | p02417 | u017764209 | 1420636733 | Python | Python | py | Runtime Error | 0 | 0 | 97 | s = raw_input()
p = raw_input()
s3 = s + s + s
if p in s3:
print 'Yes'
else:
print 'No' | File "/tmp/tmpnyehscnb/tmp7gzmntaf.py", line 7
print 'Yes'
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s413522810 | p02417 | u067975558 | 1423106917 | Python | Python3 | py | Runtime Error | 0 | 0 | 542 | text = input()
a = []
a.append([chr(x) for x in range(ord('a'), ord('z') + 1)])
textList = []
for x in range(len(text)):
textList.append(text[x].lower())
for x in range(len(a[0])):
print(a[0][x], ':', textList.count(a[0][x]))
続けるにはENTERを押すかコマンドを入力してください
text = input()
a = []
a.append([chr(x) for x in range(or... | Traceback (most recent call last):
File "/tmp/tmp3dc3k3zz/tmpxrkekv3t.py", line 1, in <module>
text = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s915957992 | p02417 | u067975558 | 1423114116 | Python | Python3 | py | Runtime Error | 0 | 0 | 177 | while True:
text = input()
a = {}
for x in range(ord('a'), ord('z') + 1):
a[chr(x)] = list(text.lower()).count(chr(x))
print(chr(x), ':', a[chr(x)]) | Traceback (most recent call last):
File "/tmp/tmpbns4iuup/tmp1wp3ckhk.py", line 2, in <module>
text = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s456821946 | p02417 | u297342993 | 1423122636 | Python | Python3 | py | Runtime Error | 0 | 0 | 361 | alphabetTable = dict.fromkeys([chr(i) for i in range(97, 123)], 0)
while True:
text = input()
if len(text) == 0:
break
for i in range(len(text)):
if text[i].lower() in alphabetTable:
alphabetTable[text[i].lower()] += 1
sortedTable = sorted(alphabetTable.keys())
for r in sorte... | Traceback (most recent call last):
File "/tmp/tmpq0m4ct7y/tmp9gunwx_l.py", line 4, in <module>
text = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s202389425 | p02417 | u067975558 | 1423125731 | Python | Python3 | py | Runtime Error | 0 | 0 | 231 | a = {x:0 for x in range(ord('a'), ord('z') + 1)}
while True:
text = input()
for x in list(text.lower()):
print(x)
a[ord(x)] += 1
for x in range(ord('a'), ord('z') + 1):
print(chr(x), ':', a[x]) | Traceback (most recent call last):
File "/tmp/tmpunmqa8bd/tmpzyyn0kat.py", line 4, in <module>
text = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s325035870 | p02417 | u067975558 | 1423125739 | Python | Python3 | py | Runtime Error | 0 | 0 | 231 | a = {x:0 for x in range(ord('a'), ord('z') + 1)}
while True:
text = input()
for x in list(text.lower()):
print(x)
a[ord(x)] += 1
for x in range(ord('a'), ord('z') + 1):
print(chr(x), ':', a[x]) | Traceback (most recent call last):
File "/tmp/tmpikg9dm8e/tmp2fk6cpkx.py", line 4, in <module>
text = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s542408591 | p02417 | u067975558 | 1423125801 | Python | Python3 | py | Runtime Error | 0 | 0 | 198 | a = {x:0 for x in range(ord('a'), ord('z') + 1)}
text = input()
for x in list(text.lower()):
print(x)
a[ord(x)] += 1
for x in range(ord('a'), ord('z') + 1):
print(chr(x), ':', a[x]) | Traceback (most recent call last):
File "/tmp/tmpaw9sjlf_/tmpzamrrc9t.py", line 3, in <module>
text = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s761247321 | p02417 | u067975558 | 1423126356 | Python | Python3 | py | Runtime Error | 0 | 0 | 189 | a = {x:0 for x in range(ord('a'), ord('z') + 1)}
#while True:
text = input()
for x in text:
a[ord(x.lower())] += 1
for x in range(ord('a'), ord('z') + 1):
print(chr(x), ':', a[x]) | Traceback (most recent call last):
File "/tmp/tmp2m75r4v8/tmplcgeugkd.py", line 4, in <module>
text = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s323943608 | p02417 | u067975558 | 1423126404 | Python | Python3 | py | Runtime Error | 0 | 0 | 208 | a = {x:0 for x in range(ord('a'), ord('z') + 1)}
while True:
text = input()
for x in text:
a[ord(x.lower())] += 1
for x in range(ord('a'), ord('z') + 1):
print(chr(x), ':', a[x]) | Traceback (most recent call last):
File "/tmp/tmp245n3vsj/tmp_4x4xjmq.py", line 4, in <module>
text = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s485857479 | p02417 | u067975558 | 1423126439 | Python | Python3 | py | Runtime Error | 0 | 0 | 242 | a = {x:0 for x in range(ord('a'), ord('z') + 1)}
while True:
text = input()
if text == ' ':
break
for x in text:
a[ord(x.lower())] += 1
for x in range(ord('a'), ord('z') + 1):
print(chr(x), ':', a[x]) | Traceback (most recent call last):
File "/tmp/tmpw56d74fy/tmp2c1g9021.py", line 4, in <module>
text = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s652185528 | p02417 | u067975558 | 1423126449 | Python | Python3 | py | Runtime Error | 0 | 0 | 242 | a = {x:0 for x in range(ord('a'), ord('z') + 1)}
while True:
text = input()
if text == ' ':
break
for x in text:
a[ord(x.lower())] += 1
for x in range(ord('a'), ord('z') + 1):
print(chr(x), ':', a[x]) | Traceback (most recent call last):
File "/tmp/tmpoxxl9a6b/tmp6as1pbye.py", line 4, in <module>
text = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s892681579 | p02417 | u839573768 | 1423240653 | Python | Python | py | Runtime Error | 0 | 0 | 335 | text = raw_input()
count = {} #a~zの出現回数を記録
for i in range(26):
count[(i)] = 0
for i in range(len(text)):
if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
count[(ord(text[i]))-ord('a')] += 1
#出現回数の表示
for i in range(26):
print '%s : %d' %(unichr(i+ord('a')), count[(i)]) | File "/tmp/tmpw6zlhbpq/tmphjvvr04g.py", line 13
print '%s : %d' %(unichr(i+ord('a')), count[(i)])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s719204319 | p02417 | u839573768 | 1423240875 | Python | Python | py | Runtime Error | 0 | 0 | 341 | text = raw_input()
count = {} #a~zの出現回数を記録
for i in range(26):
count[(i)] = 0
for i in range(len(text)):
if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
count[(ord(text[i]))-ord('a')] += 1
#出現回数の表示
for i in range(26):
print '%s : %d' %(unichr(i+ord('a')), count[(i)])
print | File "/tmp/tmp60aj2ru_/tmp43530ws4.py", line 13
print '%s : %d' %(unichr(i+ord('a')), count[(i)])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s130270544 | p02417 | u839573768 | 1423241052 | Python | Python | py | Runtime Error | 0 | 0 | 344 | text = raw_input()
count = {} #a~zの出現回数を記録
for i in range(26):
count[(i)] = 0
for i in range(len(text)):
if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
count[(ord(text[i]))-ord('a')] += 1
#出現回数の表示
for i in range(26):
print '%s : %d' %(unichr(i+ord('a')), count[(i)])
exit(0) | File "/tmp/tmpkaye378z/tmpuvp__bx2.py", line 13
print '%s : %d' %(unichr(i+ord('a')), count[(i)])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s301015654 | p02417 | u839573768 | 1423241823 | Python | Python | py | Runtime Error | 0 | 0 | 472 | text = raw_input()
count = {} #a~zの出現回数を記録
print ord('a')
print ord('A')
for i in range(26):
count[(i)] = 0
for i in range(len(text)):
if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
count[(ord(text[i]))-ord('a')] += 1
if(ord(text[i]) >= ord('A') and ord(text[i]) <= ord('Z')):
... | File "/tmp/tmpfn2a02mo/tmpyw24jk4g.py", line 3
print ord('a')
^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s648941872 | p02417 | u839573768 | 1423242279 | Python | Python | py | Runtime Error | 0 | 0 | 485 | text = raw_input()
count = {} #a~zの出現回数を記録
print ord('a')
print ord('A')
for i in range(26):
count[(i)] = 0
for i in range(len(text)):
if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
count[(ord(text[i]))-ord('a')] += 1
if(ord(text[i]) >= ord('A') and ord(text[i]) <= ord('Z')):
... | File "/tmp/tmpc859cada/tmpumk0_93k.py", line 3
print ord('a')
^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s779880922 | p02417 | u839573768 | 1423242372 | Python | Python | py | Runtime Error | 0 | 0 | 442 | text = raw_input()
count = {} #a~zの出現回数を記録
for i in range(26):
count[(i)] = 0
for i in range(len(text)):
if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
count[(ord(text[i]))-ord('a')] += 1
if(ord(text[i]) >= ord('A') and ord(text[i]) <= ord('Z')):
count[(ord(text[i]))-ord('A... | File "/tmp/tmpt63ajvje/tmp82yywbf3.py", line 15
print '%s : %d' %(unichr(i+ord('a')), count[(i)])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s066382229 | p02417 | u839573768 | 1423242996 | Python | Python | py | Runtime Error | 0 | 0 | 537 | count = {} #a~zの出現回数を記録
while True:
try:
text = raw_input()
except:
break
for i in range(26):
count[(i)] = 0
for i in range(len(text)):
if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
count[(ord(text[i]))-ord('a')] += 1
if(ord(text[i])... | File "/tmp/tmpqk6rahsh/tmpxivwy08p.py", line 19
print '%s : %d' %(unichr(i+ord('a')), count[(i)])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s665055844 | p02417 | u839573768 | 1423244394 | Python | Python | py | Runtime Error | 0 | 0 | 521 | count = {} #a~zの出現回数を記録
for i in range(26):
count[(i)] = 0
while True:
try:
text = raw_input()
except EOFError:
break
for i in range(len(text)):
if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
count[(ord(text[i]))-ord('a')] += 1
if(ord(text[i]) >= ... | File "/tmp/tmpofsroq5c/tmpdiex_345.py", line 18
print '%s : %d' %(unichr(i+ord('a')), count[(i)])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s434772409 | p02417 | u839573768 | 1423284258 | Python | Python | py | Runtime Error | 0 | 0 | 511 | count = {} #a~zの出現回数を記録
for i in range(26):
count[(i)] = 0
while True:
text = raw_input()
if(len(text) == 0):
break
for i in range(len(text)):
if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
count[(ord(text[i]))-ord('a')] += 1
if(ord(text[i]) >= ord('A') a... | File "/tmp/tmpet8zzuxc/tmp7h1cbq1e.py", line 17
print '%s : %d' %(unichr(i+ord('a')), count[(i)])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s486913701 | p02417 | u839573768 | 1423285565 | Python | Python | py | Runtime Error | 0 | 0 | 512 | count = {} #a~zの出現回数を記録
for i in range(26):
count[(i)] = 0
while True:
try:
text = raw_input()
except:
break
for i in range(len(text)):
if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
count[(ord(text[i]))-ord('a')] += 1
if(ord(text[i]) >= ord('A') ... | File "/tmp/tmp6dkj1umi/tmpu6wp4xcq.py", line 18
print '%s : %d' %(unichr(i+ord('a')), count[(i)])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s850667357 | p02417 | u839573768 | 1423286744 | Python | Python | py | Runtime Error | 0 | 0 | 526 | count = {} #a~zの出現回数を記録
for i in range(26):
count[(i)] = 0
while True:
text = ''
try:
text = raw_input()
except:
break
for i in range(len(text)):
if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
count[(ord(text[i]))-ord('a')] += 1
if(ord(text[i]... | File "/tmp/tmpl_54swyp/tmproblr41j.py", line 19
print '%s : %d' %(unichr(i+ord('a')), count[(i)])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s127117972 | p02417 | u839573768 | 1423286922 | Python | Python | py | Runtime Error | 0 | 0 | 526 | count = {} #a~zの出現回数を記録
for i in range(26):
count[(i)] = 0
while True:
text = []
try:
text = raw_input()
except:
break
for i in range(len(text)):
if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
count[(ord(text[i]))-ord('a')] += 1
if(ord(text[i]... | File "/tmp/tmph0365f83/tmpmeigq787.py", line 19
print '%s : %d' %(unichr(i+ord('a')), count[(i)])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s291095705 | p02417 | u839573768 | 1423287466 | Python | Python | py | Runtime Error | 0 | 0 | 522 | count = {} #a~zの出現回数を記録
for i in range(26):
count[(i)] = 0
text = []
while True:
try:
text = raw_input()
except:
break
for i in range(len(text)):
if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
count[(ord(text[i]))-ord('a')] += 1
if(ord(text[i]) >=... | File "/tmp/tmpat1iqcyz/tmptoy1k85j.py", line 19
print '%s : %d' %(unichr(i+ord('a')), count[(i)])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s178694569 | p02417 | u971748390 | 1431440878 | Python | Python3 | py | Runtime Error | 0 | 0 | 176 | x=input()
alpha=[chr(s) for s in range(ord("a"),ord("z")+1)]
cnt=[i*0 for i in range(ord("a"),ord("z")+1)]
for k in alpha
cnt[k]=x.count(alpha[k])
print(alpha[k]:cnt[k]) | File "/tmp/tmpc8zg7v_0/tmpsooqy7pa.py", line 7
for k in alpha
^
SyntaxError: expected ':'
| |
s489218847 | p02417 | u446252583 | 1431503158 | Python | Python | py | Runtime Error | 0 | 0 | 384 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import string
import itertools
key = list(string.ascii_lowercase)
value = list([0 for x in range(0, 26)])
d = dict(itertools.izip(key, value))
n = "".join("".join("".join(sys.stdin.readlines()).split('\n')).split(' '))
for i in n:
if i.isalpha():
d[i] ... | File "/tmp/tmpmnix2hbq/tmpp3kqeu99.py", line 18
print key, ':', value
^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s891210117 | p02417 | u971748390 | 1431526349 | Python | Python3 | py | Runtime Error | 0 | 0 | 196 | x=input()
alpha=[chr(s) for s in range(ord("a"),ord("z")+1)]
cnt=[i*0 for i in range(ord("a"),ord("z")+1)]
for k in alpha :
cnt[ord("k")-ord("k")]=x.count(k)
print(k:cnt[ord("k")-ord("k")]) | File "/tmp/tmpp9pvebh5/tmplp13_rvq.py", line 9
print(k:cnt[ord("k")-ord("k")])
^
SyntaxError: invalid syntax
| |
s716254348 | p02417 | u604774382 | 1431687059 | Python | Python | py | Runtime Error | 0 | 0 | 320 | import sys
chash = {}
for i in range( ord( 'a' ), ord( 'z' ) ):
chash[ chr( i ) ] = 0
line = sys.stdin.readlines().rstrip()
for i in range( len( line ) ):
if line[i].isalpha():
chash[ line[i].lower() ] += 1
for i in range( ord( 'a' ), ord( 'z' ) ):
print( "{:s} : {:d}".format( chr( i ), chash[ chr( i ) ] ) )
| Traceback (most recent call last):
File "/tmp/tmpvk1oa07d/tmpcyoanjkp.py", line 8, in <module>
line = sys.stdin.readlines().rstrip()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'rstrip'
| |
s909049361 | p02417 | u604774382 | 1431687916 | Python | Python | py | Runtime Error | 0 | 0 | 317 | import sys
chash = {}
for i in range( ord( 'a' ), ord( 'z' ) ):
chash[ chr( i ) ] = 0
line = sys.stdin.readlines().rstrip()
for i in range( len( line ) ):
if line[i].isalpha():
chash[ line[i].lower() ] += 1
for i in range( ord( 'a' ), ord( 'z' ) ):
print( "{:s} : {:d}".format( chr( i ), chash[ chr( i ) ] ) ) | Traceback (most recent call last):
File "/tmp/tmppbp8wfwy/tmpglmweyct.py", line 7, in <module>
line = sys.stdin.readlines().rstrip()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'rstrip'
| |
s727768176 | p02417 | u604774382 | 1431689177 | Python | Python | py | Runtime Error | 0 | 0 | 365 | import sys
chash = {}
for i in range( ord( 'a' ), ord( 'z' ) ):
chash[ chr( i ) ] = 0
lines = sys.stdin.readlines().rstrip()
for i in range( len( lines ) ):
for j in range( len( lines[i] ) ):
if lines[i][j].isalpha():
chash[ lines[i][j].lower() ] += 1
for i in range( ord( 'a' ), ord( 'z' ) ):
print( "{:s} : ... | Traceback (most recent call last):
File "/tmp/tmpfd3rh4vm/tmp5sriwuqo.py", line 7, in <module>
lines = sys.stdin.readlines().rstrip()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'rstrip'
| |
s233703152 | p02417 | u971748390 | 1432997899 | Python | Python3 | py | Runtime Error | 0 | 0 | 206 | x=input().lower()
alpha=[chr(s) for s in range(ord("a"),ord("z")+1)]
cnt=[i*0 for i in range(ord("a"),ord("z")+1)]
for k in alpha :
cnt[k-ord(alpha[k])]=x.count(alpha[k])
print(alpha[k] ,':', cnt[k]) | Traceback (most recent call last):
File "/tmp/tmpuglg18pt/tmpbcbw_var.py", line 1, in <module>
x=input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s363817324 | p02417 | u669360983 | 1433299387 | Python | Python | py | Runtime Error | 0 | 0 | 279 | lit=raw_input().lower()
Dic={'a':0,'b':0,'c':0,'d':0,'e':0,'f':0,'g':0,'h':0,'i':0,'j':0,'k':0,'l':0,'m':0,'n':0,'o':0,'p':0,'q':0,'r':0,'s':0,'t':0,'u':0,'v':0,'w':0,'x':0,'y':0,'z':0 }
for i in lit:
Dic[i]+=1
Key=Dic.keys()
Key.sort()
for key in Key:
print key, ":" ,Dic[key] | File "/tmp/tmpsxk9sm12/tmpgur5r_vx.py", line 8
print key, ":" ,Dic[key]
^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s927657387 | p02417 | u669360983 | 1433299600 | Python | Python | py | Runtime Error | 0 | 0 | 279 | lit=raw_input().lower()
Dic={'a':0,'b':0,'c':0,'d':0,'e':0,'f':0,'g':0,'h':0,'i':0,'j':0,'k':0,'l':0,'m':0,'n':0,'o':0,'p':0,'q':0,'r':0,'s':0,'t':0,'u':0,'v':0,'w':0,'x':0,'y':0,'z':0 }
for i in lit:
Dic[i]+=1
Key=Dic.keys()
Key.sort()
for key in Key:
print key, ":" ,Dic[key] | File "/tmp/tmppskdtgqt/tmpedxldpkj.py", line 8
print key, ":" ,Dic[key]
^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s790627394 | p02417 | u938745275 | 1440254043 | Python | Python | py | Runtime Error | 0 | 0 | 325 | dic = {}
for i in xrange(97, 123):
dic.setdefault(chr(i), 0)
while True:
input = raw_input()
if input == "" or input == None:
break
for i in xrange(len(input)):
if input[i].lower() in dic:
dic[input[i].lower()] += 1
# print dic
for i in xrange(97, 123):
print chr(i) + " : " + str(dic[chr... | File "/tmp/tmpgdn6rik0/tmph4to4fhv.py", line 15
print chr(i) + " : " + str(dic[chr(i)])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s433899104 | p02417 | u938745275 | 1440254405 | Python | Python | py | Runtime Error | 0 | 0 | 321 | dic = {}
for i in xrange(97, 123):
dic.setdefault(chr(i), 0)
while True:
input = raw_input()
if input == "" or input == None:
break
for i in xrange(len(input)):
if input[i].lower() in dic:
dic[input[i].lower()] += 1
# print dic
for i in xrange(97, 123):
print chr(i) + " : " + str(dic[chr(i)]... | File "/tmp/tmp_72ijdfh/tmp4e8z78vw.py", line 15
print chr(i) + " : " + str(dic[chr(i)])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s386415728 | p02417 | u938745275 | 1440254703 | Python | Python | py | Runtime Error | 0 | 0 | 298 | dic = {}
for i in xrange(97, 123):
dic.setdefault(chr(i), 0)
input = "hoge"
while input != "":
input = raw_input()
for i in xrange(len(input)):
if input[i].lower() in dic:
dic[input[i].lower()] += 1
# print dic
for i in xrange(97, 123):
print chr(i) + " : " + str(dic[chr(i)]) | File "/tmp/tmpdl65p7gi/tmpti1_0d0j.py", line 14
print chr(i) + " : " + str(dic[chr(i)])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s013994403 | p02417 | u938745275 | 1440254884 | Python | Python | py | Runtime Error | 10 | 6268 | 396 | dic = {}
for i in xrange(97, 123):
dic.setdefault(chr(i), 0)
input = "hoge"
flag = False
while input != "":
input = raw_input()
for i in xrange(len(input)):
if input[i].lower() in dic:
dic[input[i].lower()] += 1
elif input[i] == ".":
flag = True
break
if flag == True:
break
# p... | File "/tmp/tmpwp94l98z/tmpagsmkdx9.py", line 20
print chr(i) + " : " + str(dic[chr(i)])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s007207320 | p02417 | u938745275 | 1440255067 | Python | Python | py | Runtime Error | 10 | 6492 | 401 | dic = {}
for i in xrange(97, 123):
dic.setdefault(chr(i), 0)
input = raw_input()
flag = False
while input != "":
for i in xrange(len(input)):
if input[i].lower() in dic:
dic[input[i].lower()] += 1
elif input[i] == ".":
flag = True
break
if flag == True:
break
input = raw_input()
... | File "/tmp/tmpn5i0rwgd/tmpfbzbfted.py", line 20
print chr(i) + " : " + str(dic[chr(i)])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s182544329 | p02417 | u467309160 | 1443532792 | Python | Python3 | py | Runtime Error | 0 | 0 | 475 | import collections
import string
??
def solve(s):
????????s = s.lower()
????????counter = collections.Counter(s)
????????lows = string.ascii_lowercase
????????cnt = [counter[ch] for ch in lows]
????????for (ch, n) in zip(lows, cnt):
????????????????print('{0} : {1}'.format(ch, n))
??
if __name__ == '__main__':
????????... | File "/tmp/tmpt7_taaqc/tmp36huy65t.py", line 3
??
^
SyntaxError: invalid syntax
| |
s855817058 | p02417 | u467309160 | 1443532844 | Python | Python3 | py | Runtime Error | 0 | 0 | 282 | using namespace std;
int main(void){
char c;
int num[26]={};
while (scanf("%c",&c) != EOF) {
c = tolower(c);
if (c >= 'a' && c<='z') num[c-'a']++;
}
for (int i = 0; i < 26; i++) {
printf("%c : %d\n", i+'a',num[i]);
}
return 0;
} | File "/tmp/tmpkr_bja8v/tmpsa81mnat.py", line 1
using namespace std;
^^^^^^^^^
SyntaxError: invalid syntax
| |
s381697728 | p02417 | u240363515 | 1443618602 | Python | Python | py | Runtime Error | 10 | 6316 | 202 | docs = ''
while True:
docs += (raw_input().lower())
if docs[len(docs)-1] == '.':
break
for ascii_num in range(97, 123):
print '%s : %d' % (chr(ascii_num), docs.count(chr(ascii_num))) | File "/tmp/tmpu_23r92v/tmp0ae2mfom.py", line 7
print '%s : %d' % (chr(ascii_num), docs.count(chr(ascii_num)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s846717059 | p02417 | u240363515 | 1443618767 | Python | Python | py | Runtime Error | 10 | 6316 | 202 | docs = ''
while True:
docs += (raw_input().lower())
if docs[len(docs)-1] == '.':
break
for ascii_num in range(97, 123):
print '%s : %d' % (chr(ascii_num), docs.count(chr(ascii_num))) | File "/tmp/tmpc5bj66ud/tmprub_psp1.py", line 7
print '%s : %d' % (chr(ascii_num), docs.count(chr(ascii_num)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s864923024 | p02417 | u224288634 | 1444393195 | Python | Python | py | Runtime Error | 10 | 6300 | 1239 | alphabet = [0]*26
i = 0;
for j in range(97,123):
alphabet[i] = chr(j)
i += 1
al_count = [0]*26
while True :
words = raw_input().lower().split()
for k in words :
for l in list(k):
if l=='a':
al_count[0] += 1
elif l=='b':
al_count[1] += 1
elif l=='c':
al_count[2]+=1
elif l=='d':
al_coun... | File "/tmp/tmpahx7lf6e/tmpf9mfolex.py", line 66
print '%c : %d' %(alphabet[i],al_count[i])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s914815393 | p02417 | u224288634 | 1444393334 | Python | Python | py | Runtime Error | 10 | 6300 | 1239 | alphabet = [0]*26
i = 0;
for j in range(97,123):
alphabet[i] = chr(j)
i += 1
al_count = [0]*26
while True :
words = raw_input().lower().split()
for k in words :
for l in list(k):
if l=='a':
al_count[0] += 1
elif l=='b':
al_count[1] += 1
elif l=='c':
al_count[2]+=1
elif l=='d':
al_coun... | File "/tmp/tmpd1o9plaz/tmpyb1ifqd3.py", line 66
print '%c : %d' %(alphabet[i],al_count[i])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s233334154 | p02417 | u224288634 | 1444393619 | Python | Python | py | Runtime Error | 0 | 0 | 1225 |
alphabet = [0]*26
i = 0;
for j in range(97,123):
alphabet[i] = chr(j)
i += 1
al_count = [0]*26
while True :
words = raw_input().lower().split()
for k in words :
for l in list(k):
if l=='a':
al_count[0] += 1
elif l=='b':
al_count[1] += 1
elif l=='c':
al_count[2]+=1
elif l=='d':
al_cou... | File "/tmp/tmpr8y3rhb9/tmpw1mb641z.py", line 67
print '%c : %d' %(alphabet[i],al_count[i])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s773360641 | p02417 | u512342660 | 1450444392 | Python | Python | py | Runtime Error | 0 | 0 | 513 |
while True:
try:
yield ''.join(raw_input().strip())
except EOFError:
break
inlist = list(get_input())
instr = "".join(inlist)
instr = instr.lower()
ascstart = 97
ascfin = 122
strlist = [0 for i in xrange(97,122+1)]
# print len(strlist)
for x in xrange(len(instr)):
if ord... | File "/tmp/tmpbxh1ou_h/tmp7ojn_f76.py", line 2
while True:
IndentationError: unexpected indent
| |
s504731489 | p02417 | u003762655 | 1450445143 | Python | Python3 | py | Runtime Error | 0 | 0 | 174 | sent=""
while True:
ex=input().lower()
if len(ex)==0:
break
sent+=ex
for i in range(ord("a"),ord("z")+1):
x=sent.count(chr(i))
print(chr(i),":",x) | Traceback (most recent call last):
File "/tmp/tmpn9l3rfd8/tmpvx7mjy9z.py", line 3, in <module>
ex=input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s758224145 | p02417 | u003762655 | 1450445452 | Python | Python3 | py | Runtime Error | 0 | 0 | 193 | sent=""
while True:
ex=input().lower()
print(ex)
sent+=ex
if ex.find('.')==1:
break
for i in range(ord("a"),ord("z")+1):
x=sent.count(chr(i))
print(chr(i),":",x) | Traceback (most recent call last):
File "/tmp/tmp549agbyn/tmpms6admz2.py", line 3, in <module>
ex=input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s105860976 | p02417 | u003762655 | 1450445491 | Python | Python3 | py | Runtime Error | 0 | 0 | 179 | sent=""
while True:
ex=input().lower()
sent+=ex
if ex.find('.')==1:
break
for i in range(ord("a"),ord("z")+1):
x=sent.count(chr(i))
print(chr(i),":",x) | Traceback (most recent call last):
File "/tmp/tmpwdcfpdz0/tmpikdfgupz.py", line 3, in <module>
ex=input().lower()
^^^^^^^
EOFError: EOF when reading a line
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.