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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s648763613 | p02419 | u831244171 | 1477662791 | Python | Python | py | Runtime Error | 0 | 0 | 166 | W = raw_input().lower()
T= []
while True:
t = input()
if t == "END_OF_TEXT":
break
else:
T += t.lower().split()
print(T)
print(T.count(W)) |
s477327771 | p02419 | u801346721 | 1478051271 | Python | Python3 | py | Runtime Error | 0 | 0 | 153 | a = []
while 1:
s = input()
if s == 'END_OF_TEXT':
break
else:
s = list(s.split('.')
s = list(s.split())
a.append(s)
print(a.count(a[0]) - 1) |
s374434875 | p02419 | u801346721 | 1478051446 | Python | Python3 | py | Runtime Error | 0 | 0 | 185 | a = []
while 1:
s = input()
if s == 'END_OF_TEXT':
break
else:
s = list(s.split('.'))
s.remove('.')
s.joint(' ')
s = list(s.split())
a.append(s)
print(a.count(a[0]) - 1) |
s275702796 | p02419 | u801346721 | 1478051592 | Python | Python3 | py | Runtime Error | 0 | 0 | 173 | a = []
while 1:
s = input()
if s == 'END_OF_TEXT':
break
else:
s = list(s.split('.'))
s.remove('.')
s = list(s[0].split())
a.append(s)
print(a.count(a[0]) - 1) |
s321294557 | p02419 | u801346721 | 1478051631 | Python | Python3 | py | Runtime Error | 0 | 0 | 172 | a = []
while 1:
s = input()
if s == 'END_OF_TEXT':
break
else:
s = list(s.split('.'))
s.remove('')
s = list(s[0].split())
a.append(s)
print(a.count(a[0]) - 1) |
s845571725 | p02419 | u801346721 | 1478051743 | Python | Python3 | py | Runtime Error | 0 | 0 | 171 | a = []
while 1:
s = input()
if s == 'END_OF_TEXT':
break
else:
s = list(s.split(''))
s.remove('')
s = list(s[0].split())
a.append(s)
print(a.count(a[0]) - 1) |
s011154680 | p02419 | u801346721 | 1478051898 | Python | Python3 | py | Runtime Error | 0 | 0 | 156 | a = []
while 1:
s = input()
if s == 'END_OF_TEXT':
break
else:
s = list(s.split(''))
s = list(s[0].split())
a.append(s)
print(a.count(a[0]) - 1) |
s045694405 | p02419 | u854978981 | 1480421191 | Python | Python3 | py | Runtime Error | 0 | 0 | 130 | w = input()
count = 0
while True:
t = input().lower
if t == "END_OF_TEXT": break
count += t.count(w)
print(int(count)) |
s573596375 | p02419 | u957840591 | 1482161182 | Python | Python3 | py | Runtime Error | 0 | 0 | 152 | W=raw_input()
Text=[]
while True:
text=raw_input()
if text=='END_OF_TEXT':
break
Text.extend(text.split())
print('%d'%Text.count(W)) |
s143400284 | p02419 | u957840591 | 1482161884 | Python | Python3 | py | Runtime Error | 0 | 0 | 219 | w=raw_input()
W=w.lower()
Text=[]
while True:
text=raw_input()
if text=='END_OF_TEXT':
break
Text.extend(text.split())
for i in range(len(Text)):
Text[i]=Text[i].lower()
print('%d'%Text.count(W)) |
s866008389 | p02419 | u032662562 | 1483314019 | Python | Python | py | Runtime Error | 0 | 0 | 132 | import sys
w = input().lower()
lines = sys.stdin.read()
line=lines[0:lines.find('END_OF_TEXT')].lower().split()
print(line.count(w)) |
s742379042 | p02419 | u513411598 | 1485080554 | Python | Python3 | py | Runtime Error | 0 | 0 | 95 | import sys
W = input()
print(sys.stdin.read().rstrip('END_OF_TEXT').lower().split(" ").count()) |
s889761777 | p02419 | u548155360 | 1487319168 | Python | Python3 | py | Runtime Error | 0 | 0 | 131 | W = input()
T = []
while True:
R = input().lower()
if R == "END_OF_TEXT":
break
T.append(R)
T = ''.join(T)
print(T.count(W)) |
s758489010 | p02419 | u731896389 | 1487947363 | Python | Python3 | py | Runtime Error | 0 | 0 | 154 | cnt = 0
s = input().lower()
while 1:
W = input().lower().split()
if W == "END_OF_TEXT":
break
elif W == s:
cnt += 1
print(cnt) |
s971834466 | p02419 | u731896389 | 1487947424 | Python | Python3 | py | Runtime Error | 0 | 0 | 152 | cnt = 0
s = input().lower()
while 1:
W = input().split().lower
if W == "END_OF_TEXT":
break
elif W == s:
cnt += 1
print(cnt) |
s212760136 | p02419 | u731896389 | 1487947771 | Python | Python3 | py | Runtime Error | 0 | 0 | 142 | cnt = 0
s = input().lower()
while 1:
line = input()
if W == "END_OF_TEXT":
break
for s in line.lower().split():
print(cnt) |
s030952769 | p02419 | u731896389 | 1487947845 | Python | Python3 | py | Runtime Error | 0 | 0 | 145 | cnt = 0
s = input().lower()
while 1:
line = input()
if line == "END_OF_TEXT":
break
for s in line.lower().split():
print(cnt) |
s298740933 | p02419 | u024715419 | 1488349574 | Python | Python3 | py | Runtime Error | 0 | 0 | 78 | import sys
w = input()
t = sys.stdin.read().split()
print(t.lower().count(w)) |
s279103759 | p02419 | u024715419 | 1488349602 | Python | Python3 | py | Runtime Error | 0 | 0 | 78 | import sys
w = input()
t = sys.stdin.read().split()
print(t.lower().count(w)) |
s670265830 | p02419 | u130834228 | 1489122865 | Python | Python3 | py | Runtime Error | 0 | 0 | 229 | W = input()
print(W)
t=0
while(1):
char_list = list(x.lower() for x in input().split())
print(char_list)
if char_list[0] == 'END_OF_TEXT':
break
for i in range(len(char_list)):
if W == char_list[i]:
t += 1
print(t) |
s353630633 | p02419 | u130834228 | 1489122890 | Python | Python3 | py | Runtime Error | 0 | 0 | 230 | W = input()
print(W)
t=0
while(1):
char_list = list(x.lower() for x in input().split())
#print(char_list)
if char_list[0] == 'END_OF_TEXT':
break
for i in range(len(char_list)):
if W == char_list[i]:
t += 1
print(t) |
s014056625 | p02419 | u130834228 | 1489122936 | Python | Python3 | py | Runtime Error | 0 | 0 | 231 | W = input()
#print(W)
t=0
while(1):
char_list = list(x.lower() for x in input().split())
#print(char_list)
if char_list[0] == 'END_OF_TEXT':
break
for i in range(len(char_list)):
if W == char_list[i]:
t += 1
print(t) |
s889582033 | p02419 | u130834228 | 1489122962 | Python | Python3 | py | Runtime Error | 0 | 0 | 231 | W = input()
#print(W)
t=0
while(1):
char_list = list(x.lower() for x in input().split())
#print(char_list)
if char_list[0] == 'END_OF_TEXT':
break
for i in range(len(char_list)):
if W == char_list[i]:
t += 1
print(t) |
s665902232 | p02419 | u868716420 | 1489700492 | Python | Python3 | py | Runtime Error | 0 | 0 | 179 | wor = input().upper()
import re
while True :
tes = input()
if tes == 'END_OF_TEXT': break
tes = tes.upper()
m = re.findall(wor, tes)
cou += len(m)
print(cou) |
s269109148 | p02419 | u286589639 | 1492650951 | Python | Python3 | py | Runtime Error | 0 | 0 | 343 | def check(s, p):
if s == p:
return 1
else:
return 0
word = input().lower()
print(word)
count = 0
while 1:
array = input().lower()
if array == "END_OF_TEXT":
break
print(array)
for i in range(len(array)-len(word)+1):
if array[i:i+len(word)] == word:
c... |
s939189387 | p02419 | u213265973 | 1494374690 | Python | Python3 | py | Runtime Error | 0 | 0 | 153 | W = input()
count = 0
while True:
T = input().split(" ")
if T == "END_OF_TEXT":
break
count += T.count(W)
print(count)
|
s314462633 | p02419 | u213265973 | 1494374747 | Python | Python3 | py | Runtime Error | 0 | 0 | 153 | W = input()
count = 0
while True:
T = input().split(" ")
if T == "END_OF_TEXT":
break
count += T.count(W)
print(count)
|
s118498344 | p02419 | u362104929 | 1495175073 | Python | Python3 | py | Runtime Error | 0 | 0 | 277 | count = 0
W = input().lower()
T = ""
while True:
try:
if T[0] == "END_OF_TEXT":
break
for t in T:
if W == t:
count += 1
T = [x.lower() for x in input().split()]
except EOFError:
break
print(count) |
s789353985 | p02419 | u362104929 | 1495175170 | Python | Python3 | py | Runtime Error | 30 | 7368 | 277 | count = 0
W = input().lower()
T = [0]
while True:
try:
if T[0] == "END_OF_TEXT":
break
for t in T:
if W == t:
count += 1
T = [x.lower() for x in input().split()]
except EOFError:
break
print(count) |
s867588474 | p02419 | u605879293 | 1501069071 | Python | Python3 | py | Runtime Error | 0 | 0 | 126 | w = input()
i = 0
while True:
t = input()
if t == "END_OF_TEXT" or not t:
break
if w in t:
i += 1
print(i if i != 0) |
s159742844 | p02419 | u311299757 | 1501381993 | Python | Python3 | py | Runtime Error | 0 | 0 | 199 | search_s = input()
cnt = 0
while True:
word_list = input().lower().split()
if word_list[0] == "END_OF_TEXT" : break
for word in word_list:
if word == search_s:cnt += 1
print(cnt) |
s705398124 | p02419 | u498511622 | 1501725580 | Python | Python3 | py | Runtime Error | 0 | 0 | 147 | W=input()
s=0
while True:
T=list(input().split())
for i in T:
if T=='END_OF_TEXT':
break
else:
if i==W:
s+=1
print(s)
|
s610628788 | p02419 | u498511622 | 1501726193 | Python | Python3 | py | Runtime Error | 0 | 0 | 139 | W=input()
s=0
while True:
T=list(input())
if T==['END_OF_TEXT']:
break
else:
for i in T:
if i==W:
s+=1
print(s)
|
s904915096 | p02419 | u105694406 | 1504157633 | Python | Python3 | py | Runtime Error | 0 | 0 | 148 | word = input()
string = input().lower()
last = ""
while last != "END_OF_TEXT":
last = input().lower()
string += last
print(string.count(word)) |
s783027583 | p02419 | u933096856 | 1505446673 | Python | Python3 | py | Runtime Error | 0 | 0 | 173 | c=0
s=''
p=input().upper()
while True:
s1=input()
if s1 =='END_OF_TEXT':
break
s+=s1
a=s.upper().split()
for i in a:
if p in i:
c+=1
print(c) |
s895506759 | p02419 | u506705885 | 1505497014 | Python | Python3 | py | Runtime Error | 0 | 0 | 279 | word=input()
how_in=0
while True:
try:
statement=input()
except:
break
if statement=='END_OF_TEXT':
break
statement=statement.lower()
statement.remove(' ')
if word in statement :
how_in+=statement.count(word)
print(how_in) |
s673046081 | p02419 | u506705885 | 1505497584 | Python | Python3 | py | Runtime Error | 0 | 0 | 201 | word=input().lower()
how_int=0
while True:
letters=input()
if letters=='END_OF_TEXT':
break
for i in letters.lower().split():
if i==word:
how_in+=1
print(how_in) |
s513556992 | p02419 | u027634846 | 1505876754 | Python | Python3 | py | Runtime Error | 0 | 0 | 242 | word = input()
text = []
c = 0
while True:
read = input().lower().split()
if read[0] == 'end_of_text':
break
else:
text.append(read)
for i in text:
for n in i:
if word in ne:
c += 1
print(c) |
s265908590 | p02419 | u664228906 | 1507257496 | Python | Python3 | py | Runtime Error | 0 | 0 | 96 | word = string(input())
texts = list(string, input().split())
ans = texts.count(word)
print ans |
s023410651 | p02419 | u664228906 | 1507258334 | Python | Python3 | py | Runtime Error | 0 | 0 | 218 | word = string(input().lower())
texts = []
while TRUE:
str = input()
if str == 'END_OF_TEXT':
break
str = str.lower()
texts.extends([s.lower() for s in str.split()] )
ans = texts.count(word)
print ans |
s527320750 | p02419 | u664228906 | 1507258635 | Python | Python3 | py | Runtime Error | 0 | 0 | 209 | word = input().lower()
texts = []
while TRUE:
str = input()
if str == 'END_OF_TEXT':
break
str = str.lower()
texts.extend([s.lower() for s in str.split()] )
ans = texts.count(word)
print ans |
s134775342 | p02419 | u664228906 | 1507258657 | Python | Python3 | py | Runtime Error | 0 | 0 | 189 | word = input().lower()
texts = []
while TRUE:
str = input()
if str == 'END_OF_TEXT':
break
texts.extend([s.lower() for s in str.split()] )
ans = texts.count(word)
print ans |
s262834354 | p02419 | u664228906 | 1507259781 | Python | Python3 | py | Runtime Error | 0 | 0 | 190 | word = input().lower()
texts = []
while TRUE:
str = input()
if str == 'END_OF_TEXT':
break
texts.extend([s.lower() for s in str.split()] )
ans = texts.count(word)
print(ans) |
s410583235 | p02419 | u480053997 | 1507420432 | Python | Python3 | py | Runtime Error | 0 | 0 | 56 | W = input()
print(((sys.stdin.read()).lower()).count(W)) |
s686526521 | p02419 | u197670577 | 1508243735 | Python | Python | py | Runtime Error | 0 | 0 | 175 | word = raw_input()
counter = 0
while True:
line = raw_input()
if line == "end_of_text":
break
counter += line.lower().split(" ").count(word)
print counter |
s932266524 | p02419 | u298999032 | 1511250636 | Python | Python3 | py | Runtime Error | 0 | 0 | 123 | tt=input()
a=''
while True:
text=input().upper
if text=='END_OF_TEXT':
break
a+=text
print(a.count(tt)) |
s274154967 | p02419 | u566872786 | 1511252790 | Python | Python3 | py | Runtime Error | 0 | 0 | 57 | import sys
print(sys.stdin.read().split().count(input())) |
s572068413 | p02419 | u150984829 | 1513234444 | Python | Python3 | py | Runtime Error | 0 | 0 | 98 | W=input()
T=''
while 1:
a=input()
if'END_OF_TEXT'!=a:T+=a'
else:break
T+=' '
print(T.count(W)) |
s358745804 | p02419 | u150984829 | 1513235052 | Python | Python3 | py | Runtime Error | 0 | 0 | 105 | W=input().lower()
T=''
while 1:
a=input().lower()+' '
if'END_OF_TEXT '==a:break
T+=a
print(T.count(W)) |
s871126198 | p02419 | u150984829 | 1513235142 | Python | Python3 | py | Runtime Error | 0 | 0 | 93 | W=input()
T=''
while 1:
a=input()
if'END_OF_TEXT '==a:break
T+=a.lower()
print(T.count(W)) |
s422873733 | p02419 | u150984829 | 1513235739 | Python | Python3 | py | Runtime Error | 0 | 0 | 114 | W=input()
T=''
while 1:
a=input()
if'END_OF_TEXT '==a:break
T+=[s.lower() for s in a.split()]
print(T.count(W)) |
s149262865 | p02419 | u150984829 | 1513235753 | Python | Python3 | py | Runtime Error | 0 | 0 | 114 | W=input()
T=[]
while 1:
a=input()
if'END_OF_TEXT '==a:break
T+=[s.lower() for s in a.split()]
print(T.count(W)) |
s269750078 | p02419 | u150984829 | 1513670469 | Python | Python3 | py | Runtime Error | 0 | 0 | 113 | while 1:
s=input()
if'-'==s:break
n=sum([int(input())for _ in range(int(input()))])%len(s)
print(s[n:]+s[:n]) |
s603049637 | p02419 | u406002631 | 1514005914 | Python | Python3 | py | Runtime Error | 0 | 0 | 131 | w = input().lower()
t = 0
while True:
s = input().lower()
if s == "END_OF_TEXT":
break
t += s.count(w)
print(t) |
s498975145 | p02419 | u146752763 | 1516975179 | Python | Python | py | Runtime Error | 0 | 0 | 278 | # coding:utf-8
W = raw_input().lower()
array = []
cnt = 0
while True:
line = raw_input()
if line == "END_OF_TEXT"
break
split = line.lower().split()
for s in split:
array.append(s)
for word in array:
if W == word:
cnt += 1
print cnt
|
s769164181 | p02419 | u179070318 | 1518352704 | Python | Python3 | py | Runtime Error | 0 | 0 | 149 | w = input()
cnt = 0
while True:
t = input().lower()
if t == 'END_OF_TEXT':
break
if w in t.split():
cnt += 1
print(cnt)
|
s167657628 | p02419 | u780025254 | 1519226785 | Python | Python3 | py | Runtime Error | 0 | 0 | 71 | import sys
w = input()
print(sys.stdin.read().lower().split().cout(w))
|
s197554538 | p02419 | u780025254 | 1519226839 | Python | Python3 | py | Runtime Error | 0 | 0 | 69 | import sys
W=input()
print(sys.stdin.read().lower().split().count(W)
|
s812195004 | p02419 | u613534067 | 1520324823 | Python | Python3 | py | Runtime Error | 0 | 0 | 193 | w = input()
cnt = 0
while(True):
t = input()
if t == "END_OF_TEXT":
break
t = list(map(lower, t.split()))
for i in t:
if i == w:
cnt += 1
print(cnt)
|
s612154579 | p02419 | u613534067 | 1520324845 | Python | Python3 | py | Runtime Error | 0 | 0 | 195 | w = input()
cnt = 0
while(True):
t = input()
if t == "END_OF_TEXT":
break
t = list(map(lower(), t.split()))
for i in t:
if i == w:
cnt += 1
print(cnt)
|
s549495584 | p02419 | u613534067 | 1520324970 | Python | Python3 | py | Runtime Error | 0 | 0 | 197 | w = input()
cnt = 0
while(True):
t = input()
if t == "END_OF_TEXT":
break
t = t.lower
t = list(t.split())
for i in t:
if i == w:
cnt += 1
print(cnt)
|
s455150476 | p02419 | u613534067 | 1520325007 | Python | Python3 | py | Runtime Error | 0 | 0 | 191 | w = input()
cnt = 0
while(True):
t = input()
if t == "END_OF_TEXT":
break
t = t.lower
t = t.split()
for i in t:
if i == w:
cnt += 1
print(cnt)
|
s483428999 | p02419 | u613534067 | 1520325262 | Python | Python3 | py | Runtime Error | 0 | 0 | 199 | w = input()
cnt = 0
while(True):
t = input()
if t == "END_OF_TEXT":
break
t = t.lower
tlist = t.split()
for i in tlist:
if i == w:
cnt += 1
print(cnt)
|
s495536820 | p02419 | u641357568 | 1522160600 | Python | Python3 | py | Runtime Error | 0 | 0 | 246 | import sys
W = sys.stdin.readline().strip()
num = 0
while True:
T = sys.stdin.readline().strip()
if T == 'END_OF_TEXT'
break
T_line = T.split()
for i in T_line:
if W == i:
num += 1
print(num,end='')
|
s362509641 | p02419 | u886729200 | 1522913435 | Python | Python3 | py | Runtime Error | 0 | 0 | 375 | string=[]
W = input()#単語入力
while True:
T = input()#入力
if T == '':#EOT入力のときループぬける
break
string.append(T)#list追加
count=0
for i in range(len(string)):
string[i]=string[i].lower()
string[i] = string[i].split(" ")
for j in range(len(string[i])):
if W == string[i][j]:
count... |
s097940891 | p02419 | u095590628 | 1523735600 | Python | Python3 | py | Runtime Error | 0 | 0 | 133 | W = input().lower()
T = ""
while True:
t = input().lower()
if t == "END_OF_TEXT":
break
T += t
print(T.count(W))
|
s087417146 | p02419 | u682153677 | 1524040019 | Python | Python3 | py | Runtime Error | 0 | 0 | 272 | # -*- coding: utf-8 -*-
import sys
w = sys.stdin.readline().strip()
count = 0
while True:
t = list(map(int, input().split()))
if 'END_OF_TEXT' in t:
break
for i in range(len(t)):
if t[i].lower() == w:
count += 1
print(count)
|
s103362870 | p02419 | u986478725 | 1527343055 | Python | Python3 | py | Runtime Error | 0 | 0 | 564 | # AOJ ITP1_9_A
def numinput():
a = input().split()
for i in range(len(a)):
a[i] = int(a[i])
return a
# ※大文字と小文字を区別しないので注意!!!!
# 全部大文字にしちゃえ。
def main():
W = input().upper() # 大文字にする
line = ""
count = 0
while True:
line = input().split()
if line == "END_OF_TEXT": bre... |
s015432622 | p02419 | u269391636 | 1527608858 | Python | Python3 | py | Runtime Error | 0 | 0 | 153 | a,s=0,input()
while(True):
t = input().split()
if t[0] == "END_OF_TEXT":
print(a)
quit()
for i in t:
if i.lower() in lis:
a += 1
|
s024193458 | p02419 | u763301852 | 1363427224 | Python | Python | py | Runtime Error | 0 | 0 | 206 | W = raw_input().lower()
c = 0
while True:
T = raw_input().lower()
if T == "END_OF_TEXT":
break
Ti = T.split()
for i in Ti:
if i == W:
c += 1
print("%d" % (c, )) |
s190879735 | p02419 | u912237403 | 1371249182 | Python | Python | py | Runtime Error | 0 | 0 | 174 | w0 = raw_input().lower()
c = 0
while True:
s = raw_input()
if s == 'END_OF_TEXT': break
for w in s..lower().split()
if w == w0:
c += 1
print c |
s788104105 | p02419 | u912237403 | 1371249207 | Python | Python | py | Runtime Error | 0 | 0 | 175 | w0 = raw_input().lower()
c = 0
while True:
s = raw_input()
if s == 'END_OF_TEXT': break
for w in s..lower().split():
if w == w0:
c += 1
print c |
s753642229 | p02419 | u633068244 | 1393332441 | Python | Python | py | Runtime Error | 0 | 0 | 141 | w = raw_input()
sum = 0
while True:
t = raw_input()
if t == "END_OF_TEXT":
break
elif t == w
sum += 1
print sum |
s899003558 | p02419 | u633068244 | 1393332663 | Python | Python | py | Runtime Error | 0 | 0 | 154 | w = raw_input().lower
sum = 0
while True:
t = raw_input().lower
if t == "END_OF_TEXT":
break
else:
sum += t.count(w)
print sum |
s545853682 | p02419 | u633068244 | 1393332677 | Python | Python | py | Runtime Error | 0 | 0 | 158 | w = raw_input().lower()
sum = 0
while True:
t = raw_input().lower()
if t == "END_OF_TEXT":
break
else:
sum += t.count(w)
print sum |
s996940604 | p02419 | u633068244 | 1393333179 | Python | Python | py | Runtime Error | 0 | 0 | 176 | w = raw_input().lower()
sum = 0
while True:
t = map(str, raw_input().split())
if t == "END_OF_TEXT":
break
else:
sum += t.lower().count(w)
print sum |
s389063563 | p02419 | u633068244 | 1393333200 | Python | Python | py | Runtime Error | 0 | 0 | 166 | w = raw_input().lower()
sum = 0
while True:
t = raw_input().split()
if t == "END_OF_TEXT":
break
else:
sum += t.lower().count(w)
print sum |
s054877869 | p02419 | u436634575 | 1400724652 | Python | Python3 | py | Runtime Error | 0 | 0 | 121 | w = input().lower()
n = 0
while True:
t = input()
if t == 'END_OF_TEXT': break
n += t.lower.count(w)
print(n) |
s938647985 | p02420 | u749884951 | 1534847458 | Python | Python3 | py | Runtime Error | 0 | 0 | 153 | s = input()
while s != "0":
n = int(input())
for i in range(n):
h = int(input())
s = s[h:] + s[:h]
print(s)
s = input()
|
s990960773 | p02420 | u928633434 | 1556617711 | Python | Python3 | py | Runtime Error | 0 | 0 | 177 | while True:
cards = str(input())
if cards == '-':
break
n = int(input())
for i in range(n):
p = str(input())
cards = cards[p:] + cards[:p]
print(cards)
|
s425914611 | p02420 | u805716376 | 1556727740 | Python | Python3 | py | Runtime Error | 0 | 0 | 296 | s = input()
n = int(input())
for i in range(n):
order, a, b, *c = input().split()
a = int(a)
b = int(b)
if order == 'replace':
s = s[:a] + c[0] + s[b+1:]
elif order[0] == 'r':
s = s[:a] + s[::-1][len(s)-b-1:len(s)-a]+ s[b+1:]
else:
print(s[a:b+1])
|
s221285250 | p02420 | u535719732 | 1559296274 | Python | Python3 | py | Runtime Error | 0 | 0 | 368 | while True:
data = input()
if(data == "-"):break
m = int(input())
tmp = []
flag = False
for i in range(m):
num = int(input())
if(!flag):
tmp = data[num:] + data[:num]
flag = True
data = ""
else:
data = tmp[num:] + tmp[:num... |
s362622907 | p02420 | u607723579 | 1559541124 | Python | Python3 | py | Runtime Error | 0 | 0 | 748 | mport sys
BIG_NUM = 2000000000
MOD = 1000000007
EPS = 0.000000001
NUM = 20005
table = [""]*NUM
while True:
T = str(input())
if T == '-':
break
left = 0
right = 0
#長い配列にパターン文字列を転記
for i in range(len(T)):
# print(T[right])
table[left+right] = T[right]
... |
s618946939 | p02420 | u607723579 | 1559541147 | Python | Python3 | py | Runtime Error | 0 | 0 | 748 | mport sys
BIG_NUM = 2000000000
MOD = 1000000007
EPS = 0.000000001
NUM = 20005
table = [""]*NUM
while True:
T = str(input())
if T == '-':
break
left = 0
right = 0
#長い配列にパターン文字列を転記
for i in range(len(T)):
# print(T[right])
table[left+right] = T[right]
... |
s916059859 | p02420 | u823030818 | 1423188719 | Python | Python3 | py | Runtime Error | 0 | 0 | 201 | while Ture:
text = input()
if text = '-':
break
count = int(input())
for c in range(count):
index = int(input())
text - text[index:] + text[:index]
print(text) |
s797903336 | p02420 | u823030818 | 1423188756 | Python | Python3 | py | Runtime Error | 0 | 0 | 201 | while True:
text = input()
if text = '-':
break
count = int(input())
for c in range(count):
index = int(input())
text - text[index:] + text[:index]
print(text) |
s748861680 | p02420 | u823030818 | 1423188893 | Python | Python3 | py | Runtime Error | 0 | 0 | 201 | while True:
text = input()
if text = '-':
break
count = int(input())
for c in range(count):
index = int(input())
text = text[index:] + text[:index]
print(text) |
s620712715 | p02420 | u823030818 | 1423189095 | Python | Python3 | py | Runtime Error | 0 | 0 | 202 | while True:
text = input()
if text == '-':
break
count = int(input())
for c in range(count):
index = int(input())
text - text[index:] + text[:index]
print(text) |
s003389461 | p02420 | u467309160 | 1443545535 | Python | Python3 | py | Runtime Error | 0 | 0 | 173 | while True:
s = raw_input()
if s == "-":
break
for i in range(int(raw_input())):
h = int(raw_input())
s = s[h:] + s[0:h]
print(s) |
s985429327 | p02420 | u467309160 | 1443545545 | Python | Python3 | py | Runtime Error | 0 | 0 | 173 | while True:
s = raw_input()
if s == "-":
break
for i in range(int(raw_input())):
h = int(raw_input())
s = s[h:] + s[0:h]
print(s) |
s250484406 | p02420 | u467309160 | 1443545585 | Python | Python3 | py | Runtime Error | 0 | 0 | 173 | while True:
s = raw_input()
if s == "-":
break
for i in range(int(raw_input())):
h = int(raw_input())
s = s[h:] + s[0:h]
print(s) |
s927239431 | p02420 | u224288634 | 1444395909 | Python | Python | py | Runtime Error | 0 | 0 | 271 | def shuffle(l,h):
l.extend(l[0:h])
del l[0:h]
while True :
card_list = list(raw_input())
if card_list == ['.']:
break
else :
m = input()
h_count = [0]*m
for i in range(m):
h_count[i] = input()
shuffle(card_list,h_count[i])
print("".join(card_list)) |
s133228580 | p02420 | u628732336 | 1470289637 | Python | Python3 | py | Runtime Error | 0 | 0 | 199 | w = input()
ccount = 0
while True:
line = input()
if line == 'END_OF_TEXT':
break
for s in line.lower().split():
if s == W:
count += 1
print() |
s353135854 | p02420 | u204883389 | 1470289697 | Python | Python3 | py | Runtime Error | 0 | 0 | 211 | while True:
s = input().split()
if s == "-":
break
card = [x for x in s]
for i in range(int(input())):
h = int(input())
card = card[h:] + card[:h]
print("".join(card)) |
s427553190 | p02420 | u498041957 | 1470290081 | Python | Python3 | py | Runtime Error | 0 | 0 | 164 | while True:
s = input()
if s == '_':
break
m = int(input())
for mi in range(m):
h = int(input())
s = s[0] + s[1]
print(s) |
s425895226 | p02420 | u498041957 | 1470290149 | Python | Python3 | py | Runtime Error | 0 | 0 | 174 | while True:
s = input()
if s == '_':
break
m = int(input())
for mi in range(m):
h = int(input())
s = s[:index] + s[:index]
print(s) |
s282387224 | p02420 | u498041957 | 1470290220 | Python | Python3 | py | Runtime Error | 0 | 0 | 174 | while True:
s = input()
if s == '_':
break
m = int(input())
for mi in range(m):
h = int(input())
s = s[index:] + s[:index]
print(s) |
s011430663 | p02420 | u498041957 | 1470290273 | Python | Python3 | py | Runtime Error | 0 | 0 | 166 | while True:
s = input()
if s == '_':
break
m = int(input())
for mi in range(m):
h = int(input())
s = s[m:] + s[:m]
print(s) |
s731572591 | p02420 | u498041957 | 1470290465 | Python | Python3 | py | Runtime Error | 0 | 0 | 166 | while True:
s = input()
if s == '_':
break
m = int(input())
for mi in range(m):
h = int(input())
s = s[h:] + s[:h]
print(s) |
s008605742 | p02420 | u085472528 | 1470290625 | Python | Python3 | py | Runtime Error | 0 | 0 | 170 | while True:
s = input()
if s == '-':
break
n = int(input())
for mi in range(m):
h = int(input())
s = s[h:] + s[:h]
print(s) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.