s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time stringlengths 1 5 | memory stringlengths 1 7 | code_size stringlengths 1 6 | code stringlengths 1 539k |
|---|---|---|---|---|---|---|---|---|---|---|---|
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))
|
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))
|
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))
|
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))
|
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))
|
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))... |
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+" :... |
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))
|
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))
|
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]))
|
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]))
|
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... |
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)
|
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)
|
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)
|
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)
|
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))
|
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 ... |
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))
|
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))
|
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:... |
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:
... |
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)
|
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]))
|
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... |
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... |
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]))
|
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]))
|
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]))
|
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]))
|
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]))
|
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","... |
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]))
|
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))))
|
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))))
|
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))))
|
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))))
|
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])) |
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])) |
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] |
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]) |
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]) |
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)... |
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)... |
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)... |
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]... |
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... |
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)):
... |
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)):
... |
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)):
... |
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... |
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' |
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... |
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)]) |
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... |
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]) |
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]) |
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]) |
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]) |
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]) |
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]) |
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]) |
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)]) |
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 |
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) |
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')):
... |
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')):
... |
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... |
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])... |
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]) >= ... |
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... |
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') ... |
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]... |
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]... |
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]) >=... |
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]) |
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] ... |
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")]) |
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 ) ] ) )
|
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 ) ] ) ) |
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} : ... |
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]) |
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] |
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] |
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... |
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)]... |
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)]) |
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... |
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()
... |
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__':
????????... |
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;
} |
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))) |
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))) |
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... |
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... |
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... |
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... |
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) |
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) |
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) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.