s_id
string
p_id
string
u_id
string
date
string
language
string
original_language
string
filename_ext
string
status
string
cpu_time
string
memory
string
code_size
string
code
string
error
string
stdout
string
s744697053
p02418
u435300817
1480851295
Python
Python3
py
Runtime Error
20
7468
338
input_str = input() target_str = input() if target_str in input_str: print('Yes') else: ret = '' r_str = input_str[::-1] idx = r_str.index(target_str[0]) ret += r_str[idx::-1] size = len(target_str) - len(ret) ret += input_str[:size] if ret == target_str: print('Yes') else: ...
Traceback (most recent call last): File "/tmp/tmpl7_jo9l3/tmplq1ojesg.py", line 1, in <module> input_str = input() ^^^^^^^ EOFError: EOF when reading a line
s316598189
p02418
u435300817
1480851665
Python
Python3
py
Runtime Error
30
7404
394
input_str = input() target_str = input() if target_str in input_str: print('Yes') else: ret = '' r_str = input_str[::-1] try: idx = r_str.index(target_str[0]) except ValueError: print('No') ret += r_str[idx::-1] size = len(target_str) - len(ret) ret += input_str[:size] ...
Traceback (most recent call last): File "/tmp/tmpduuah5ci/tmplkyk2olt.py", line 1, in <module> input_str = input() ^^^^^^^ EOFError: EOF when reading a line
s625730150
p02418
u547492399
1483766619
Python
Python3
py
Runtime Error
0
0
80
s1 = input() s2 = input() if s2 in s1+s1: print("Yes") else print("No")
File "/tmp/tmp9hjg7uob/tmpsuorwsq0.py", line 6 else ^ SyntaxError: expected ':'
s337779917
p02418
u130834228
1489118998
Python
Python3
py
Runtime Error
0
0
252
import sys #t=1 for i in range(len(s)): if p[0] == s[i]: for j in range(len(p)-1): if p[j+1] == s[(i+j+1)%len(s)]: t += 1 #print(t,j,i+j) else: t = 0 if t == len(p): #print('Yes') sys.exit() if t < len(p): print('No')
Traceback (most recent call last): File "/tmp/tmpv1o3no9p/tmpwxp8culy.py", line 4, in <module> for i in range(len(s)): ^ NameError: name 's' is not defined
s509839298
p02418
u130834228
1489119324
Python
Python3
py
Runtime Error
0
0
273
import sys for i in range(len(s)): if p[0] == s[i]: t = 1 for j in range(len(p)-1): if p[j+1] == s[(i+j+1)%len(s)]: #print(t, end = '') t = t+1 #print(t) else: t = 0 if t == len(p): print('Yes') sys.exit() if t < len(p): print('No')
Traceback (most recent call last): File "/tmp/tmpqoh2pc6r/tmp0nv1r24y.py", line 3, in <module> for i in range(len(s)): ^ NameError: name 's' is not defined
s398251243
p02418
u130834228
1489120005
Python
Python3
py
Runtime Error
20
7356
256
s = list(input()) p = list(input()) #print(len(p)) import sys t=0 for i in range(len(s)): for j in range(len(p)): if p[j] == s[(i+j)%len(s)]: t = t+1 else: t = 0 if t == len(p): print('Yes') sys.exit() if t < len(p): print('No') fori
Traceback (most recent call last): File "/tmp/tmp1obhcqt7/tmpn12x951s.py", line 1, in <module> s = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s326165993
p02418
u130834228
1489120265
Python
Python3
py
Runtime Error
0
0
234
import sys for i in range(len(s)): for j in range(len(p)): t=0 if p[j] == s[(i+j)%len(s)]: t = t+1 #print(p[j], s[(i+j)%len(s)]) else: t = 0 if t == len(p): print('Yes') sys.exit() if t < len(p): print('No')
Traceback (most recent call last): File "/tmp/tmpb26r734h/tmpd2amst3y.py", line 3, in <module> for i in range(len(s)): ^ NameError: name 's' is not defined
s683182805
p02418
u868716420
1489620526
Python
Python3
py
Runtime Error
20
7428
194
sam = input() ans = input() for i in range(1,len(ans)) : if (ans[:i] in sam) == False : break if ((ans[i - 1 :]) in sam) == True : print('Yes') else : print('No')
Traceback (most recent call last): File "/tmp/tmpu3z9z66u/tmpbxmf4xz0.py", line 1, in <module> sam = input() ^^^^^^^ EOFError: EOF when reading a line
s544412140
p02418
u868716420
1489626191
Python
Python3
py
Runtime Error
0
0
464
sam = input() ans = input() for i in range(len(ans)) : if (ans[:i] in sam) == False : break print(ans[ :i-1]) print(ans[i-1:]) print(sam[:len(ans[i-1:])]) if ((ans[i - 1 :]) in sam[:len(ans[i-1:])])== True and len(ans) != 1 : print('Yes') elif (ans in sam) == True : print('Y...
File "/tmp/tmp3xvwervv/tmpz6liwfs4.py", line 12 else : print('No') : print('No') ^^^^^^^^^^^ SyntaxError: illegal target for annotation
s534194198
p02418
u650790815
1496463870
Python
Python3
py
Runtime Error
0
0
78
s = input() p = input() if s in (p**2): print('Yes') else: print('No')
Traceback (most recent call last): File "/tmp/tmp3pq_vf59/tmp8nrpe4ac.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s925021307
p02418
u203261375
1497181049
Python
Python3
py
Runtime Error
0
0
334
ring_str = input() str = input() for i in range(len(s)): if i == 0 and ring_str.find(s) != -1: print('Yes') break if i != 0 and ring_str.find(s[:i]) == len(ring_str) - len(s[:i]): if s[i:] == ring_str[:len(s[i:])]: print('Yes') break if i == len(s) - 1: ...
Traceback (most recent call last): File "/tmp/tmpb0216q9c/tmpacbeo9xc.py", line 1, in <module> ring_str = input() ^^^^^^^ EOFError: EOF when reading a line
s218558822
p02418
u933096856
1505443860
Python
Python3
py
Runtime Error
0
0
89
p,s=[input() for i in range(2)] p=p*100 if a in p: print('Yes') else: print('NO')
Traceback (most recent call last): File "/tmp/tmpfn9ewn1x/tmp9kwwaenj.py", line 1, in <module> p,s=[input() for i in range(2)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmpfn9ewn1x/tmp9kwwaenj.py", line 1, in <listcomp> p,s=[input() for i in range(2)] ^^^^^^^ EOFError: EOF when reading a line
s678428443
p02418
u298999032
1513042920
Python
Python3
py
Runtime Error
0
0
67
i=input p=print s=i() p=i() p('Yes') if (s+s).count(p) else p('No')
Traceback (most recent call last): File "/tmp/tmp8sv_ryr5/tmpwzyklrk3.py", line 3, in <module> s=i() ^^^ EOFError: EOF when reading a line
s348010516
p02418
u298999032
1513043353
Python
Python3
py
Runtime Error
0
0
67
i=input p=print s=i() p=i() (s+s).count(p) if p('Yes') else p('No')
Traceback (most recent call last): File "/tmp/tmpfgk3w79j/tmpevm6pivk.py", line 3, in <module> s=i() ^^^ EOFError: EOF when reading a line
s535768899
p02418
u566311709
1522133389
Python
Python3
py
Runtime Error
0
0
61
s = input() * 2 p = input() print("Yes" if p in e else "No")
Traceback (most recent call last): File "/tmp/tmp3xcfqxck/tmptip2x9og.py", line 1, in <module> s = input() * 2 ^^^^^^^ EOFError: EOF when reading a line
s670043357
p02418
u566311709
1522133407
Python
Python3
py
Runtime Error
0
0
61
s = input() * 2 p = input() print("Yes" if p in e else "No")
Traceback (most recent call last): File "/tmp/tmpqk1bbwbe/tmpkc6318_v.py", line 1, in <module> s = input() * 2 ^^^^^^^ EOFError: EOF when reading a line
s654121298
p02418
u434815736
1529972953
Python
Python3
py
Runtime Error
0
0
550
from bisect import bisect_left, bisect_right, insort_left dict = {} keytbl = [] q = int(input()) for i in range(q): a = list(input().split()) ki = a[1] if a[0] == '0': if ki not in dict: dict[ki] = [] insort_left(keytbl, ki) dict[ki].append(int(a[2])) elif a[0] == '1': if ki in dict and dict[ki] != []:...
Traceback (most recent call last): File "/tmp/tmp__gpkl9g/tmp516fiv_o.py", line 5, in <module> q = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s417665956
p02419
u917722865
1530956382
Python
Python3
py
Runtime Error
0
0
303
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { int count = 0; string W; string t; cin >> W; while (cin >> t, t != "END_OF_TEXT") { transform(t.begin(), t.end(), t.begin(), ::tolower); if (t == W) { count++; } } cout << count << endl; }
File "/tmp/tmpp834fk9a/tmpnw00605p.py", line 5 using namespace std; ^^^^^^^^^ SyntaxError: invalid syntax
s041164424
p02419
u400765446
1531147032
Python
Python3
py
Runtime Error
0
0
492
def main(): Counter = 0 Text_W = input() while True: Text_T = input().lower() if "END_OF_TEXT" in Text_T: temp = Text_T.split() for i in range(len(temp)): Counter += 1 if Text_W == temp[i] else 0 break else: temp = Text...
Traceback (most recent call last): File "/tmp/tmpjfhh7mri/tmp2lhw938q.py", line 20, in <module> main() File "/tmp/tmpjfhh7mri/tmp2lhw938q.py", line 4, in main Text_W = input() ^^^^^^^ EOFError: EOF when reading a line
s418214013
p02419
u539753516
1531426311
Python
Python3
py
Runtime Error
0
0
138
w=input() c=0 while True: t=input().lower() if t=='END_OF_TEXT': print(c) break c+=t.lower().split().count(w)
Traceback (most recent call last): File "/tmp/tmpqcnkdwni/tmpv4k9oql4.py", line 1, in <module> w=input() ^^^^^^^ EOFError: EOF when reading a line
s692163491
p02419
u299231628
1531900572
Python
Python3
py
Runtime Error
0
0
138
import re w = input() t = '' while True: s = input() if s == 'END_OF_TEXT': break t += s print(len(re.findall(w, t))
File "/tmp/tmp9dkuya6_/tmp55rdxf4w.py", line 10 print(len(re.findall(w, t)) ^ SyntaxError: '(' was never closed
s641189258
p02419
u299231628
1531900624
Python
Python3
py
Runtime Error
0
0
154
import re w = input().lower() t = '' while True: s = input().lower() if s == 'END_OF_TEXT': break t += s print(len(re.findall(w, t))
File "/tmp/tmpk6jj28ks/tmpq7f5h8k4.py", line 10 print(len(re.findall(w, t)) ^ SyntaxError: '(' was never closed
s268647839
p02419
u299231628
1531902588
Python
Python3
py
Runtime Error
0
0
198
w = input() cnt = collections.Counter() while True: s = [1 if i.lower() == w else 'fin' if i == 'END_OF_TEXT' else 0 for i in input().split()] if 'fin' in s: break print(s.count(1))
Traceback (most recent call last): File "/tmp/tmpb2hmqlrj/tmpbws8y57u.py", line 1, in <module> w = input() ^^^^^^^ EOFError: EOF when reading a line
s330562879
p02419
u324811972
1531903898
Python
Python3
py
Runtime Error
0
0
241
target = input() text = input() text = input() text = input() text = input() text = input() text2 = text.replace('\n',' ') sentenceList = text2.split() count = 0 for word in sentenceList: if(word.lower() == target): count+=1 print(count)
Traceback (most recent call last): File "/tmp/tmp2kw8tndz/tmpmfappkus.py", line 1, in <module> target = input() ^^^^^^^ EOFError: EOF when reading a line
s889058476
p02419
u324811972
1531903908
Python
Python3
py
Runtime Error
0
0
242
target = input() text = input() text = input() text = input() text = input() #text = input() text2 = text.replace('\n',' ') sentenceList = text2.split() count = 0 for word in sentenceList: if(word.lower() == target): count+=1 print(count)
Traceback (most recent call last): File "/tmp/tmpdt690ogy/tmpgqirvqlq.py", line 1, in <module> target = input() ^^^^^^^ EOFError: EOF when reading a line
s514815878
p02419
u749884951
1534846749
Python
Python3
py
Runtime Error
0
0
73
import sys s = sys.stdin.read().split() print(s[1:].split().count(s[0]))
Traceback (most recent call last): File "/tmp/tmptesvfxtz/tmpmvpyw7lk.py", line 3, in <module> print(s[1:].split().count(s[0])) ^^^^^^^^^^^ AttributeError: 'list' object has no attribute 'split'
s052342651
p02419
u404682284
1535452355
Python
Python3
py
Runtime Error
0
0
325
package main import ( "fmt" "os" "bufio" "strings" ) func main(){ var n int = 0 var w string sc := bufio.NewScanner(os.Stdin) sc.Split(bufio.ScanWords) fmt.Scan(&w) for { sc.Scan() t := sc.Text() if t == "END_OF_TEXT" { break } t = strings.ToLower(t) if t == w { n++ } } fmt.Println(...
File "/tmp/tmpv23gtdat/tmpta9orpa7.py", line 1 package main ^^^^ SyntaxError: invalid syntax
s265455381
p02419
u404682284
1535452355
Python
Python3
py
Runtime Error
0
0
325
package main import ( "fmt" "os" "bufio" "strings" ) func main(){ var n int = 0 var w string sc := bufio.NewScanner(os.Stdin) sc.Split(bufio.ScanWords) fmt.Scan(&w) for { sc.Scan() t := sc.Text() if t == "END_OF_TEXT" { break } t = strings.ToLower(t) if t == w { n++ } } fmt.Println(...
File "/tmp/tmpt3041ege/tmpv4_30y2e.py", line 1 package main ^^^^ SyntaxError: invalid syntax
s451103653
p02419
u484322211
1551253365
Python
Python3
py
Runtime Error
0
0
154
W = input().rstrip() text = "" while True: line = input().rstrip() if line == "END_OF_TEXTS": break text += line print(text.count(W))
Traceback (most recent call last): File "/tmp/tmp2mhqrb8i/tmphvn4r1z1.py", line 1, in <module> W = input().rstrip() ^^^^^^^ EOFError: EOF when reading a line
s621548589
p02419
u484322211
1551253442
Python
Python3
py
Runtime Error
0
0
142
W = input().rstrip() text = "" while True: line = input().rstrip() text += line if line == "END_OF_TEXTS": break print(text.count(W))
File "/tmp/tmpj5c3jszk/tmpmi0wknfy.py", line 5 text += line if line == "END_OF_TEXTS": break ^ SyntaxError: invalid syntax
s294359234
p02419
u697703458
1556005934
Python
Python3
py
Runtime Error
0
0
182
w=input() ll=list() while True: T=input() T=T.lower() if T=="END_OF_TEXT": break t=T.split() for i in t: ll.append(i) ans=ll.count(w) print(ans)
Traceback (most recent call last): File "/tmp/tmpewlhitm6/tmpaxmt7rfb.py", line 1, in <module> w=input() ^^^^^^^ EOFError: EOF when reading a line
s817906712
p02419
u967268722
1556122234
Python
Python3
py
Runtime Error
0
0
239
key_word = input().lower() counter = 0 while True: sentences = input().lower().split() if sentences == ['END_OF_TEXT']: break for sent in sentences: if sent == key_word: counter += 1 print(counter)
Traceback (most recent call last): File "/tmp/tmpvvgrgx4z/tmp7tvpu6d2.py", line 1, in <module> key_word = input().lower() ^^^^^^^ EOFError: EOF when reading a line
s825495348
p02419
u805716376
1556723175
Python
Python3
py
Runtime Error
0
0
131
a = input() cnt = 0 while 1: c = input().lower() if c = end_of_text: break cnt = c.split().count(a) print(cnt)
File "/tmp/tmp79_2r4hb/tmptajag7fx.py", line 5 if c = end_of_text: ^^^^^^^^^^^^^^^ SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
s296214419
p02419
u805716376
1556723194
Python
Python3
py
Runtime Error
0
0
132
a = input() cnt = 0 while 1: c = input().lower() if c == end_of_text: break cnt = c.split().count(a) print(cnt)
Traceback (most recent call last): File "/tmp/tmp6h9la8mj/tmp6_ne121o.py", line 1, in <module> a = input() ^^^^^^^ EOFError: EOF when reading a line
s238848630
p02419
u805716376
1556723425
Python
Python3
py
Runtime Error
0
0
134
a = input() cnt = 0 while 1: c = input().lower() if c = 'end_of_text': break cnt += c.split().count(a) print(cnt)
File "/tmp/tmpcmce9d3m/tmpy5vtvyhj.py", line 5 if c = 'end_of_text': ^^^^^^^^^^^^^^^^^ SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
s105327774
p02419
u025362139
1556763432
Python
Python3
py
Runtime Error
0
0
291
#coding: UTF-8 word = input() cnt = 0 while True: sentence = list(map(str, input().split())) for i in range(len(sentence)): if sentence[i] == 'END_OF_TEXT': break elif word == sentence[i]: cnt += 1 else: pass print(ctn)
Traceback (most recent call last): File "/tmp/tmpjq_e91kj/tmpilraatzl.py", line 3, in <module> word = input() ^^^^^^^ EOFError: EOF when reading a line
s779784855
p02419
u480501638
1558934784
Python
Python3
py
Runtime Error
0
0
145
ans=[] W=raw_input() while True: i = raw_input() if i == 'END_OF_TEXT': break ans+=[j.lower() for j in i.split()] print ans.count(W)
File "/tmp/tmprh1dzkp7/tmpqx6s4lf3.py", line 7 print ans.count(W) ^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s611949130
p02419
u480501638
1558934804
Python
Python3
py
Runtime Error
0
0
145
ans=[] W=raw_input() while True: i = raw_input() if i == 'END_OF_TEXT': break ans+=[j.lower() for j in i.split()] print ans.count(W)
File "/tmp/tmpyxnwgyz6/tmpnc106zee.py", line 7 print ans.count(W) ^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s431834567
p02419
u629874472
1559139488
Python
Python3
py
Runtime Error
0
0
128
w = input() li = list(input().split().swapcase()) cnt = 0 for i in range(len(li)): if w ==li[i]: cnt +=1 print(cnt)
Traceback (most recent call last): File "/tmp/tmp78sjpglj/tmpswmpk2zc.py", line 1, in <module> w = input() ^^^^^^^ EOFError: EOF when reading a line
s655473824
p02419
u629874472
1559139533
Python
Python3
py
Runtime Error
0
0
125
w = input() li = list(input().split().lower()) cnt = 0 for i in range(len(li)): if w ==li[i]: cnt +=1 print(cnt)
Traceback (most recent call last): File "/tmp/tmpcmvb93fl/tmpaa09k9m6.py", line 1, in <module> w = input() ^^^^^^^ EOFError: EOF when reading a line
s448062107
p02419
u966110132
1559281214
Python
Python3
py
Runtime Error
0
0
220
W = input() import sys T = [] for l in sys.stdin: T.append(int(l)) num = 0 for i in range(len(T)): while i.find(W) != -1: if i.find(W) != -1: num += 1 i.pop(i.find(W)) print(num)
Traceback (most recent call last): File "/tmp/tmprso05k9h/tmp7yxz0b00.py", line 1, in <module> W = input() ^^^^^^^ EOFError: EOF when reading a line
s802821361
p02419
u966110132
1559284148
Python
Python3
py
Runtime Error
0
0
225
W = input() import sys T = [] for i in range(4): T.append(input()) # for l in sys.stdin: # T.append(int(l)) num = 0 for i in T: while i.find(W) != -1: num += 1 i = i.replace(W, ' ', 1) print(num)
Traceback (most recent call last): File "/tmp/tmp4wz9f7om/tmpew9q6azr.py", line 1, in <module> W = input() ^^^^^^^ EOFError: EOF when reading a line
s797356152
p02419
u966110132
1559284175
Python
Python3
py
Runtime Error
0
0
225
W = input() import sys T = [] # for i in range(4): # T.append(input()) for l in sys.stdin: T.append(int(l)) num = 0 for i in T: while i.find(W) != -1: num += 1 i = i.replace(W, ' ', 1) print(num)
Traceback (most recent call last): File "/tmp/tmp33xx6q6e/tmpjtg_1l2b.py", line 1, in <module> W = input() ^^^^^^^ EOFError: EOF when reading a line
s566420004
p02419
u966110132
1559284803
Python
Python3
py
Runtime Error
0
0
191
computer Nurtures computer scientists and highly-skilled computer engineers who will create and exploit "knowledge" for the new era. Provides an outstanding computer environment. END_OF_TEXT
File "/tmp/tmpzmpelfuw/tmpa4mmw2tb.py", line 2 Nurtures computer scientists and highly-skilled computer engineers ^^^^^^^^ SyntaxError: invalid syntax
s212976024
p02419
u966110132
1559285547
Python
Python3
py
Runtime Error
0
0
269
import sys W = input() # T = sys.stdin.read() T = [] for i in range(4): a = input() a = a.replace(" ", "") T.append(a) print(T) num = 0 for i in T: while i.lower().find(W) != -1: num += 1 i = i.lower().replace(W, ' ', 1) print(num)
Traceback (most recent call last): File "/tmp/tmpo9dr0235/tmpyukwrrq1.py", line 3, in <module> W = input() ^^^^^^^ EOFError: EOF when reading a line
s508951830
p02419
u966110132
1559285786
Python
Python3
py
Runtime Error
0
0
324
import sys W = input() T = sys.stdin.read() for i in range(len(T)): T[i] = T[i].replace(" ", "") # T = [] # for i in range(4): # a = input() # a = a.replace(" ", "") # T.append(a) num = 0 for i in T: while i.lower().find(W) != -1: num += 1 i = i.lower().replace(W, ' ', 1) print(n...
Traceback (most recent call last): File "/tmp/tmp7j4m9fum/tmpf9mv5tzn.py", line 3, in <module> W = input() ^^^^^^^ EOFError: EOF when reading a line
s272784354
p02419
u535719732
1559295090
Python
Python3
py
Runtime Error
0
0
169
target = input() data = "" while True: string = input() if(string == "END_OF_FILE"): break data += string print("%d" %(data.lower().count(target.lower())))
Traceback (most recent call last): File "/tmp/tmp1y0dzhem/tmpfszvvvpi.py", line 1, in <module> target = input() ^^^^^^^ EOFError: EOF when reading a line
s157444984
p02419
u535719732
1559295312
Python
Python3
py
Runtime Error
0
0
160
target = input() data = "" while True: tmp = input() if(tmp == "END_OF_FILE"): break data += tmp print("%d" %(data.lower().count(target.lower())))
Traceback (most recent call last): File "/tmp/tmpqdsckvry/tmpfkvy4tcc.py", line 1, in <module> target = input() ^^^^^^^ EOFError: EOF when reading a line
s525008462
p02419
u907094926
1405821536
Python
Python
py
Runtime Error
20
4220
406
key = raw_input().upper() c = '' while True: s = raw_input() if s == 'END_OF_TEXT': break c = c + ' ' + s.upper() total = 0 ks = key[0] for i in range(len(c)): if c[i] == ks: cnt = 0 for k in range(len(key)): if c[i+k] == key[k]: cnt = cnt + 1 ...
File "/tmp/tmp95jphi1n/tmpg_du347t.py", line 20 print total ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s465906625
p02419
u140201022
1411063730
Python
Python
py
Runtime Error
0
0
532
#include<iostream> #include<cmath> #include<string> #include<cctype> #include<vector> #include<algorithm> using namespace std; int main(){ int ans=0; string w; cin>>w; transform(w.begin(), w.end(), w.begin(), ::toupper); for(;;){ string chk; cin>>c...
File "/tmp/tmp6ar11llf/tmp0kh5rber.py", line 7 using namespace std; ^^^^^^^^^ SyntaxError: invalid syntax
s692335009
p02419
u567380442
1421149779
Python
Python3
py
Runtime Error
0
0
170
import sys keyword = input().lowercase() count = 0 for line in sys.stdin: count += sum([1 for word in line.lowercase().split() if word == keyword]) print(count)
Traceback (most recent call last): File "/tmp/tmpibxtwcfu/tmpbt2htku1.py", line 3, in <module> keyword = input().lowercase() ^^^^^^^ EOFError: EOF when reading a line
s367238357
p02419
u823030818
1423185109
Python
Python3
py
Runtime Error
0
0
215
target = input() count = 0 while True: line = input().lower if line == 'END_OF_TEXT': break for word in line.split(): if word.lower == target.lower: count += 1 print(count)
Traceback (most recent call last): File "/tmp/tmp4b2wjodv/tmp346u6e8v.py", line 1, in <module> target = input() ^^^^^^^ EOFError: EOF when reading a line
s137941617
p02419
u879226672
1425361136
Python
Python
py
Runtime Error
0
0
271
T = [] while True: try: W = raw_input() T.append(raw_input().split()) if W == 'END_OF_TEXT': break except EOFError: break count = 0 for word in T: if word.lower() == W.lower(): count +=1 print count
File "/tmp/tmpc16_5ym4/tmpmk518959.py", line 15 print count ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s739808489
p02419
u879226672
1427821296
Python
Python
py
Runtime Error
0
0
180
W = raw_input() T = [] while True: t = raw_input().split() if t == 'END_OF_TEXT': break T.append(t) tot = 0 for w in T: if W in w: tot+=1 print tot
File "/tmp/tmpq8a7o_rq/tmpq_urzw5g.py", line 13 print tot ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s491693788
p02419
u879226672
1427821644
Python
Python
py
Runtime Error
0
0
196
W = raw_input() T = [] while True: t = raw_input().split() if t == 'END_OF_TEXT': break T.append(t) tot = 0 for w in T: if W.lower() in w.lower(): tot+=1 print tot
File "/tmp/tmpy56mf_x8/tmpwaotratp.py", line 13 print tot ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s585515835
p02419
u949338836
1428651847
Python
Python3
py
Runtime Error
0
0
177
#coding:utf-8 #1_9_A 2015.4.10 w = input().lower() c = 0 while True: t = input() if 'END_OF_TEXT' in t: break c += t.lower().split()lower().count(w) print(c)
File "/tmp/tmp49mio_2s/tmpu9zac37i.py", line 9 c += t.lower().split()lower().count(w) ^^^^^ SyntaxError: invalid syntax
s656168484
p02419
u017764209
1430130800
Python
Python
py
Runtime Error
0
0
232
c = 0 result = 0 while: st = raw_input() if c = 0: s_str = st elif 'END_OF_TEXT' in st: break else: if s_str in str: result = result + 1 else: pass print result
File "/tmp/tmpngq2lvwu/tmpwmy9t744.py", line 3 while: ^ SyntaxError: invalid syntax
s322605731
p02419
u017764209
1430130817
Python
Python
py
Runtime Error
0
0
232
c = 0 result = 0 while: st = raw_input() if c = 0: s_str = st elif 'END_OF_TEXT' in st: break else: if s_str in str: result = result + 1 else: pass print result
File "/tmp/tmpzrh7_rwp/tmp2m1pr289.py", line 3 while: ^ SyntaxError: invalid syntax
s568308417
p02419
u017764209
1430131586
Python
Python
py
Runtime Error
0
0
267
c = 0 result = 0 while True: st = raw_input() if c == 0: s_str = st elif 'END_OF_TEXT' in st: break else: c = c+1 if s_str in st: result = result + st.count(s_str) else: pass print result
File "/tmp/tmpjwcvxebh/tmpk0xbcr0n.py", line 15 print result ^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s312610958
p02419
u017764209
1430131828
Python
Python
py
Runtime Error
0
0
278
c = 0 result = 0 while True: st = raw_input() if c == 0: s_str = st elif 'END_OF_TEXT' in st: break else: c = c+1 if s_str in st: result = result + st.split(' ').count(s_str) else: pass print result
File "/tmp/tmpqstnt0af/tmpyhqth5ra.py", line 15 print result ^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s163748912
p02419
u604774382
1431756674
Python
Python3
py
Runtime Error
0
0
274
import sys w = sys.stdin.readline().rstrip().lower() cnt = 0 while True: lines = sys.stdin.readline().rstrip() if not lines: break words = lines.split( " " ) for i in range( len( words ) ): if w == words[i].lower(): cnt += 1 print( cnt )
File "/tmp/tmpnwbcnpis/tmpx0spbjpp.py", line 8 break TabError: inconsistent use of tabs and spaces in indentation
s603502198
p02419
u604774382
1431757785
Python
Python3
py
Runtime Error
0
0
273
import sys w = sys.stdin.readline().rstrip().lower() cnt = 0 while True: lines = sys.stdin.readline().rstrip() if not lines: break words = lines.split( " " ) for i in range( len( words ) ): if w == words[i].lower(): cnt = cnt + 1 print( cnt )
File "/tmp/tmpcbm75md0/tmp2uoiill6.py", line 8 break TabError: inconsistent use of tabs and spaces in indentation
s891111827
p02419
u604774382
1431757904
Python
Python3
py
Runtime Error
0
0
272
import sys w = sys.stdin.readline().rstrip().lower() cnt = 0 while True: lines = sys.stdin.readline().rstrip() if not lines: break words = lines.split( " " ) for i in range( len( words ) ): if w == words[i].lower(): cnt = cnt + 1 print( cnt )
File "/tmp/tmp59v96pl3/tmp_m9743kb.py", line 8 break TabError: inconsistent use of tabs and spaces in indentation
s547585869
p02419
u777299405
1434884445
Python
Python3
py
Runtime Error
0
0
98
import sys w = sys.stdin.readline().strip().lower() t = sys.stdin.read().lower.split() print(w, t)
Traceback (most recent call last): File "/tmp/tmp7ch42lqm/tmpi6xt8y62.py", line 3, in <module> t = sys.stdin.read().lower.split() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'builtin_function_or_method' object has no attribute 'split'
s887758274
p02419
u224288634
1444353161
Python
Python
py
Runtime Error
0
0
165
while True : count = 0 w = raw_input() if w=='END_OF_TEXT': break else : a_list = w.split() for i in a_list: if w in i : count += 1 print(count)
File "/tmp/tmplsph91yv/tmp2z8_fnx1.py", line 1 while True : ^ SyntaxError: invalid non-printable character U+0008
s522084346
p02419
u971748390
1454165697
Python
Python3
py
Runtime Error
0
0
146
word=input() while(1): sentence=input() if sentence == "END_OF_TEXT" break snt=sentence.lower() cnt=sentence.count(word) print(cnt)
File "/tmp/tmpnghxaem5/tmpk36pod6s.py", line 4 if sentence == "END_OF_TEXT" ^ SyntaxError: expected ':'
s708173722
p02419
u894114233
1456204450
Python
Python
py
Runtime Error
0
0
228
word=raw_input() sen=[] ct=0 while 1: sen=map(str,raw_input().split(" ")) if sen[-1:0]=="END_OF_TEXT": break else:continue for i in sen: i.lower() if i==word: ct+=1 else:continue print(ct)
Traceback (most recent call last): File "/tmp/tmp92ue4pug/tmp4xn4vopj.py", line 1, in <module> word=raw_input() ^^^^^^^^^ NameError: name 'raw_input' is not defined
s704495071
p02419
u075836834
1457863954
Python
Python3
py
Runtime Error
0
0
198
w = input().casefold() word_count = 0 while True: line = input() if line == "END_OF_TEXT": break word = line.split().casefold() word_count += word.count(w) print(word_count)
Traceback (most recent call last): File "/tmp/tmpdvbrgg_t/tmpxg6atg93.py", line 2, in <module> w = input().casefold() ^^^^^^^ EOFError: EOF when reading a line
s005789133
p02419
u075836834
1457863989
Python
Python3
py
Runtime Error
0
0
198
w = input().casefold() word_count = 0 while True: line = input().casefold() if line == "END_OF_TEXT": break word = line.split() word_count += word.count(w) print(word_count)
Traceback (most recent call last): File "/tmp/tmp5ewo_gnt/tmpj5wshoh0.py", line 2, in <module> w = input().casefold() ^^^^^^^ EOFError: EOF when reading a line
s940172291
p02419
u572790226
1459752546
Python
Python3
py
Runtime Error
0
0
273
word = input() number = 0 while True: row = input() if row == 'END_OF_TEXT': break row.replace('.', ' ') row.replace("'", " ") row.replace('-', ' ') wordlist = list(row.lower().split()) number += wordlist.count(word.lower()) print(number
File "/tmp/tmp0xll3rvh/tmpy1lj0yyk.py", line 12 print(number ^ SyntaxError: '(' was never closed
s498477192
p02419
u771917453
1461249422
Python
Python
py
Runtime Error
0
0
138
a = raw_input().lower() s = 0 while True: b = raw_input().lower() if b == 'END_OF_TEXT': break s += b.count(a) print s
File "/tmp/tmpu_92rjbt/tmpqleb90yk.py", line 8 print s ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s843937875
p02419
u100813820
1463648233
Python
Python3
py
Runtime Error
0
0
1284
# 19-String-Finding_a_Word.py # ?????????????´¢ # ??????????????? W ??¨?????? T ????????????????????????T ??????????????? W ?????°???????????????????????°????????????????????????????????? # ?????? T ????????????????????????????????????????????§????????????????????????????????? Ti ??¨???????????? # ???????????? Ti ????...
Traceback (most recent call last): File "/tmp/tmplupzse4l/tmptpl9snmx.py", line 36, in <module> w = input().lower() ^^^^^^^ EOFError: EOF when reading a line
s575215833
p02419
u617990214
1466247057
Python
Python
py
Runtime Error
0
0
202
target=raw_input() ct=0 flag=0 while True: line=raw_input().split(" ") for i in line: if i.lower()==target.lower: ct+=1 elif i.lower()=="END_OF_TEXT": print ct flag=1 if flag==1: break
File "/tmp/tmpyma4m9fv/tmpq35wy6c_.py", line 10 print ct ^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s611606365
p02419
u204883389
1470289402
Python
Python3
py
Runtime Error
0
0
171
W = input() while True: line = input() if line == 'END_OF_TEXT': break for s in line.split(): if s == W: count += 1 print(count)
Traceback (most recent call last): File "/tmp/tmpejw4cs59/tmplbl_lk10.py", line 1, in <module> W = input() ^^^^^^^ EOFError: EOF when reading a line
s437182928
p02419
u435917115
1470289430
Python
Python3
py
Runtime Error
0
0
196
W = input() count = 0 while True: line = input() if line == 'END_OF_TEXT' break for s in line.split(): if s == W: count += 1 print(count)
File "/tmp/tmp5fvfdmyc/tmpc8h_yu6b.py", line 6 if line == 'END_OF_TEXT' ^ SyntaxError: expected ':'
s914634436
p02419
u204883389
1470289436
Python
Python3
py
Runtime Error
0
0
179
W = input() while True: line = input() if line == 'END_OF_TEXT': break for s in line.lower().split(): if s == W: count += 1 print(count)
Traceback (most recent call last): File "/tmp/tmpkmjsstnq/tmpvcs09xyi.py", line 1, in <module> W = input() ^^^^^^^ EOFError: EOF when reading a line
s304073696
p02419
u514745787
1470289440
Python
Python3
py
Runtime Error
0
0
196
W =input() count = 0 while True: line = input() if line == 'END_OF_TEXT': break for s in line.lower().split(): if s = W: count += 1 print(count)
File "/tmp/tmpm96y4zm3/tmpq8c9satj.py", line 10 if s = W: ^^^^^ SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
s766991805
p02419
u498041957
1470289442
Python
Python3
py
Runtime Error
0
0
163
w = input() count = 0 while True: line = input() if line == 'END_OF_TEXT' break for s in line.lower()split(): count += 1 print(count)
File "/tmp/tmpqz9nqd4z/tmpjzyuy3e8.py", line 6 if line == 'END_OF_TEXT' ^ SyntaxError: expected ':'
s269929676
p02419
u514745787
1470289482
Python
Python3
py
Runtime Error
0
0
197
W = input() count = 0 while True: line = input() if line == 'END_OF_TEXT': break for s in line.lower().split(): if s = W: count += 1 print(count)
File "/tmp/tmpritbdtw2/tmpezqz0a6n.py", line 10 if s = W: ^^^^^ SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
s112244911
p02419
u085472528
1470289501
Python
Python3
py
Runtime Error
0
0
192
W = input() while True: line = input() if line == 'END_OF_TEXT': break for s in line.lower().split(): if s == W: count += 1 print(count)
Traceback (most recent call last): File "/tmp/tmp0ly9eiox/tmp5n8zt3p1.py", line 1, in <module> W = input() ^^^^^^^ EOFError: EOF when reading a line
s426829906
p02419
u498041957
1470289505
Python
Python3
py
Runtime Error
0
0
195
W = input() count = 0 while True: line = input() if line == 'END_OF_TEXT' break for s in line.lower()split(): if s == W: count += 1 print(count)
File "/tmp/tmpetar8c3k/tmpmv46qsd6.py", line 6 if line == 'END_OF_TEXT' ^ SyntaxError: expected ':'
s190567686
p02419
u644636020
1470289512
Python
Python3
py
Runtime Error
0
0
217
W = input() count = 0 while True: line = input() if line == 'END_OF_TEXT': break for s in line.lower.split(): if s == W: count += 1 print(count)
Traceback (most recent call last): File "/tmp/tmp0kvsjxvu/tmpwz2qf5po.py", line 1, in <module> W = input() ^^^^^^^ EOFError: EOF when reading a line
s174425216
p02419
u435917115
1470289519
Python
Python3
py
Runtime Error
0
0
188
W = input() count = 0 while True: line = input() if line == 'END_OF_TEXT' break for s in line.lower().split(): if s == W: count += 1 print(count)
File "/tmp/tmp2_pqce6c/tmpyu37jfj8.py", line 6 if line == 'END_OF_TEXT' ^ SyntaxError: expected ':'
s943029188
p02419
u514745787
1470289524
Python
Python3
py
Runtime Error
0
0
197
W = input() count = 0 while True: line = input() if line == 'END_OF_TEXT': break for s in line.lower().split(): if s = W: count += 1 print(count)
File "/tmp/tmp122lsbh9/tmp2exoybll.py", line 10 if s = W: ^^^^^ SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
s252434627
p02419
u498041957
1470289550
Python
Python3
py
Runtime Error
0
0
201
W = input() count = 0 while True: line = input() if line == 'END_OF_TEXT': break for s in line.lower()split(): if s == W: count += 1 print(count)
File "/tmp/tmp2i3__u3v/tmpopqkuutm.py", line 9 for s in line.lower()split(): ^ IndentationError: unindent does not match any outer indentation level
s636808553
p02419
u435917115
1470289565
Python
Python3
py
Runtime Error
0
0
188
W = input() count = 0 while True: line = input() if line == 'END_OF_TEXT' break for s in line.lower().split(): if s == W: count += 1 print(count)
File "/tmp/tmpevneqmvw/tmpbisoxonh.py", line 6 if line == 'END_OF_TEXT' ^ SyntaxError: expected ':'
s768437998
p02419
u435917115
1470289628
Python
Python3
py
Runtime Error
0
0
196
W = input().lower() count = 0 while True: line = input() if line == 'END_OF_TEXT' break for s in line.lower().split(): if s == W: count += 1 print(count)
File "/tmp/tmpr_xi4vyb/tmpjivlfmmy.py", line 6 if line == 'END_OF_TEXT' ^ SyntaxError: expected ':'
s914951736
p02419
u600195957
1470289689
Python
Python3
py
Runtime Error
0
0
185
W = input() count = 0 while True: line = input() if line == 'END_OF_TEXT': break for s in line.lower.split(): if s == W: count += 1 print(count)
Traceback (most recent call last): File "/tmp/tmptbi4ysq0/tmpok2wpzir.py", line 1, in <module> W = input() ^^^^^^^ EOFError: EOF when reading a line
s683188596
p02419
u661284763
1470289701
Python
Python3
py
Runtime Error
0
0
180
w = input() while True line = input() if line == 'END_OF_TEXT': break for s in line.lower().split(): if s == W: count += 1 print(count)
File "/tmp/tmpcz8ufd3n/tmpzvxi2uw7.py", line 2 while True ^ SyntaxError: expected ':'
s445560434
p02419
u600195957
1470289715
Python
Python3
py
Runtime Error
0
0
185
W = input() count = 0 while True: line = input() if line == 'END_OF_TEXT': break for s in line.lower.split(): if s == W: count += 1 print(count)
Traceback (most recent call last): File "/tmp/tmpi20za3vg/tmptlwc5hr3.py", line 1, in <module> W = input() ^^^^^^^ EOFError: EOF when reading a line
s925845197
p02419
u600195957
1470289754
Python
Python3
py
Runtime Error
0
0
185
W = input() count = 0 while True: line = input() if line == 'END_OF_TEXT': break for s in line.lower.split(): if s == W: count += 1 print(count)
Traceback (most recent call last): File "/tmp/tmp3feo16i2/tmpxoffg9gd.py", line 1, in <module> W = input() ^^^^^^^ EOFError: EOF when reading a line
s198387880
p02419
u661284763
1470289796
Python
Python3
py
Runtime Error
0
0
188
w = input().lower() while True line = input() if line == 'END_OF_TEXT': break for s in line.lower().split(): if s == W: count += 1 print(count)
File "/tmp/tmprc1k7tt6/tmp29qaby9w.py", line 2 while True ^ SyntaxError: expected ':'
s363151004
p02419
u661284763
1470289809
Python
Python3
py
Runtime Error
0
0
188
w = input().lower() while True line = input() if line == 'END_OF_TEXT': break for s in line.lower().split(): if s == W: count += 1 print(count)
File "/tmp/tmpur5bx9sd/tmpg9x2sded.py", line 2 while True ^ SyntaxError: expected ':'
s792068738
p02419
u661284763
1470289864
Python
Python3
py
Runtime Error
0
0
188
W = input().lower() while True line = input() if line == 'END_OF_TEXT': break for s in line.lower().split(): if s == W: count += 1 print(count)
File "/tmp/tmpl02h73yx/tmpju3zf3tl.py", line 2 while True ^ SyntaxError: expected ':'
s986797116
p02419
u661284763
1470289881
Python
Python3
py
Runtime Error
0
0
199
w= input().lower() count = 0 while True: line = input() if line == 'END_OF_TEXT': break for s in line.lower().split(): if s == W: count += 1 print(count)
Traceback (most recent call last): File "/tmp/tmphbx32kfl/tmp97epopxe.py", line 1, in <module> w= input().lower() ^^^^^^^ EOFError: EOF when reading a line
s234007873
p02419
u661284763
1470289926
Python
Python3
py
Runtime Error
0
0
223
W = input() count = 0 while True: line = input() if line == 'END_OF_TEXT': break for s in line.lower().split(): if s == W: count += 1 print(count
File "/tmp/tmp6vk64zty/tmpxqb5_oej.py", line 15 print(count ^ SyntaxError: '(' was never closed
s326820635
p02419
u998435601
1473084014
Python
Python
py
Runtime Error
0
0
149
# -*- coding: utf-8 -*- w = raw_input() c = 0 while 1: t = raw_input().lower() if t=="END_OF_TEXT": break tt = t.split() c += tt.count(w) print c
File "/tmp/tmp4k9_llqa/tmppsixniop.py", line 9 print c ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s507922407
p02419
u998435601
1473084066
Python
Python3
py
Runtime Error
0
0
157
# -*- coding: utf-8 -*- w = raw_input().upper() c = 0 while 1: t = raw_input().upper() if t=="END_OF_TEXT": break tt = t.split() c += tt.count(w) print c
File "/tmp/tmp6nf90h6o/tmpj0mmm8lm.py", line 9 print c ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s469835934
p02419
u084303209
1476175357
Python
Python
py
Runtime Error
0
0
188
s = raw_input() s = s[:-1] cnt = 0 while True: text = raw_input() if 'END_OF_TEXT' == text[0:-1]: break while text.find(s)>=0: text = text[text.find(s)+len(s):] cnt += 1 print cnt
File "/tmp/tmpx0gb84bj/tmpej3u5xq5.py", line 11 print cnt ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s320090627
p02419
u831244171
1477661243
Python
Python
py
Runtime Error
0
0
155
W = raw_input().lower() T= "" while True: t = raw_input().lower() if t == "END_OF_TEXT": break; else: T += t print(t.count(W))
Traceback (most recent call last): File "/tmp/tmpw4h25a9w/tmp_xe1m494.py", line 1, in <module> W = raw_input().lower() ^^^^^^^^^ NameError: name 'raw_input' is not defined