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
s930385036
p02417
u104171359
1486965864
Python
Python3
py
Runtime Error
0
0
600
#!usr/bin/env python3 import sys def main(): letters = { '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, ...
s045418807
p02417
u639421643
1488283468
Python
Python3
py
Runtime Error
0
0
392
word = [chr(i) for i in range(97, 97+26)] word_number = [] line = "" while(1): temp_line = input() line += temp_line if temp_line =="": break for target in word: count = 0 for character in line: if character.lower() == target: count += 1 word_number.append(count) f...
s929271396
p02417
u130834228
1489113696
Python
Python3
py
Runtime Error
0
0
308
list_str2 = [0 for i in range(26)] while(1): list_str1 = list(input()) print(list_str1) if list_str1 == []: break for i in range(len(list_str1)): if 97 <= ord(list_str1[i].lower()) <= 122: list_str2[ord(list_str1[i].lower())-97] += 1 for i in range(26): print(chr(97+i)+' : '+str(list_str2[i]))
s336558736
p02417
u208157605
1491692489
Python
Python3
py
Runtime Error
0
0
285
alphabet = 'abcdefghijklmnopqrstuvwxyz' from collections import defaultdict adict = defaultdict(int) while True: str = '' str = input().lower() if len(str) == 0: break for c in str: adict[c] += 1 for k in alphabet: print('%s : %i' %(k, adict[k]))
s095841718
p02417
u208157605
1491692602
Python
Python3
py
Runtime Error
0
0
281
alphabet = 'abcdefghijklmnopqrstuvwxyz' from collections import defaultdict adict = defaultdict(int) while True: str_in = input().lower() if len(str_in) == 0: break for c in str_in: adict[c] += 1 for k in alphabet: print('%s : %i' %(k, adict[k]))
s582521746
p02417
u208157605
1491692928
Python
Python3
py
Runtime Error
40
7624
282
alphabet = 'abcdefghijklmnopqrstuvwxyz' from collections import defaultdict adict = defaultdict(int) while True: str_in = input().lower() for c in str_in: adict[c] += 1 if str_in[-1] == '.': break for k in alphabet: print('%s : %i' %(k, adict[k]))
s306670255
p02417
u208157605
1491693057
Python
Python3
py
Runtime Error
30
7552
282
alphabet = 'abcdefghijklmnopqrstuvwxyz' from collections import defaultdict adict = defaultdict(int) while True: str_in = input().lower() for c in str_in: adict[c] += 1 if str_in[-1] == '.': break for k in alphabet: print('%s : %i' %(k, adict[k]))
s419230478
p02417
u208157605
1491693187
Python
Python3
py
Runtime Error
30
7496
325
alphabet = 'abcdefghijklmnopqrstuvwxyz' from collections import defaultdict adict = defaultdict(int) while True: str_in = input().lower() for c in str_in: adict[c] += 1 try: if str_in[-1] == '.': break except: break for k in alphabet: print('%s : %i' %(k, adict...
s704096369
p02417
u208157605
1491693274
Python
Python3
py
Runtime Error
30
7484
325
alphabet = 'abcdefghijklmnopqrstuvwxyz' from collections import defaultdict adict = defaultdict(int) while True: str_in = input().lower() for c in str_in: adict[c] += 1 try: if str_in[-1] == '.': break except: break for k in alphabet: print('%s : %i' %(k, adict...
s929491950
p02417
u286589639
1492612044
Python
Python3
py
Runtime Error
0
0
355
array = input() char = ["" for _ in range(len(array))] for i in range(len(array)): char[i] = array[i:i+1] alp = [0 for _ in range(26)] for j in range(len(array)): for i in range(26): if char[j] == chr(i+ord("A")) or c == chr(i+ord("a")): alp[i] += 1 for i in range(26): print("{0} : {1...
s388477979
p02417
u286589639
1492644902
Python
Python3
py
Runtime Error
0
0
393
import sys array = [] for line in sys.stdin: array.append(line) char = ["" for _ in range(len(array))] for i in range(len(array)): char[i] = array[i:i+1] count = [0 for _ in range(26)] for c in char: for i in range(26): if c == chr(i+ord("A")) or c == chr(i+ord("a")): count[i] += 1 f...
s853122788
p02417
u286589639
1492645087
Python
Python3
py
Runtime Error
0
0
388
import sys array = "" for line in sys.stdin: array += line char = ["" for _ in range(len(array))] for i in range(len(array)): char[i] = array[i:i+1] count = [0 for _ in range(26)] for c in char: for i in range(26): if c == chr(i+ord("A")) or c == chr(i+ord("a")): count[i] += 1 for i ...
s445491123
p02417
u821624310
1496131328
Python
Python3
py
Runtime Error
0
0
430
a = [0 for i in range(26)] cnt = 0 while 1: S = input() if not S: break for i in S: if 65 <= ord(i) and ord(i) <= 90\ or 97 <= ord(i) and ord(i) <= 122: if 65 <= ord(i) and ord(i) <= 90: cnt = ord(i) - ord("A") else: cnt = ord(i...
s567644700
p02417
u821624310
1496131923
Python
Python3
py
Runtime Error
0
0
430
a = [0 for i in range(26)] cnt = 0 while 1: S = input() if not S: break for i in S: if 65 <= ord(i) and ord(i) <= 90\ or 97 <= ord(i) and ord(i) <= 122: if 65 <= ord(i) and ord(i) <= 90: cnt = ord(i) - ord("A") else: cnt = ord(i...
s464398009
p02417
u440180827
1496132266
Python
Python3
py
Runtime Error
0
0
274
count = {} from string import ascii_lowercase for c in ascii_lowercase: count[c] = 0 str = input() while str: sum = 0 for c in str: if c.isalpha(): count[c.lower()] += 1 str = input() for c in ascii_lowercase: print(c, ':', count[c])
s719417088
p02417
u821624310
1496135438
Python
Python3
py
Runtime Error
0
0
437
a = [0 for i in range(26)] cnt = 0 while True: S = input() if S == "-1": break for i in S: if 65 <= ord(i) and ord(i) <= 90\ or 97 <= ord(i) and ord(i) <= 122: if 65 <= ord(i) and ord(i) <= 90: cnt = ord(i) - ord("A") else: cnt ...
s690842194
p02417
u821624310
1496268748
Python
Python3
py
Runtime Error
0
0
276
a = [0 for i in range(26)] w = [] while 1: s = input() if s == "-1": break w.append(s) for i in w: for j in i: if j.isalnum(): c = ord(j.lower()) a[c-97] += 1 for i in range(26): print(chr(i+97) + " : " + str(a[i]))
s989440420
p02417
u821624310
1496271655
Python
Python3
py
Runtime Error
0
0
275
a = [0 for i in range(26)] w = [] while 1: s = input() if s == "-1": break w.append(s) for i in w: for j in i: if j.isalnum(): c = ord(j.lower()) a[c-97] += 1 for i in range(26): print(chr(i+97) + " : " + str(a[i]))
s125614755
p02417
u821624310
1496273109
Python
Python3
py
Runtime Error
0
0
254
a = [0 for i in range(26)] while 1: s = input() if s == "-1": break print(s) for i in s: if i.isalnum(): c = ord(i.lower()) a[c-97] += 1 for i in range(26): print(chr(i+97) + " : " + str(a[i]))
s048084558
p02417
u821624310
1496280099
Python
Python3
py
Runtime Error
0
0
179
import sys cnts = {} for line in imput(): for c in list(line.lower()): cnts[c] = cnts.get(c,0) + 1 for c in range(ord('a'),ord('z')+1): print(chr(c),':',cnts.get(chr(c),0))
s779167635
p02417
u654414650
1496295251
Python
Python3
py
Runtime Error
0
0
423
#coding:utf-8 import sys mo =" " moji_m ="" while mo != "": mo = input().rstrip() moji_m += mo moji = list(moji_m.lower()) moji_l = list("abcdefghijklmnopqrstuvwxyz") moji_c = [0 for i in range(26)] for i in moji: #??¢?????????????????????????????? if i.isalpha() == False: pass else: ...
s663362434
p02417
u650790815
1496635825
Python
Python3
py
Runtime Error
0
0
197
import sys,string lines = [] for line in sys.stdin: lines.append(line.lower().split()) text = ''.join(lines) for char in string.ascii_lowercase: print('{}:{}'.format(char,text.count(char)))
s640475282
p02417
u650790815
1496644164
Python
Python3
py
Runtime Error
0
0
130
s =''.join(inpu().lower().split()) import string for char in string.ascii_lowercase: print('{}:{}'.format(char,s.count(char)))
s073860001
p02417
u203261375
1497178418
Python
Python3
py
Runtime Error
0
0
235
charas = 'abcdefghijklmnopqrstuvwxyz' for line in sys.stdin: data.appen(line) for chara in chara: for row in data: cnt = row.count(chara) cnt += row.count(chara.upper()) print('{} : {}'.format(chara, cnt))
s000616357
p02417
u203261375
1497178926
Python
Python3
py
Runtime Error
0
0
246
import sys charas = 'abcdefghijklmnopqrstuvwxyz' for line in sys.stdin: data.appen(line) for chara in chara: for row in data: cnt = row.count(chara) cnt += row.count(chara.upper()) print('{} : {}'.format(chara, cnt))
s971286590
p02417
u203261375
1497179056
Python
Python3
py
Runtime Error
0
0
257
import sys charas = 'abcdefghijklmnopqrstuvwxyz' data = [] for line in sys.stdin: data.append(line) for chara in chara: for row in data: cnt = row.count(chara) cnt += row.count(chara.upper()) print('{} : {}'.format(chara, cnt))
s303421299
p02417
u821624310
1497444722
Python
Python3
py
Runtime Error
0
0
262
while True: S = input().lower() a = [0 for i in range(26)] for c in S: if ord(c) >= 97\ and ord(c) <= 122: i = ord(c) - 97 a[i] += 1 for i in range(26): print("{0} : {1}".format(chr(i + 97), a[i]))
s553112333
p02417
u821624310
1497448612
Python
Python3
py
Runtime Error
0
0
287
import sys while True: S = sys.stdin.readlines().lower() a = [0 for i in range(26)] for c in S: if ord(c) >= 97\ and ord(c) <= 122: i = ord(c) - 97 a[i] += 1 for i in range(26): print("{0} : {1}".format(chr(i + 97), a[i]))
s425615493
p02417
u299798926
1499301461
Python
Python3
py
Runtime Error
0
0
258
while 1 : x= [i for i in input()] s=[int(0) for i in range(26)] for i in range(len(x)): if 97<=ord(x[i].lower())<=122: s[ord(x[i].lower())-97]=s[ord(x[i].lower())-97]+1 for i in range(26): print(chr(97+i),":",s[i])
s138839159
p02417
u299798926
1499302662
Python
Python3
py
Runtime Error
0
0
272
s=[int(0) for i in range(26)] while 1: x=[i for i in input()] if not x: break for i in range(len(x)): if 97<=ord(x[i].lower())<=122: s[ord(x[i].lower())-97]=s[ord(x[i].lower())-97]+1 for i in range(26): print(chr(97+i),":",s[i])
s739013203
p02417
u299798926
1499303178
Python
Python3
py
Runtime Error
0
0
273
s=[int(0) for i in range(26)] while 1: x=[i for i in input()] if x==EOF: break for i in range(len(x)): if 97<=ord(x[i].lower())<=122: s[ord(x[i].lower())-97]=s[ord(x[i].lower())-97]+1 for i in range(26): print(chr(97+i),":",s[i])
s531191724
p02417
u299798926
1499399051
Python
Python3
py
Runtime Error
0
0
265
s=[int(0) for i in range(26)] x=input() while x: for i in range(len(list(x))): if 97<=ord(list(x)[i].lower())<=122: s[ord(list(x)[i].lower())-97]=s[ord(list(x)[i].lower())-97]+1 x=input() for i in range(26): print(chr(97+i),":",s[i])
s877989179
p02417
u299798926
1499400588
Python
Python3
py
Runtime Error
0
0
264
s=[int(0) for i in range(26)] for s in input(): x=input() for i in range(len(list(x))): if 97<=ord(list(x)[i].lower())<=122: s[ord(list(x)[i].lower())-97]=s[ord(list(x)[i].lower())-97]+1 for i in range(26): print(chr(97+i),":",s[i])
s199678813
p02417
u299798926
1499400818
Python
Python3
py
Runtime Error
0
0
316
s=[int(0) for i in range(26)] for s in input(): x=input() if x[len(list(x))-1]=='EOF': break for i in range(len(list(x))): if 97<=ord(list(x)[i].lower())<=122: s[ord(list(x)[i].lower())-97]=s[ord(list(x)[i].lower())-97]+1 for i in range(26): print(chr(97+i),":",s[i])
s647656710
p02417
u264972437
1499773038
Python
Python3
py
Runtime Error
0
0
266
from string import ascii_lowercase as letters data = '' while True: temp = input() if temp == '': break else: data += temp.lower() num = [data.count(s) for s in letters] ans = '\n'.join(['{0} : {1}'.format(s,n) for s,n in zip(list(letters),num)]) print(ans)
s614783850
p02417
u264972437
1499776433
Python
Python3
py
Runtime Error
0
0
266
from string import ascii_lowercase as letters data = '' while True: temp = input() if temp == '': break else: data += temp.lower() num = [data.count(s) for s in letters] ans = '\n'.join(['{0} : {1}'.format(s,n) for s,n in zip(list(letters),num)]) print(ans)
s540191075
p02417
u264972437
1499777057
Python
Python3
py
Runtime Error
0
0
266
from string import ascii_lowercase as letters data = '' while True: temp = input() if temp == '': break else: data += temp.lower() num = [data.count(s) for s in letters] ans = '\n'.join(['{0} : {1}'.format(s,n) for s,n in zip(list(letters),num)]) print(ans)
s454539987
p02417
u264972437
1499780921
Python
Python3
py
Runtime Error
0
0
266
from string import ascii_lowercase as letters data = '' while True: temp = input() if temp == '': break else: data += temp.lower() num = [data.count(s) for s in letters] ans = '\n'.join(['{0} : {1}'.format(s,n) for s,n in zip(list(letters),num)]) print(ans)
s062402617
p02417
u264972437
1499781990
Python
Python3
py
Runtime Error
0
0
283
from string import ascii_lowercase as letters data = '' while True: temp = input() if temp == '': break else: data += temp.lower() ''' num = [data.count(s) for s in letters] ans = '\n'.join(['{0} : {1}'.format(s,n) for s,n in zip(list(letters),num)]) print(ans) ''' print('')
s020169973
p02417
u582608581
1500160265
Python
Python3
py
Runtime Error
0
0
147
try: s = '' while True: s = s + input().lower() except EOFError: [print(chr(o)+' : '+str(s.count(chr(o)))) for o in range(ord('a'),ord('z')+1)]
s168024237
p02417
u663910047
1500268157
Python
Python3
py
Runtime Error
0
0
252
t="1" T="" while t is not "": t=input() T += t l=[chr(i) for i in range(97, 97+26)] L=[chr(i) for i in range(65, 65+26)] print (l,L) n=0 for i in range(len(L)): n = T.count(str(L[i]))+T.count(str(l[i])) print(str(l[i])+" : "+str(n))
s380476016
p02417
u914146430
1500362461
Python
Python3
py
Runtime Error
0
0
242
import sys input_line = sys.stdin.readline() ch=['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'] sl=input_line.lower() for c in ch: print("{} : {}".format(c,s.count(c)))
s526486775
p02417
u914146430
1500362644
Python
Python3
py
Runtime Error
0
0
238
import sys input_line = sys.stdin.read() ch=['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'] sl=input_line.lower() for c in ch: print("{} : {}".format(c,s.count(c)))
s159185146
p02417
u605879293
1500908381
Python
Python3
py
Runtime Error
0
0
176
from collections import Counter while True: c = Counter(input().lower()) if not c: break for i in iter("abcdefghijklmnopqrstuvwxyz"): print("{0} : {1}".format(i, c[i]))
s706506621
p02417
u605879293
1500908456
Python
Python3
py
Runtime Error
0
0
176
from collections import Counter while True: c = Counter(input().lower()) if not c: break for i in iter("abcdefghijklmnopqrstuvwxyz"): print("{0} : {1}".format(i, c[i]))
s471479661
p02417
u354053070
1501387201
Python
Python3
py
Runtime Error
0
0
165
import sys Target = "" for line in sys.stdin.readlines: Target += line.rstrip("\r\n") for i in range(26): print(chr(i + 97), ":", Target.count(chr(i + 97)))
s571147280
p02417
u821624310
1502329809
Python
Python3
py
Runtime Error
0
0
195
a = {chr(i): 0 for i in range(97, 123)} print(a) while 1: s = input().lower() for c in s: if c in a: a[c] += 1 for c in a: print("{} : {}".format(c, a[c]))
s613674036
p02417
u821624310
1502329983
Python
Python3
py
Runtime Error
0
0
186
a = {chr(i): 0 for i in range(97, 123)} while 1: s = input().lower() for c in s: if c in a: a[c] += 1 for c in a: print("{} : {}".format(c, a[c]))
s611144134
p02417
u954858867
1502791049
Python
Python
py
Runtime Error
0
0
264
l = 'abcdefghijklmnopqrstuvwxyz' mp = [0 for _ in list(l)] while True: in_data = list(filter(lambda x: 97 <= ord(x) <= 122 , raw_input().lower())) for s in in_data: mp[ord(s) - 97] += 1 for i,j in zip(l, mp): print "%s : %s" % (i, j)
s419693395
p02417
u283452598
1503196782
Python
Python3
py
Runtime Error
0
0
219
table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"} while True: x = input().lower() for i in x: if i in table2: table2[i] += 1 for m,n in table2.items(): print("{0} : {1}".format(m,n))
s846257687
p02417
u283452598
1503196810
Python
Python3
py
Runtime Error
0
0
251
table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"} while True: x = input().lower() if x == None: break for i in x: if i in table2: table2[i] += 1 for m,n in table2.items(): print("{0} : {1}".format(m,n))
s480599805
p02417
u283452598
1503196824
Python
Python3
py
Runtime Error
0
0
249
table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"} while True: x = input().lower() if x == "": break for i in x: if i in table2: table2[i] += 1 for m,n in table2.items(): print("{0} : {1}".format(m,n))
s161215050
p02417
u283452598
1503196931
Python
Python3
py
Runtime Error
0
0
249
table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"} while True: x = input().lower() if x == "": break for i in x: if i in table2: table2[i] += 1 for m,n in table2.items(): print("{0} : {1}".format(m,n))
s638766087
p02417
u283452598
1503197402
Python
Python3
py
Runtime Error
0
0
254
table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"} while True: x = str(input().lower()) if x == "": break for i in x: if i in table2: table2[i] += 1 for m,n in table2.items(): print("{0} : {1}".format(m,n))
s392774030
p02417
u283452598
1503197418
Python
Python3
py
Runtime Error
0
0
257
table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"} while True: x = str(input().lower()) if x == False: break for i in x: if i in table2: table2[i] += 1 for m,n in table2.items(): print("{0} : {1}".format(m,n))
s691352095
p02417
u283452598
1503197433
Python
Python3
py
Runtime Error
0
0
225
table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"} while x: x = str(input().lower()) for i in x: if i in table2: table2[i] += 1 for m,n in table2.items(): print("{0} : {1}".format(m,n))
s027122746
p02417
u283452598
1503197517
Python
Python3
py
Runtime Error
0
0
248
table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"} while True: x = input() if x == "": break for i in x.lower(): if i in table2: table2[i] += 1 for m,n in table2.items(): print("{0} : {1}".format(m,n))
s420906911
p02417
u283452598
1503197558
Python
Python3
py
Runtime Error
0
0
246
table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"} while True: x = input() if not x: break for i in x.lower(): if i in table2: table2[i] += 1 for m,n in table2.items(): print("{0} : {1}".format(m,n))
s995537427
p02417
u105694406
1504156490
Python
Python3
py
Runtime Error
0
0
399
import sys string = str() for line in sys.stdin: string += line.lower() string = input().lower() alph = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] for letter in alph: sum = 0 n = -1 while True: n = string.find(letter,...
s680843309
p02417
u956226421
1504757163
Python
Python3
py
Runtime Error
0
0
519
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'] cnt = 26 * [0] Input = "" while True: I = input() if I == '': break Input += I for i1 in range(len(alphabet)): for i2 in range(len(Input)): if '...
s715060826
p02417
u956226421
1504757574
Python
Python3
py
Runtime Error
20
7512
563
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'] cnt = 26 * [0] Input = "" loop = True while loop: I = input() for i in I: if i == '.': loop = False Input += I for i1 in range(len(alphabet)): ...
s328481640
p02417
u956226421
1504757733
Python
Python3
py
Runtime Error
0
0
563
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'] cnt = 26 * [0] Input = "" loop = True while loop: I = input() for i in I: if I == '.': loop = False Input += I for i1 in range(len(alphabet)): ...
s536316515
p02417
u956226421
1504757792
Python
Python3
py
Runtime Error
0
0
538
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'] cnt = 26 * [0] Input = "" loop = True while loop: I = input() if I == '': loop = False Input += I for i1 in range(len(alphabet)): for i2 in range(len(In...
s734825807
p02417
u956226421
1504757987
Python
Python3
py
Runtime Error
0
0
536
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'] cnt = 26 * [0] Input = "" loop = True while loop: I = input() if not I: loop = False Input += I for i1 in range(len(alphabet)): for i2 in range(len(Inpu...
s552633138
p02417
u666221014
1505101956
Python
Python3
py
Runtime Error
0
0
209
cnt_dict = { key:0 for key in "abcdefghijklmnopqrstuvwxyz"} string = input().lower() for i in string: if i == " ": continue cnt_dict[i] += 1 for i in cnt_dict: print( i + " : " + str(cnt_dict[i]) )
s129481401
p02417
u933096856
1505662252
Python
Python3
py
Runtime Error
0
0
1005
a=[0]*26 w='abcdefghijklmnopqrstuvwxyz' s=list(input().upper()) for i in s: if i=='A': a[0]+=1 elif i=='B': a[1]+=1 elif i=='C': a[2]+=1 elif i=='D': a[3]+=1 elif i=='E': a[4]+=1 elif i=='F': a[5]+=1 elif i=='G': a[6]+=1 elif i=='H'...
s088411410
p02417
u933096856
1505662597
Python
Python3
py
Runtime Error
0
0
2089
a=[0]*26 w='abcdefghijklmnopqrstuvwxyz' try: while True: s=list(input().upper()) for i in s: if i=='A': a[0]+=1 elif i=='B': a[1]+=1 elif i=='C': a[2]+=1 elif i=='D': a[3]+=1 e...
s651585372
p02417
u933096856
1505662641
Python
Python3
py
Runtime Error
0
0
1229
a=[0]*26 w='abcdefghijklmnopqrstuvwxyz' try: while True: s=list(input().upper()) for i in s: if i=='A': a[0]+=1 elif i=='B': a[1]+=1 elif i=='C': a[2]+=1 elif i=='D': a[3]+=1 e...
s294820832
p02417
u664228906
1507719502
Python
Python3
py
Runtime Error
0
0
217
import sys sentence = sys.stdin.read().lower() alf=[chr(i) for i in range(ord('a'), ord('z'))] ans=zip(alf, [0]*26) for a in sentence: if a in alf: alf[a] += 1 for key, val in alf: print(key + " : " + val)
s549824905
p02417
u664228906
1507719695
Python
Python3
py
Runtime Error
0
0
228
import sys sentence = sys.stdin.read().lower() alf=[chr(i) for i in range(ord('a'), ord('z'))] ans=zip(alf, [0]*26) for a in sentence: if a in alf: alf[a] += 1 for key, val in enumerate(alf): print(key + " : " + val)
s973837813
p02417
u664228906
1507719889
Python
Python3
py
Runtime Error
0
0
234
import sys sentence = sys.stdin.read().lower() alf=[chr(i) for i in range(ord('a'), ord('z'))] ans=list(zip(alf, [0]*26)) for a in sentence: if a in ans: ans[a] += 1 for key, val in enumerate(ans): print(key + " : " + val)
s741330238
p02417
u474232743
1508469985
Python
Python3
py
Runtime Error
0
0
229
alpha = (chr(i) for i in range(97, 97+26)) l = [] while True: s = list(input().lower()) if not s: break l += s count = {a:l.count(a) for a in alpha} for k in sorted(count): print('%c : %i' % (k, count[k]))
s111859819
p02417
u518939641
1510306912
Python
Python3
py
Runtime Error
30
7416
212
a=ord('a') rdif=range(ord('z')-a+1) l=[0 for _ in rdif] s='' while not '.' in s: s+=input().lower() for i in range(len(s)): if s[i].isalpha(): l[ord(s[i])-a]+=1 for i in rdif: print(chr(i+a),':',l[i])
s591987412
p02417
u518939641
1510307024
Python
Python3
py
Runtime Error
20
7420
212
a=ord('a') rdif=range(ord('z')-a+1) l=[0 for _ in rdif] s='' while not '.' in s: s+=input().lower() for i in range(len(s)): if s[i].isalpha(): l[ord(s[i])-a]+=1 for i in rdif: print(chr(i+a),':',l[i])
s298143481
p02417
u617472286
1510583934
Python
Python3
py
Runtime Error
0
0
257
alpha = 'abcdefghijklmnopqrstuvwxyz' m = {k:0 for k in alpha} while True: line = input() if not line: break; for s in line: s = s.lower() if s in m: m[s] += 1 for s in alpha: print('%s : %d' % (s, m[s]))
s984001867
p02417
u617472286
1510583952
Python
Python3
py
Runtime Error
0
0
257
alpha = 'abcdefghijklmnopqrstuvwxyz' m = {k:0 for k in alpha} while True: line = input() if not line: break; for s in line: s = s.lower() if s in m: m[s] += 1 for s in alpha: print('%s : %d' % (s, m[s]))
s722429771
p02417
u488038316
1511415117
Python
Python3
py
Runtime Error
0
0
451
# -*-coding:utf-8 import fileinput def main(): alphabetDict = {} for i,c in enumerate(range(ord('a'),ord('z')+1)): alphabetDict[chr(c)] = 0 inputChar = list(line.lower()) for i in inputChar: if(alphabetDict.get(i) != None): alphabetDict[i] += 1 else: ...
s536414164
p02417
u744506422
1511942673
Python
Python3
py
Runtime Error
0
0
252
st="." num = [0 for i in range(26)] while(st!=""): st=input().lower() for k in range(len(st)): if ord(st[k])<=122 and ord(st[k])>=97: num[ord(st[k])-97]+=1 for i in range(26): print("{0} : {1}".format(chr(i+97),num[i]))
s050345815
p02417
u744506422
1511942728
Python
Python3
py
Runtime Error
0
0
252
st="." num = [0 for i in range(26)] while(st!=""): st=input().lower() for k in range(len(st)): if ord(st[k])<=122 and ord(st[k])>=97: num[ord(st[k])-97]+=1 for i in range(26): print("{0} : {1}".format(chr(i+97),num[i]))
s140494281
p02417
u150984829
1513232666
Python
Python3
py
Runtime Error
20
5572
111
while 1: a=list(input().lower()) [print(chr(97+i),':',a.count(chr(97+i)))for i in range(26)] if'.'in a:break
s328898708
p02417
u017523606
1514618593
Python
Python3
py
Runtime Error
0
0
190
while True: words = input() if words == EOF: break words = words.lower() for i in [chr(i) for i in range(97,97+26)]: print('{0}:{1}'.format(i,words.count(i)))
s568160608
p02417
u017523606
1514618718
Python
Python3
py
Runtime Error
0
0
224
while True: try: words = input() if words words = words.lower() for i in [chr(i) for i in range(97,97+26)]: print('{0}:{1}'.format(i,words.count(i))) except: break
s866583917
p02417
u426534722
1515772581
Python
Python3
py
Runtime Error
0
0
150
import sys from collections import Counter m = Counter(sys.stdin.readlines().lower()) for i in 'abcdefghijklmnopqrstuvwxyz': print(i, ":", m[i])
s073729752
p02417
u426534722
1515772651
Python
Python3
py
Runtime Error
0
0
168
import sys from collections import Counter m = Counter(sys.stdin.readlines().replace("\n", "").lower()) for i in 'abcdefghijklmnopqrstuvwxyz': print(i, ":", m[i])
s773618779
p02417
u426534722
1515772818
Python
Python3
py
Runtime Error
0
0
162
import sys from collections import Counter S = "" for s in sys.stdin(): S += s m = Counter(S) for i in 'abcdefghijklmnopqrstuvwxyz': print(i, ":", m[i])
s208673774
p02417
u426534722
1515773015
Python
Python3
py
Runtime Error
0
0
121
s = sys.stdin.readlines().replace("\n", "").lower() for i in 'abcdefghijklmnopqrstuvwxyz': print(i, ":", s.count(i))
s195314979
p02417
u426534722
1515773027
Python
Python3
py
Runtime Error
0
0
132
import sys s = sys.stdin.readlines().replace("\n", "").lower() for i in 'abcdefghijklmnopqrstuvwxyz': print(i, ":", s.count(i))
s575758102
p02417
u426534722
1515773040
Python
Python3
py
Runtime Error
0
0
114
import sys s = sys.stdin.readlines().lower() for i in 'abcdefghijklmnopqrstuvwxyz': print(i, ":", s.count(i))
s223630705
p02417
u426534722
1515773748
Python
Python3
py
Runtime Error
0
0
149
import sys from collections import Counter m = Counter(sys.stdin.readlines().lower()) for i in 'abcdefghijklmnopqrstuvwxyz': print(i, ":", m[i])
s946280702
p02417
u426534722
1515773761
Python
Python3
py
Runtime Error
0
0
147
import sys from collections import Counter m = Counter(sys.stdin.readlines.lower()) for i in 'abcdefghijklmnopqrstuvwxyz': print(i, ":", m[i])
s900646841
p02417
u426534722
1515773768
Python
Python3
py
Runtime Error
0
0
142
import sys from collections import Counter m = Counter(sys.stdin.read.lower()) for i in 'abcdefghijklmnopqrstuvwxyz': print(i, ":", m[i])
s829338737
p02417
u661529494
1515997413
Python
Python3
py
Runtime Error
0
0
353
import sys string = str() for line in sys.stdin: string += line.lower() alph = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] for letter in alph: sum = 0 n = -1 while True: n = string.find(letter, n + 1) if n == -1: break sum += 1 print...
s181819760
p02417
u661529494
1515997492
Python
Python3
py
Runtime Error
0
0
147
s = '' while True: try: s += input().lower() except EOFError: break for c in 'abcdefghijklmnopqrstuvwxyz': print('{} : {}'.format(c, s.count(c)))
s721199089
p02417
u146752763
1516704316
Python
Python
py
Runtime Error
0
0
282
# coding:utf-8 a = list(raw_input().split().lower()) dict = {} for i in range(26): dict[chr(ord('a')+i)] = 0 for i in a: for key,value in dict.items(): if key == i: dict[key] += 1 for key,value in sorted(dict.items()): print "%s : %d" % (key,value)
s951943533
p02417
u770698847
1516860226
Python
Python
py
Runtime Error
0
0
366
# coding: UTF-8 alfa_list = [chr(i) for i in range(97, 97+26)] count_list = [] lines = [] while(1): read_line = raw_input() if read_line == '': break lines.append(read_line) char_line = str(lines).lower() for ch in alfa_list: count_list.append(char_line.count(ch)) for i in range(26): print "...
s953636429
p02417
u088372268
1517292408
Python
Python3
py
Runtime Error
0
0
368
char_list = [] while(True): str_in = input() if str_in=="": break char_list.append([i for i in str_in.lower()]) char_dict = {i:0 for i in "abcdefghijklmnopqrstuvwxyz"} for i in range(len(char_list)): for j in char_list[i]: if j in char_dict: char_dict[j] += 1 for i in char_di...
s393873469
p02417
u088372268
1517294122
Python
Python3
py
Runtime Error
0
0
445
#! usr/bin/env python # coding: utf-8 char_list = [] while(True): str_in = input() if str_in=="": break char_list.append([i for i in str_in.lower()]) # print(char_list) char_dict = {i:0 for i in "abcdefghijklmnopqrstuvwxyz"} for i in range(len(char_list)): for j in char_list[i]: if j in...
s734502062
p02417
u179070318
1517646700
Python
Python3
py
Runtime Error
0
0
163
word = '' while True: w = input().lower() if w == '': break else: word += w for a in alphabet: print(a+':'+str(word.count(a)))
s241640401
p02417
u313021086
1518626997
Python
Python3
py
Runtime Error
0
0
267
string = [] while 1: data = input().lower() if(data is ""): break else: string += data abc = [chr(i) for i in range(97, 97 + 26)] cnt = [0 for i in range(0, 26)] i = 0 while i < 26: cnt[i] = string.count(abc[i]) print(abc[i] + " : " + str(cnt[i])) i += 1
s257590004
p02417
u313021086
1518627094
Python
Python3
py
Runtime Error
0
0
267
string = [] while 1: data = input().lower() if(data is ""): break else: string += data abc = [chr(i) for i in range(97, 97 + 26)] cnt = [0 for i in range(0, 26)] i = 0 while i < 26: cnt[i] = string.count(abc[i]) print(abc[i] + " : " + str(cnt[i])) i += 1