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
s489160460
p02417
u780025254
1519223842
Python
Python3
py
Runtime Error
0
0
261
import sys alist = list('abcdefghijklmnopqrstuvwxyz') r = {} for al in alist: r[al] = 0 line = sys.stdin.read().lower for i in range(len(line)): if line[i] in r.keys(): r[line[i]] += 1 for k,v in r.items(): print("{} : {}".format(k, v))
s826928172
p02417
u508054630
1520537478
Python
Python3
py
Runtime Error
0
0
433
s = '' while True: s0 = input() if s0 == '': break else: s += s0 small = 'abcdefghijklmnopqrstuvwxyz' large = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' ans = '' count = [0] * 26 for i in s: q = 0 while q < 26: if i == small[q] or i == large[q]: count[q] += 1 break ...
s776786756
p02417
u886729200
1522890353
Python
Python3
py
Runtime Error
0
0
262
import string as st from msvcrt import getch string=[] while True: s = input() if s == '': break string.append(s) for i in range(len(st.ascii_lowercase)): print("{} : {}".format(st.ascii_lowercase[i],string.count(st.ascii_lowercase[i])))
s290989521
p02417
u886729200
1522890697
Python
Python3
py
Runtime Error
0
0
293
import string as st string=[] while True: s = input() if s == '': break string.append(s) string=','.join(string) string = string.lower() for i in range(len(st.ascii_lowercase)): print("{} : {}".format(st.ascii_lowercase[i],string.count(st.ascii_lowercase[i])))
s984281079
p02417
u886729200
1522891329
Python
Python3
py
Runtime Error
0
0
318
import string as st string=[] while True: s = input() string =list(string) if s == '': break string.append(s) string=','.join(string) string = string.lower() for i in range(len(st.ascii_lowercase)): print("{} : {}".format(st.ascii_lowercase[i],string.count(st.ascii_lowercase[i])))
s540687388
p02417
u886729200
1522894320
Python
Python3
py
Runtime Error
0
0
514
import string as st string=[] low_s=[] while True: s = input()#入力 print("s =",s) string =list(string)#list変換 if s == '':#空入力のときループぬける break string.extend(s)#list追加 #print(string) string=map(str,string) string="".join(string) print(string) #print(type(string)) low_s= s...
s810580145
p02417
u886729200
1522895508
Python
Python3
py
Runtime Error
0
0
432
import string as st string=[] low_s=[] while True: s = input()#入力 string =list(string)#list変換 if not s :#空入力のときループぬける break string.extend(s)#list追加 string=map(str,string) string="".join(string) low_s= string.lower() print(low_s) for i in range(len(st.ascii_lowercase)): print(...
s265346259
p02417
u095590628
1523732649
Python
Python3
py
Runtime Error
0
0
279
from collections import OrderedDict as od dic = od() for s in "abcdefghijklmnopqrstuvwxyz": dic[s] = 0 x = "" while True: try: x += line except EOFError: break for key,value in dic.items(): value = x.count(key) print(key, ":", value)
s424725853
p02417
u682153677
1523791710
Python
Python3
py
Runtime Error
0
0
451
# -*- coding: utf-8 -*- while True: word = list(map(str, input())) if not word: break while ' ' in word: word.remove(' ') while '.' in word: word.remove('.') char = {} for i in range(ord('a'), ord('z') + 1): char[chr(i)] = 0 for j in range(len(word)): ...
s770091108
p02417
u682153677
1523792321
Python
Python3
py
Runtime Error
0
0
491
# -*- coding: utf-8 -*- word = list(map(str, input())) while True: ad_word = list(map(str, input())) if not ad_word: break else: word.append(ad_word) while ' ' in word: word.remove(' ') while '.' in word: word.remove('.') char = {} for i in range(ord('a'), ord('z') + 1): cha...
s603454617
p02417
u682153677
1523792356
Python
Python3
py
Runtime Error
0
0
491
# -*- coding: utf-8 -*- word = list(map(str, input())) while True: ad_word = list(map(str, input())) if not ad_word: break else: word.append(ad_word) while ' ' in word: word.remove(' ') while '.' in word: word.remove('.') char = {} for i in range(ord('a'), ord('z') + 1): cha...
s076257694
p02417
u682153677
1523848043
Python
Python3
py
Runtime Error
0
0
491
# -*- coding: utf-8 -*- word = list(map(str, input())) while True: ad_word = list(map(str, input())) if not ad_word: break else: word.append(ad_word) while ' ' in word: word.remove(' ') while '.' in word: word.remove('.') char = {} for i in range(ord('a'), ord('z') + 1): cha...
s752920576
p02417
u682153677
1524031550
Python
Python3
py
Runtime Error
0
0
492
# -*- coding: utf-8 -*- word = list(map(str, input())) while True: ad_word = list(map(str, input())) if ad_word == 0: break else: word.append(ad_word) while ' ' in word: word.remove(' ') while '.' in word: word.remove('.') char = {} for i in range(ord('a'), ord('z') + 1): ch...
s375077256
p02417
u682153677
1524031686
Python
Python3
py
Runtime Error
0
0
491
# -*- coding: utf-8 -*- word = list(map(str, input())) while True: ad_word = list(map(str, input())) if not ad_word: break else: word.append(ad_word) while ' ' in word: word.remove(' ') while '.' in word: word.remove('.') char = {} for i in range(ord('a'), ord('z') + 1): cha...
s800405817
p02417
u682153677
1524031738
Python
Python3
py
Runtime Error
0
0
491
# -*- coding: utf-8 -*- word = list(map(str, input())) while True: ad_word = list(map(str, input())) if not ad_word: break else: word.append(ad_word) while ' ' in word: word.remove(' ') while '.' in word: word.remove('.') char = {} for i in range(ord('a'), ord('z') + 1): cha...
s627929756
p02417
u126478680
1524677348
Python
Python3
py
Runtime Error
0
0
359
#! python3 # counting_characters.py import sys sents = [] for line in sys.stdin: sents.append(input()) dic = {chr(x):0 for x in range(ord('a'), ord('z')+1)} for sent in sents: for c in sent: x = c.lower() if ord('a') <= ord(x) and ord(x) <= ord('z'): dic[x] += 1 for k, v in dic....
s178096934
p02417
u806005289
1525420953
Python
Python3
py
Runtime Error
20
5588
2220
sa=0 sb=0 sc=0 sd=0 se=0 sf=0 sg=0 sh=0 si=0 sj=0 sk=0 sl=0 sm=0 sn=0 so=0 sp=0 sq=0 sr=0 ss=0 st=0 su=0 sv=0 sw=0 sx=0 sy=0 sz=0 while True: li=list(input()) for lis in li: if lis=="a" or lis=="A": sa+=1 elif lis=="b" or lis=="B": sb+=1 elif lis=="c" or lis=="C"...
s339986622
p02417
u592529978
1525838880
Python
Python
py
Runtime Error
0
0
618
Sp = [1,2,3,4,5,6,7,8,9,10,11,12,13] Hu = [1,2,3,4,5,6,7,8,9,10,11,12,13] Cr = [1,2,3,4,5,6,7,8,9,10,11,12,13] Dy = [1,2,3,4,5,6,7,8,9,10,11,12,13] num = int(input()) i = 0 while i < num: suit, n = raw_input().split() n = int(n) if suit == "S": Sp[n-1] = 0 elif suit == "H": Hu[n-...
s655631894
p02417
u908651435
1525853906
Python
Python3
py
Runtime Error
0
0
229
import sys str=[] for line in sys.stdin: str.append(line) s=''.join(str).lower s=list(s) for i in range(97, 97 + 26): count = 0 for j in s: if chr(i) == j: count += 1 print(chr(i), ':', count)
s739900387
p02417
u908651435
1525854218
Python
Python3
py
Runtime Error
0
0
229
import sys str=[] for line in sys.stdin: str.append(line) s=''.join(str).lower s=list(s) for i in range(97, 97 + 26): count = 0 for j in s: if chr(i) == j: count += 1 print(chr(i), ':', count)
s598582393
p02417
u485986915
1525860296
Python
Python3
py
Runtime Error
0
0
186
import sys table = "abcdefghijklmnopqrstuvwxyz" sentence = '' for line in sys.stdin: sentence += str(input().lower()) for i in table: print(i + " : " + str(sentence.count(i)))
s380081495
p02417
u485986915
1525861001
Python
Python3
py
Runtime Error
0
0
170
import sys table = "abcdefghijklmnopqrstuvwxyz" sentence = sys.stdin.read() sentence1 = sentence.lower() for i in table: print(i + ' : ' + str(sentence1.count(i))
s765300560
p02417
u485986915
1525861159
Python
Python3
py
Runtime Error
0
0
174
import sys table = "abcdefghijklmnopqrstuvwxyz" sentence = sys.stdin.read() sentence1 = str(entence.lower()) for i in table: print(i + ' : ' + str(sentence1.count(i))
s462433598
p02417
u485986915
1525861203
Python
Python3
py
Runtime Error
0
0
174
import sys table = "abcdefghijklmnopqrstuvwxyz" sentence = sys.stdin.read() sentence1 = str(entence.lower()) for i in table: print(i + ' : ' + str(sentence1.count(i)))
s769436407
p02417
u313089641
1526404196
Python
Python3
py
Runtime Error
0
0
248
import string sen = input().lower() char_dic = {i:0 for i in string.ascii_lowercase} for j in sen: if j in char_dic: char_dic[j] += 1 else: pass for k in string.ascii_letters: print("{} : {}".format(k, char_dic[k]))
s316739482
p02417
u908651435
1526757860
Python
Python3
py
Runtime Error
0
0
204
str=input().split() s=''.join(str).lower s=list(s) for i in range(97, 97 + 26): count = 0 for j in s: if chr(i) == j: count += 1 print(chr(i), ':', count) print('No')
s220543435
p02417
u604437890
1526892256
Python
Python3
py
Runtime Error
0
0
222
a_dict = {chr(a): 0 for a in range(97, 123)} while True: S = input().lower() for c in S: if c in a_dict: a_dict[c] += 1 for k, v in a_dict.items(): print('{0} : {1}'.format(k, v))
s106672646
p02417
u604437890
1526893125
Python
Python3
py
Runtime Error
0
0
242
a_dict = {chr(a): 0 for a in range(97, 123)} while True: S = input().lower() if not S: break for c in S: if c in a_dict: a_dict[c] += 1 for k, v in a_dict.items(): print('{0} : {1}'.format(k, v))
s688351173
p02417
u604437890
1526893582
Python
Python3
py
Runtime Error
0
0
242
a_dict = {chr(a): 0 for a in range(97, 123)} while True: S = input().lower() if not S: break for c in S: if c in a_dict: a_dict[c] += 1 for k, v in a_dict.items(): print('{0} : {1}'.format(k, v))
s874724139
p02417
u604437890
1526894333
Python
Python3
py
Runtime Error
0
0
256
a_dict = {chr(a): 0 for a in range(97, 123)} while True: S = input().lower() '''if not S: break''' for c in S: if c in a_dict: a_dict[c] += 1 for k, v in a_dict.items(): print('{0} : {1}'.format(k, v))
s702097423
p02417
u604437890
1526894655
Python
Python3
py
Runtime Error
0
0
242
a_dict = {chr(a): 0 for a in range(97, 123)} while True: S = input().lower() if not S: break for c in S: if c in a_dict: a_dict[c] += 1 for k, v in a_dict.items(): print('{0} : {1}'.format(k, v))
s339448048
p02417
u604437890
1526894719
Python
Python3
py
Runtime Error
0
0
242
a_dict = {chr(a): 0 for a in range(97, 123)} while True: S = input().lower() if not S: break for c in S: if c in a_dict: a_dict[c] += 1 for k, v in a_dict.items(): print('{0} : {1}'.format(k, v))
s356376744
p02417
u986478725
1527338963
Python
Python3
py
Runtime Error
0
0
500
# AOJ ITP1_8_C def numinput(): a = input().split() for i in range(len(a)): a[i] = int(a[i]) return a def main(): counts = [] for i in range(26): counts.append(0) string = input() for c in range(len(string)): if 97 <= ord(c) <= 122: counts[ord(c) - 97] += 1 ...
s086253411
p02417
u986478725
1527339249
Python
Python3
py
Runtime Error
0
0
557
# AOJ ITP1_8_C def numinput(): a = input().split() for i in range(len(a)): a[i] = int(a[i]) return a def main(): counts = [] for i in range(26): counts.append(0) while(string = input()): for c in string: if 97 <= ord(c) <= 122: counts[ord(c) - 97] +...
s161414586
p02417
u986478725
1527339321
Python
Python3
py
Runtime Error
0
0
574
# AOJ ITP1_8_C def numinput(): a = input().split() for i in range(len(a)): a[i] = int(a[i]) return a def main(): counts = [] for i in range(26): counts.append(0) while(string = input()): for i in len(string): c = string[i] if 97 <= ord(c) <= 122: ...
s959834428
p02417
u986478725
1527339608
Python
Python3
py
Runtime Error
0
0
646
# AOJ ITP1_8_C import sys def numinput(): a = input().split() for i in range(len(a)): a[i] = int(a[i]) return a def main(): counts = [] for i in range(26): counts.append(0) text = sys.stdin.readlines() for i in range(len(text)): string = text[i] for k in len(strin...
s781770741
p02417
u986478725
1527339827
Python
Python3
py
Runtime Error
0
0
634
# AOJ ITP1_8_C import sys def numinput(): a = input().split() for i in range(len(a)): a[i] = int(a[i]) return a def main(): counts = [] for i in range(26): counts.append(0) while True: string = input() if !string[0]: break for k in range(len(string)): ...
s133103935
p02417
u986478725
1527339987
Python
Python3
py
Runtime Error
0
0
680
# AOJ ITP1_8_C import sys def numinput(): a = input().split() for i in range(len(a)): a[i] = int(a[i]) return a def main(): counts = [] for i in range(26): counts.append(0) while True: string = input() if not len(string): break # 長さが0のstringが来たら終了 for k in ra...
s266398852
p02417
u986478725
1527340211
Python
Python3
py
Runtime Error
0
0
669
# AOJ ITP1_8_C def numinput(): a = input().split() for i in range(len(a)): a[i] = int(a[i]) return a def main(): counts = [] for i in range(26): counts.append(0) while True: string = input() if not len(string): break # 長さが0のstringが来たら終了 for k in range(len(str...
s103528813
p02417
u657361950
1527991193
Python
Python3
py
Runtime Error
0
0
274
counts = [0] * 26 while True: s = str(input()) if s == '': break for c in s: o = ord(c) if o >= 65 and o <= 90: counts[o - 65] += 1 elif o >= 97 and o <= 122: counts[o - 97] += 1 for i in range(len(counts)): print(chr(i + 97) + ' : ' + str(counts[i]))
s893115486
p02417
u117053676
1528262700
Python
Python3
py
Runtime Error
0
0
246
import sys inp = sys.stdin() counter = {} for text in inp: for a in text: a = a.lower() counter[a] = counter.get(a,0) + 1 for x in range(26): a = chr(ord('a')+x) print("{0} : {1}".format(a,counter.get(a,0)),sep='')
s790986730
p02417
u117053676
1528262760
Python
Python3
py
Runtime Error
0
0
246
import sys inp = sys.stdin() counter = {} for text in inp: for a in text: a = a.lower() counter[a] = counter.get(a,0) + 1 for x in range(26): a = chr(ord('a')+x) print("{0} : {1}".format(a,counter.get(a,0)),sep='')
s061322115
p02417
u929141425
1528550907
Python
Python3
py
Runtime Error
0
0
241
a = [chr(i) for i in range(97,97+26)] c = [ 0 for x in range(26)] while 1: b = list(input().lower()) for z,x in enumerate(a): for y in b: if y == x: c[z] += 1 print(f"{x} : {str(c[z])}")
s669904632
p02417
u929141425
1528802799
Python
Python3
py
Runtime Error
0
0
388
n = int(input()) T = H = 0 for x in range(n): t, h = input().split() tl = list(t) hl = list(h) for k,y in enumerate(tl): if ord(tl[k]) > ord(hl[k]): T += 3 break elif ord(tl[k]) == ord(hl[k]): pass else: H += 3 break ...
s855504311
p02417
u248424983
1529039664
Python
Python3
py
Runtime Error
0
0
92
s = input() p = input() ret = 'No' tts = s + s[:len(p)] if p in tts: ret = 'Yes' print(ret)
s324143930
p02417
u248424983
1529039733
Python
Python3
py
Runtime Error
0
0
70
n = input().lower() li=[chr(i) for i in range(97,97+26)] for a in li:
s594072373
p02417
u922112509
1529305135
Python
Python3
py
Runtime Error
0
0
457
# Counting Characters import sys charList = list('abcdefghijklmnopqrstuvwxyz') lines = sys.stdin.readlines() totalSentence = [] for s in range(lines): sentence = list(input().rstrip().lower()) # print(sentence) for c in range(sentence): totalSentence.append(c) for char in charList: count = 0 ...
s672102830
p02417
u932203900
1529398488
Python
Python3
py
Runtime Error
0
0
195
import sys s = "" while 1 : si = input().strip().lower() if si == "" : break else : s += si [print(i+" : "+str(s.count(i))) for i in "abcdefghijklmnopqrstuvwxyz"]
s040989036
p02417
u940667355
1530166273
Python
Python3
py
Runtime Error
0
0
497
if __name__ == "__main__": alphabetical_table = {} for i in range(ord("a"),ord("z")+1): alphabetical_table[chr(i)] = 0 input_word = input() while input_word: input_word = input_word.lower() for ch in input_word: if ch.isalpha() == True: alphabetic...
s485423696
p02417
u940667355
1530166417
Python
Python3
py
Runtime Error
0
0
484
if __name__ == "__main__": alphabetical_table = {} for i in range(ord("a"),ord("z")+1): alphabetical_table[chr(i)] = 0 input_word = input() while input_word: input_word = input_word.lower() for ch in input_word: if ch.isalpha() == True: alphabetic...
s607083452
p02417
u940667355
1530169254
Python
Python3
py
Runtime Error
0
0
493
if __name__ == "__main__": alphabetical_table = {} for i in range(ord("a"),ord("z")+1): alphabetical_table[chr(i)] = 0 input_word = input() while input_word: input_word = input_word.lower() for ch in input_word: if ch.isalpha() == True: alphabetic...
s936959009
p02417
u940667355
1530170869
Python
Python3
py
Runtime Error
0
0
476
if __name__ == "__main__": alphabetical_table = {} for i in range(ord("a"),ord("z")+1): alphabetical_table[chr(i)] = 0 while True: input_word = input() if not input_word: break input_word = input_word.lower() for ch in input_word: if ch.i...
s490775540
p02417
u940667355
1530171450
Python
Python3
py
Runtime Error
0
0
483
if __name__ == "__main__": while True: input_word = input() if not input_word: break alphabetical_table = {} for i in range(ord("a"),ord("z")+1): alphabetical_table[chr(i)] = 0 input_word = input_word.lower() for ch in input_word: ...
s073740287
p02417
u912237403
1371247659
Python
Python
py
Runtime Error
0
0
177
s = [] while True: x = raw_input() if x == '': break s.append(x.lower()) s = ''.join(s) for i in range(26): c = chr(i + 97) print '%s : %d' %(c, s.count(c))
s331764829
p02417
u912237403
1371247713
Python
Python
py
Runtime Error
0
0
179
s = [] while True: x = raw_input() if x == None: break s.append(x.lower()) s = ''.join(s) for i in range(26): c = chr(i + 97) print '%s : %d' %(c, s.count(c))
s676293842
p02417
u912237403
1371248420
Python
Python
py
Runtime Error
0
0
177
s = [] while True: x = raw_input() if x == '': break s.append(x.lower()) s = ''.join(s) for i in range(26): c = chr(i + 97) print '%s : %d' %(c, s.count(c))
s070858214
p02417
u351182591
1375266751
Python
Python
py
Runtime Error
0
0
168
t=list(raw_input().lower()) c=[0 for i in range(26)] for i in range(len(t)): c[ord(t[i])-ord("a")]+=1 for i in range(26): print chr(ord("a")+i),":",c[i]
s375723642
p02417
u351182591
1375266915
Python
Python
py
Runtime Error
0
0
169
t=list(raw_input().lower()) c=[0 for i in range(26)] for i in range(len(t)): c[ord(t[i])-ord(u"a")]+=1 for i in range(26): print chr(ord("a")+i),":",c[i]
s474600922
p02417
u140201022
1382371225
Python
Python
py
Runtime Error
0
0
211
import sys import io import re import math start = time.clock() i = [0]*255 #n = raw_input() for x in sys.stdin.read().lower: i[ord(x)]+=1 for y in xrange(ord('a'), ord('z')+1): print chr(y)+ ' : ' +i[y]
s299204363
p02417
u140201022
1382371257
Python
Python
py
Runtime Error
0
0
191
import sys import io import re import math i = [0]*255 #n = raw_input() for x in sys.stdin.read().lower: i[ord(x)]+=1 for y in xrange(ord('a'), ord('z')+1): print chr(y)+ ' : ' +i[y]
s095060555
p02417
u140201022
1382371448
Python
Python
py
Runtime Error
0
0
211
import sys import io import re import math #start = time.clock() i = [0]*127 #n = raw_input() for x in sys.stdin.read().lower: i[ord(x)]+=1 for y in range(ord('a'), ord('z')+1): print chr(y)+ ' : ' +i[y]
s501996428
p02417
u231998559
1386746169
Python
Python
py
Runtime Error
0
0
471
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]] while True: s = raw_input() if s == '': break ...
s724302937
p02417
u633068244
1393331301
Python
Python
py
Runtime Error
0
0
412
az = ["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"] sum_az = [0 for x in range(26)] while True: x = raw_input() x.lower() for i in range(26): for j in range(len(x)): if x[j] == az[i]: sum_az[i] += 1 if !x: ...
s644929957
p02417
u633068244
1393331359
Python
Python
py
Runtime Error
0
0
419
az = ["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"] sum_az = [0 for x in range(26)] while True: x = raw_input() x.lower() for i in range(26): for j in range(len(x)): if x[j] == az[i]: sum_az[i] += 1 if x is N...
s146373363
p02417
u633068244
1393331430
Python
Python
py
Runtime Error
0
0
419
az = ["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"] sum_az = [0 for x in range(26)] while True: x = raw_input() x.lower() for i in range(26): for j in range(len(x)): if x[j] == az[i]: sum_az[i] += 1 if x is N...
s058742167
p02417
u633068244
1393331493
Python
Python
py
Runtime Error
0
0
420
az = ["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"] sum_az = [0 for x in range(26)] while True: if x is None: break x = raw_input() x.lower() for i in range(26): for j in range(len(x)): if x[j] == az[i]: ...
s376622702
p02417
u633068244
1393331554
Python
Python
py
Runtime Error
0
0
416
az = ["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"] sum_az = [0 for x in range(26)] while True: if not x: break x = raw_input() x.lower() for i in range(26): for j in range(len(x)): if x[j] == az[i]: ...
s449739249
p02417
u633068244
1393331573
Python
Python
py
Runtime Error
0
0
389
az = ["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"] sum_az = [0 for x in range(26)] while True: x = raw_input() x.lower() for i in range(26): for j in range(len(x)): if x[j] == az[i]: sum_az[i] += 1 for i in r...
s672871416
p02417
u633068244
1393331599
Python
Python
py
Runtime Error
0
0
416
az = ["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"] sum_az = [0 for x in range(26)] while True: x = raw_input() if not x: break x.lower() for i in range(26): for j in range(len(x)): if x[j] == az[i]: ...
s432317082
p02417
u633068244
1393331615
Python
Python
py
Runtime Error
0
0
416
az = ["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"] sum_az = [0 for x in range(26)] while True: x = raw_input() if not x: break x.lower() for i in range(26): for j in range(len(x)): if x[j] == az[i]: ...
s283916594
p02417
u633068244
1393331680
Python
Python
py
Runtime Error
0
0
413
az = ["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"] sum_az = [0 for x in range(26)] while True: x = raw_input() if x: break x.lower()f for i in range(26): for j in range(len(x)): if x[j] == az[i]: sum...
s554598742
p02417
u633068244
1393331694
Python
Python
py
Runtime Error
0
0
388
az = ["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"] sum_az = [0 for x in range(26)] while True: x = raw_input() x.lower() for i in range(26): for j in range(len(x)): if x[j] == az[i]: sum_az[i] += 1 for i in ra...
s548762418
p02417
u633068244
1393331989
Python
Python
py
Runtime Error
0
0
386
import sys az =["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"] sum_az = [0 for x in range(26)] for x in sys.stdin.read().lower() for i in range(26): for j in range(len(x)): if x[j] == az[i]: sum_az[i] += 1 for i in rang...
s483082223
p02417
u633068244
1393332015
Python
Python
py
Runtime Error
0
0
396
import sys import io az =["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"] sum_az = [0 for x in range(26)] for x in sys.stdin.read().lower() for i in range(26): for j in range(len(x)): if x[j] == az[i]: sum_az[i] += 1 for...
s533928115
p02417
u633068244
1393332029
Python
Python
py
Runtime Error
0
0
406
import sys import io import re az =["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"] sum_az = [0 for x in range(26)] for x in sys.stdin.read().lower() for i in range(26): for j in range(len(x)): if x[j] == az[i]: sum_az[i] ...
s175966264
p02417
u633068244
1393332079
Python
Python
py
Runtime Error
0
0
367
import sys import io import re az =["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"] sum_az = [0 for x in range(26)] for x in sys.stdin.read().lower() for i in range(26): if x == az[i]: sum_az[i] += 1 for i in range(26): print ("...
s552742600
p02417
u436634575
1400722459
Python
Python3
py
Runtime Error
0
0
162
s = '' while True: t = input() if len(t) == 0: break s += t.lower() for c in 'abcdefghijklmnopqrstuvwxyz': print('{} : {}'.format(c, s.count(c)))
s457573832
p02417
u436634575
1400722810
Python
Python3
py
Runtime Error
0
0
162
s = '' while True: t = input() if len(t) == 0: break s += t.lower() for c in 'abcdefghijklmnopqrstuvwxyz': print('{} : {}'.format(c, s.count(c)))
s045123134
p02418
u436366398
1555745323
Python
Python3
py
Runtime Error
0
0
50
print("Yes" if input()*2.find(input()) else "No")
s433448893
p02418
u697703458
1556005234
Python
Python3
py
Runtime Error
20
5564
390
s=input() p=input() sl = [i for i in s] pl = [i for i in p] lenp=len(p) pp=pl[-1] pcheck=-1 el=[i for i,x in enumerate(sl) if x==pp] check=0 for i in el: while True: if sl[i]==pl[pcheck]: i-=1 pcheck-=1 else: break if pcheck+lenp==0: check+=1 ...
s411253212
p02418
u697703458
1556005334
Python
Python3
py
Runtime Error
20
5560
421
s=input() p=input() sl = [i for i in s] pl = [i for i in p] lenp=len(p) pp=pl[-1] pcheck=-1 el=[i for i,x in enumerate(sl) if x==pp] check=0 for i in el: while True: if sl[i]==pl[pcheck]: i-=1 pcheck-=1 else: break if pcheck+lenp==0: check+=1 ...
s319910111
p02418
u966110132
1559219926
Python
Python3
py
Runtime Error
0
0
501
def saiki(stri, i, nagasa): if stri[0, i] == stri[1,i]: if(nagasa == 1): return 1 else: nagasa -=1 stri.pop(0) i +=1 saiki(stri, i, nagasa) else: return 0 import sys input_str = sys.stdin.readlines() inputs = list(input_str) f...
s295275042
p02418
u535719732
1559293346
Python
Python3
py
Runtime Error
0
0
314
data = input() target = input() start = 0 flag = "No" for i in target: if(data[start:].find(i)): start = data[start:].find(i) elif(data[:start].find(i)): start = data.[:start:].find(i) else: print("No") break if(i == target[-1]): print("Yes") break
s721776713
p02418
u535719732
1559293356
Python
Python3
py
Runtime Error
0
0
313
data = input() target = input() start = 0 flag = "No" for i in target: if(data[start:].find(i)): start = data[start:].find(i) elif(data[:start].find(i)): start = data.[:start].find(i) else: print("No") break if(i == target[-1]): print("Yes") break
s951350179
p02418
u869301406
1459349165
Python
Python
py
Runtime Error
0
0
310
def find_word(sent, word): w = word if sent.find(w) > -1: return w,y elif len(w) == 0: return w,"No" else: return find_word(sent,w[:-1]) sent = raw_input() word = raw_input() s = "" s,y = find_word(sent,word) b = word.replace(s,"") a,y= find_word(sent,b) print y
s012128537
p02418
u869301406
1459350558
Python
Python
py
Runtime Error
0
0
431
def find_word(sent, word,s): w = word if len(w) > 0 : if sent.find(w) >= 0: return s else: s+=1 return find_word(sent,w[:-1],s) else : return -1 sent = raw_input() word = raw_input() s = find_word(sent,word,s) if s == -1: print "No" else:...
s631992198
p02418
u572790226
1459833798
Python
Python
py
Runtime Error
0
0
96
s = input() p = input() s = s + s[0:len(p)] if s.find(p): print('Yes') else: print('No')
s076470733
p02418
u100813820
1463644016
Python
Python3
py
Runtime Error
0
0
22
import re import numpy
s032213426
p02418
u617990214
1466177747
Python
Python
py
Runtime Error
0
0
167
half_ring=raw_input() ring=s*2 target=raw_input() f=0 for i in range(len(s)): if ring[i:i+len(target)]==target: f=1 break if f==1: print "Yes" else: print "No"
s157551274
p02418
u617990214
1466177830
Python
Python
py
Runtime Error
0
0
167
half_ring=raw_input() ring=s*2 target=raw_input() f=0 for i in range(len(s)): if ring[i:i+len(target)]==target: f=1 break if f==1: print "Yes" else: print "No"
s703341916
p02418
u671553883
1470288180
Python
Python3
py
Runtime Error
0
0
58
s = [input().string()] print('endswith[a, start][e, end]')
s006359970
p02418
u671553883
1470288778
Python
Python3
py
Runtime Error
0
0
91
s = input() p = input() s *= 2 if s.finr(p) != -1: print("Yes") else: print("No")
s891724184
p02418
u600195957
1470288781
Python
Python3
py
Runtime Error
0
0
91
s = print() p = print() s *= 2 if s.find(p) ! = =1: print("Yes") else: print("No")
s100142442
p02418
u600195957
1470288807
Python
Python3
py
Runtime Error
0
0
91
s = print() p = print() s *= 2 if s.find(p) ! = -1: print("Yes") else: print("No")
s561583091
p02418
u600195957
1470288844
Python
Python3
py
Runtime Error
0
0
90
s = print() p = print() s *= 2 if s.find(p) != -1: print("Yes") else: print("No")
s910030849
p02418
u661284763
1470289007
Python
Python3
py
Runtime Error
0
0
102
s = input() p = input() ???? s += s[:len(p)] if p in s: ????????print("Yes") else: ????????print("No")
s219303043
p02418
u216425054
1470980228
Python
Python3
py
Runtime Error
0
0
44
s=input() p=input() print("Yes" if p in s+s)
s869999107
p02418
u979507074
1476182317
Python
Python
py
Runtime Error
0
0
333
def check(s, p): count = 0 for i in range(len(s)): for j in range(len(p)): if s[(i+j) % len(s)] != p[j]: break count += 1 if count == len(p): return True return False s, p = raw_input() flag = check(s, p) if flag: print("Yes") else: ...
s612528699
p02418
u831244171
1477660126
Python
Python
py
Runtime Error
0
0
186
x = input() y = input() ##advencedknowledge a = [["advanceknowledge"]for i in range(10)] b = "" for i in a: b = b + "".join(i) if b.count(y) > 0: print("Yes") else: print("No")
s550409650
p02418
u086566114
1479484625
Python
Python
py
Runtime Error
0
0
222
ring = raw_input() * 2 word = raw_input() flag = 0 counter = 0 while counter < len(ring/2): if ring[counter:counter + len(word)] == word: flag = 1 break if flag: print("Yes") else: print("No")