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
s685578609
p02420
u085472528
1470290721
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)
Traceback (most recent call last): File "/tmp/tmpuhkb51c1/tmp1g51u6qn.py", line 2, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s364479104
p02420
u498041957
1470290925
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)
File "/tmp/tmpjqkpx7xb/tmpui_475bg.py", line 6 m = int(input()) ^ IndentationError: unindent does not match any outer indentation level
s692676752
p02420
u264632995
1470292496
Python
Python3
py
Runtime Error
0
0
227
n = int(input()) taro = 0 hanako = 0 for ni in range(n): t, h = input.split() if t < h: hanako += 3 elif t > h: taro+= 3 else: hanako += 1 taro += 1 print(taro, hanako)
Traceback (most recent call last): File "/tmp/tmpotldob5m/tmpxsgy5nah.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s989921833
p02420
u264632995
1470292535
Python
Python3
py
Runtime Error
0
0
225
n = int(input()) taro = 0 hanako = 0 for ni in range(n): t, h = input().split() if t < h: hanako += 3 elif t > h: taro += 3 else: hanako += 1 taro += 1 print(taro, hanako)
Traceback (most recent call last): File "/tmp/tmp2ixfqh5x/tmp7peojs5m.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s916102098
p02420
u998435601
1473087806
Python
Python
py
Runtime Error
0
0
227
# -*- coding: utf-8 -*- import sys lines = sys.stdin.readlines() l = 0 while lines[l]!="-": s = lines[l].replace('\n','') n = lines[l+1] l += 2 t = sum([lines[i] for i in xrange(l, l+n)]) % len(s) print s[t:]+s[:t] l += n
File "/tmp/tmp4vy1ar0o/tmpufn0ek52.py", line 10 print s[t:]+s[:t] ^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s683497957
p02420
u998435601
1473088449
Python
Python
py
Runtime Error
0
0
229
# -*- coding: utf-8 -*- import sys lines = sys.stdin.readlines() l = 0 while not ("-" in lines[l]): s = lines[l].replace('\n','') n = int(lines[l+1]) l += 2 t = sum(map(int, lines[l, l+n])) % len(s) print s[t:]+s[:t] l += n
File "/tmp/tmp6cgagcol/tmpby_no5w3.py", line 10 print s[t:]+s[:t] ^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s236506809
p02420
u831244171
1477832688
Python
Python3
py
Runtime Error
0
0
412
n = int(input()) Taro = 0 Hanako = 0 for i in range(n): t,h = input().split() for j in range(min(len(t),len(h))): if t == h: Hanako += 1 Taro += 1 break elif ord(t[j:j+1]) > ord(h[j:j+1]): Taro += 3 break elif ord(t[j:j+1]) < or...
Traceback (most recent call last): File "/tmp/tmp978r_d69/tmpl_9mgup0.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s159021204
p02420
u831244171
1477832737
Python
Python3
py
Runtime Error
0
0
408
n = int(input()) Taro = 0 Hanako = 0 for i in range(n): t,h = input().split() for j in range(min(len(t),len(h))): if t == h: Hanako += 1 Taro += 1 break if ord(t[j:j+1]) > ord(h[j:j+1]): Taro += 3 break if ord(t[j:j+1]) < ord(h[...
Traceback (most recent call last): File "/tmp/tmp0xoq_5bf/tmp2j3espce.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s410637539
p02420
u801346721
1478338779
Python
Python3
py
Runtime Error
0
0
238
import sys dataset = sys.stdin.readlines() seq = 0 l = len(dataset) while seq <= l: s = dataset[seq] n = int(dataset[seq+1]) for i in range(seq + 2, seq + 2 + n): h = int(dataset[seq]) s = s[h:] + s[0:h] print(s) seq += 2 + n
Traceback (most recent call last): File "/tmp/tmp_2sr_07g/tmpjof4bcoi.py", line 8, in <module> s = dataset[seq] ~~~~~~~^^^^^ IndexError: list index out of range
s695722940
p02420
u801346721
1478338862
Python
Python3
py
Runtime Error
0
0
249
import sys dataset = sys.stdin.readlines() seq = 0 l = len(dataset) while dataset[seq] != '-': s = dataset[seq] n = int(dataset[seq+1]) for i in range(seq + 2, seq + 2 + n): h = int(dataset[seq]) s = s[h:] + s[0:h] print(s) seq += 2 + n
Traceback (most recent call last): File "/tmp/tmpxucbrp6f/tmp1144zn1z.py", line 7, in <module> while dataset[seq] != '-': ~~~~~~~^^^^^ IndexError: list index out of range
s990314151
p02420
u801346721
1478338968
Python
Python3
py
Runtime Error
0
0
247
import sys dataset = sys.stdin.readlines() seq = 0 l = len(dataset) while dataset[seq] != '-': s = dataset[seq] n = int(dataset[seq+1]) for i in range(seq + 2, seq + 2 + n): h = int(dataset[i]) s = s[h:] + s[0:h] print(s) seq += 2 + n
Traceback (most recent call last): File "/tmp/tmpcuzmlmn1/tmpzc6i6ooq.py", line 7, in <module> while dataset[seq] != '-': ~~~~~~~^^^^^ IndexError: list index out of range
s465974766
p02420
u801346721
1478339050
Python
Python3
py
Runtime Error
0
0
247
import sys dataset = sys.stdin.readlines() seq = 0 l = len(dataset) while dataset[seq] != '-': s = dataset[seq] n = int(dataset[seq+1]) for i in range(seq + 2, seq + 2 + n): h = int(dataset[i]) s = s[h:] + s[0:h] print(s) seq += 2 + n
Traceback (most recent call last): File "/tmp/tmpk7y65n82/tmpa_4mzg64.py", line 7, in <module> while dataset[seq] != '-': ~~~~~~~^^^^^ IndexError: list index out of range
s066282114
p02420
u801346721
1478339476
Python
Python3
py
Runtime Error
0
0
233
import sys dataset = sys.stdin.readlines() seq = 0 while dataset[seq] != '-': s = dataset[seq] n = int(dataset[seq+1][0]) for i in range(seq + 2, seq + 2 + n): h = int(dataset[i]) s = s[h:] + s[0:h] print(s) seq += 2 + n
Traceback (most recent call last): File "/tmp/tmp95ngjbcm/tmp5iuzlmb4.py", line 6, in <module> while dataset[seq] != '-': ~~~~~~~^^^^^ IndexError: list index out of range
s105106470
p02420
u801346721
1478339648
Python
Python3
py
Runtime Error
0
0
233
import sys dataset = sys.stdin.readlines() seq = 0 while dataset[seq] != '-': s = dataset[seq] n = int(dataset[seq+1][0]) for i in range(seq + 2, seq + 2 + n): h = int(dataset[i]) s = s[h:] + s[0:h] print(s) seq += 2 + n
Traceback (most recent call last): File "/tmp/tmp0yb0ly0s/tmp7ly6_vm3.py", line 6, in <module> while dataset[seq] != '-': ~~~~~~~^^^^^ IndexError: list index out of range
s164645046
p02420
u801346721
1478340260
Python
Python3
py
Runtime Error
0
0
272
import sys dataset = sys.stdin.readlines() seq = 0 while dataset[seq] != '-\n': s = dataset[seq] len = len(s) - 1 s = s[:len] seq += 1 n = int(dataset[seq][0]) seq += 1 for i in range(seq, seq + n): h = int(dataset[i]) s = s[h:] + s[0:h] print(s) seq += n
Traceback (most recent call last): File "/tmp/tmp7yqi9jh2/tmpi8r3bkra.py", line 6, in <module> while dataset[seq] != '-\n': ~~~~~~~^^^^^ IndexError: list index out of range
s686318428
p02420
u801346721
1478340307
Python
Python3
py
Runtime Error
0
0
275
import sys dataset = sys.stdin.readlines() seq = 0 while dataset[seq] != '-\n': s = dataset[seq] len = len(s) - 1 s = s[:len] seq += 1 n = int(dataset[seq][0]) seq += 1 for i in range(seq, seq + n): h = int(dataset[i][0]) s = s[h:] + s[0:h] print(s) seq += n
Traceback (most recent call last): File "/tmp/tmph8d3m1h8/tmpvozr1mn4.py", line 6, in <module> while dataset[seq] != '-\n': ~~~~~~~^^^^^ IndexError: list index out of range
s326511180
p02420
u801346721
1478340640
Python
Python3
py
Runtime Error
0
0
267
import sys dataset = sys.stdin.readlines() seq = 0 while dataset[seq] != '-': s = dataset[seq] l = len(s) - 1 s = s[:l] seq += 1 n = int(dataset[seq][0]) seq += 1 for i in range(seq, seq + n): h = int(dataset[i][0]) s = s[h:] + s[0:h] print(s) seq += n
Traceback (most recent call last): File "/tmp/tmpaftjby6l/tmps9sskd_o.py", line 6, in <module> while dataset[seq] != '-': ~~~~~~~^^^^^ IndexError: list index out of range
s009474069
p02420
u801346721
1478340672
Python
Python3
py
Runtime Error
40
7680
269
import sys dataset = sys.stdin.readlines() seq = 0 while dataset[seq] != '-\n': s = dataset[seq] l = len(s) - 1 s = s[:l] seq += 1 n = int(dataset[seq][0]) seq += 1 for i in range(seq, seq + n): h = int(dataset[i][0]) s = s[h:] + s[0:h] print(s) seq += n
Traceback (most recent call last): File "/tmp/tmp61loxde3/tmp2ucxipus.py", line 6, in <module> while dataset[seq] != '-\n': ~~~~~~~^^^^^ IndexError: list index out of range
s129915791
p02420
u086566114
1479483848
Python
Python
py
Runtime Error
0
0
245
while True: cards = raw_input() if cards == '-': break shuffle_num = int(raw_input()) counter = 0 while counter < num: h = int(raw_input) cards = cards[h:] + cards[:h] num += 1 print(cards)
Traceback (most recent call last): File "/tmp/tmpwsm9gt0v/tmp_m_dd8f8.py", line 2, in <module> cards = raw_input() ^^^^^^^^^ NameError: name 'raw_input' is not defined
s147635287
p02420
u865138391
1482756726
Python
Python3
py
Runtime Error
0
0
195
while True: C = input() if C == "-": break count = int(input()) shuffle = [int(input() for i in range(count))] for h in shuffle: C = C[h:] + C[:h] print(C)
Traceback (most recent call last): File "/tmp/tmp9s14pgu5/tmpmza7qzlu.py", line 2, in <module> C = input() ^^^^^^^ EOFError: EOF when reading a line
s837895495
p02420
u513411598
1485082171
Python
Python3
py
Runtime Error
0
0
166
while(1): n = input() if n == '_': exit() m = int(input()) for i in range(m): h = int(input()) n = n[h:] + n[0:h] print(n)
Traceback (most recent call last): File "/tmp/tmpg5zsvkng/tmpgpb5s8t9.py", line 2, in <module> n = input() ^^^^^^^ EOFError: EOF when reading a line
s923847021
p02420
u130834228
1489126564
Python
Python3
py
Runtime Error
0
0
149
while True: W = list(input()) if W[0] == '-': break times = int(input()) for i in range(times): h = int(input()) W = W[h:]+W[0:h] print(X)
Traceback (most recent call last): File "/tmp/tmpr71u12ix/tmpsxhfpybc.py", line 2, in <module> W = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s019841035
p02420
u650790815
1496386176
Python
Python3
py
Runtime Error
0
0
149
while 1: s = input() if s == '-':break n = input() for i in range(n): h = int(input()) s = s[h:] + s[:h] print(s)
Traceback (most recent call last): File "/tmp/tmp2gm1hvu9/tmphfaiuvv6.py", line 2, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s840437791
p02420
u650790815
1496386312
Python
Python3
py
Runtime Error
0
0
149
while 1: s = input() if s == '-':break n = input() for i in range(n): h = int(input()) s = s[h:] + s[:h] print(s)
Traceback (most recent call last): File "/tmp/tmphn4o4hkp/tmpdd3vx5bv.py", line 2, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s664932103
p02420
u884012707
1496739066
Python
Python3
py
Runtime Error
0
0
158
while True: s=input() if s.isdigit(): strings=strings[len(strings)-int(s)-1:]+strings[:int(s)] else : strings=s print(strings)
Traceback (most recent call last): File "/tmp/tmpe2ekjyhy/tmp6iq8ebom.py", line 2, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s994090617
p02420
u498511622
1502023879
Python
Python3
py
Runtime Error
0
0
148
while True: al=input() m=int(input()) for i in range(m): n = int(input()) if n=='-': break else: al= al[n:] + al[:n] print(al)
Traceback (most recent call last): File "/tmp/tmpi9oervty/tmpnfd951z8.py", line 2, in <module> al=input() ^^^^^^^ EOFError: EOF when reading a line
s732120020
p02420
u853619096
1502087467
Python
Python3
py
Runtime Error
0
0
244
x=list(input()) import re p=r'\d' while True: s=str(input()) if not re.match(p,s): print(a+b) x = list(input()) elif s=="-": print(a+b) break else: a, b = x[:len(x) - int(s)], x[-int(s):]
Traceback (most recent call last): File "/tmp/tmp56zzl6fq/tmpggohb907.py", line 1, in <module> x=list(input()) ^^^^^^^ EOFError: EOF when reading a line
s959384770
p02420
u853619096
1502087777
Python
Python3
py
Runtime Error
0
0
262
x=list(input()) import re p=r'\d' while True: s=str(input()) if not re.match(p,s): print(a+b) print('') x = list(input()) elif s=="-": print(a+b) break else: a, b = x[:len(x) - int(s)], x[-int(s):]
Traceback (most recent call last): File "/tmp/tmpo1ivptlc/tmpa9xpnohl.py", line 1, in <module> x=list(input()) ^^^^^^^ EOFError: EOF when reading a line
s533071144
p02420
u853619096
1502087795
Python
Python3
py
Runtime Error
0
0
244
x=list(input()) import re p=r'\d' while True: s=str(input()) if not re.match(p,s): print(a+b) x = list(input()) elif s=="-": print(a+b) break else: a, b = x[:len(x) - int(s)], x[-int(s):]
Traceback (most recent call last): File "/tmp/tmprvqk0ebl/tmpetgzhhug.py", line 1, in <module> x=list(input()) ^^^^^^^ EOFError: EOF when reading a line
s711820160
p02420
u105694406
1504159491
Python
Python3
py
Runtime Error
0
0
139
cards = input() shuffle = input() while shuffle != '-': n = int(shuffle) cards = cards[n:] + cards[:n] shuffle = input() print(cards)
Traceback (most recent call last): File "/tmp/tmpgcghdnb5/tmp3oircc44.py", line 1, in <module> cards = input() ^^^^^^^ EOFError: EOF when reading a line
s401751419
p02420
u933096856
1505451450
Python
Python3
py
Runtime Error
0
0
183
while True: a=input() if a=='-': break else: n=int(input()) for i in range(n): h=int(input()) a=a[h:]+a[:h] print(a)
File "/tmp/tmp0ubekh26/tmpk3apt5m_.py", line 5 else: ^ IndentationError: unindent does not match any outer indentation level
s930453428
p02420
u664228906
1508393156
Python
Python3
py
Runtime Error
0
0
132
str = input() while not str == '-': n = int(input()) for i in range(n): str = str[n:] + [:n-1] print(str) str = input()
File "/tmp/tmpmb2sfttp/tmpedfbvqes.py", line 5 str = str[n:] + [:n-1] ^ SyntaxError: invalid syntax
s467725347
p02420
u488038316
1511447769
Python
Python3
py
Runtime Error
0
0
416
# -*-coding:utf-8 import numpy as np def main(): while True: inputLine = list(input()) if(inputLine[0] == '-'): break deck = np.array(inputLine) shuffleTime = int(input()) for i in range(shuffleTime): rollNumber = int(input()) deck = ...
Traceback (most recent call last): File "/tmp/tmpu2pvb6u3/tmpght5rt3s.py", line 24, in <module> main() File "/tmp/tmpu2pvb6u3/tmpght5rt3s.py", line 8, in main inputLine = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s092840663
p02420
u150984829
1513669760
Python
Python3
py
Runtime Error
0
0
144
while 1: a=input() if a.isdigit(): if c>0:c+=int(a) else:c=1 else: if c!=0:print((s*2)[c%l-1:][:l]) if'-'==a:break s=a;l=len(s);c=0
Traceback (most recent call last): File "/tmp/tmpf6dyolvo/tmpgt0_7kwa.py", line 2, in <module> a=input() ^^^^^^^ EOFError: EOF when reading a line
s011709383
p02420
u126478680
1524679631
Python
Python3
py
Runtime Error
0
0
241
def shuffle(text, n): return text[n+1:] + text[:n] while True: sent = input() if sent == '-': break m = int(input()) hs = [int(input()) for i in range(m)] for h in hs: sent = shuffle(sent) print(sent)
Traceback (most recent call last): File "/tmp/tmpgo2miunf/tmpt_c9mqe1.py", line 6, in <module> sent = input() ^^^^^^^ EOFError: EOF when reading a line
s373595765
p02420
u876060624
1525084395
Python
Python3
py
Runtime Error
0
0
125
A = input() while(A != '-'): m = int(input) for i in range(m): h = int(input()) A = A[h:]+A[:h] print(A) A = input()
Traceback (most recent call last): File "/tmp/tmpgtny97b4/tmp12vn9d75.py", line 1, in <module> A = input() ^^^^^^^ EOFError: EOF when reading a line
s597792003
p02420
u313089641
1526481088
Python
Python3
py
Runtime Error
0
0
360
from collections import deque def shuffle(target, num): que = deque(list(target)) [que.append(que.popleft()) for _ in range(int(num))] return "".join(que) text = input() count = input() while text != '-': for _ in range(int(count)): n = input() text = shuffle(text, n) print(text) ...
Traceback (most recent call last): File "/tmp/tmpkycdji4_/tmp11p121zv.py", line 9, in <module> text = input() ^^^^^^^ EOFError: EOF when reading a line
s668695185
p02420
u614197626
1528702321
Python
Python3
py
Runtime Error
0
0
152
while True: _=input() if _ == '-': break for i in range(int(input())): l=int(input()) _=_[l:]+[:l] print(_)
File "/tmp/tmp46rgd6gl/tmpfx0f_vbk.py", line 7 _=_[l:]+[:l] ^ SyntaxError: invalid syntax
s446391361
p02420
u763301852
1363427571
Python
Python
py
Runtime Error
0
0
164
while True: s = raw_input() if s == "-": break for i in int(raw_input()): h = int(raw_input()) s = s[h:] + s[0:h] print(s)
Traceback (most recent call last): File "/tmp/tmpzbmq_kih/tmpecthmgrd.py", line 2, in <module> s = raw_input() ^^^^^^^^^ NameError: name 'raw_input' is not defined
s881028573
p02420
u782850731
1379642784
Python
Python
py
Runtime Error
0
0
439
#include <stdio.h> int main(void) { char in[201], tmp[201]; int m, n, i, j; while (1) { scanf("%200s ", in); if (in[0] == '-') break; scanf("%d ", &m); while (m--) { scanf("%d ", &n); for (i = 0; in[i+n] != '\0'; i++) { tmp[i] = in[i+n]; } for (j = 0; j < n; j++) { tmp[i+j] = in[j]; ...
File "/tmp/tmpiq1dm0_6/tmptb70ul0a.py", line 2 int main(void) { ^^^^ SyntaxError: invalid syntax
s021345277
p02420
u140201022
1382281395
Python
Python
py
Runtime Error
0
0
155
while 1: w=raw_input() if w=='-': break n=int(raw_input()) for i in xrange(n): l=int(raw_input()) w=w[l:]+l[:l] print w
File "/tmp/tmptr1bwsms/tmp2z3o51vo.py", line 8 print w ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s125142059
p02420
u633068244
1393334134
Python
Python
py
Runtime Error
0
0
199
while True: card = raw_input() if card == "-" break m = int(raw_input()) for shuffle in range(m): h =int(raw_input()) card = card[h:] + card[:h] print card
File "/tmp/tmpw8yyp1d5/tmp907o_7r1.py", line 3 if card == "-" ^ SyntaxError: expected ':'
s495013779
p02421
u400765446
1531151309
Python
Python3
py
Runtime Error
20
5600
756
def main(): TaroScore = HanaScore = 0 n = int(input()) for _ in range(n): [Taro, Hana] = list(input().lower().split()) lenT = len(Taro) lenH = len(Hana) if Taro == Hana: TaroScore += 1 HanaScore += 1 else: for _ in range...
Traceback (most recent call last): File "/tmp/tmps09tbpr_/tmpwe3tejbn.py", line 30, in <module> main() File "/tmp/tmps09tbpr_/tmpwe3tejbn.py", line 4, in main n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s780891510
p02421
u317583692
1535467955
Python
Python3
py
Runtime Error
0
0
217
Taro = 0 Hanako = 0 n = int(input()) for i in range(n): T,H = map(str, input().split()) if T > H: T += 3 elif T = H: T += 1 H += 1 else: H += 3 print(Taro, Hanako)
File "/tmp/tmp_71_z5p3/tmp3llti0fq.py", line 11 elif T = H: ^^^^^ SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
s712516244
p02421
u317583692
1535467984
Python
Python3
py
Runtime Error
0
0
233
Taro = 0 Hanako = 0 n = int(input()) for i in range(n): T,H = map(str, input().split()) if T > H: Taro += 3 elif T = H: Taro += 1 Hanako += 1 else: Hanako += 3 print(Taro, Hanako)
File "/tmp/tmpeo3s47_q/tmpsnfvco99.py", line 11 elif T = H: ^^^^^ SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
s625502956
p02421
u805716376
1556724630
Python
Python3
py
Runtime Error
0
0
214
N=int(input()) x=0 y=0 for i in range(N):     a,b=input().split()     if a<b:         y+=3     elif a==b:         x+=1         y+=1     else:         x+=3 print(x,y)
File "/tmp/tmp9dio03h2/tmpnko3a2gg.py", line 5     a,b=input().split() ^ SyntaxError: invalid non-printable character U+00A0
s609172623
p02421
u535719732
1559302000
Python
Python3
py
Runtime Error
0
0
242
n = int(input()) tp = 0 hp = 0 for i in range(n): tarou, hanako = map(str,input().split()) if(tarou > hanko): tp += 3 elif(tarou < hanako): hp += 3 else: tp += 1 hp += 1 print("%d %d" %(tp,hp))
Traceback (most recent call last): File "/tmp/tmp5tgjgfc3/tmp79pkaxm9.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s574181682
p02421
u839573768
1423368542
Python
Python
py
Runtime Error
0
0
329
n = input() #カードの枚数 taro = 0 hanako = 0 for i in range(n): x = map(str, raw_input().split()) #x[0]:太郎,x[1]:花子 #print x[0] #print x[1] if(x[0] > x[1]): taro += 3 elif(x[0] == x[1]): taro += 1 hanako += 1 else: hanako += 3 print '%d %d' %(taro, hanako)
File "/tmp/tmpo42mq5gq/tmpknui0rkx.py", line 15 print '%d %d' %(taro, hanako) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s939589737
p02421
u839573768
1423368657
Python
Python
py
Runtime Error
0
0
337
n = input() #カードの枚数 taro = 0 hanako = 0 for i in range(n): x = map(str, raw_input().split()) #x[0]:太郎,x[1]:花子 #print x[0] #print x[1] if(x[0] > x[1]): taro += 3 elif(x[0] == x[1]): taro += 1 hanako += 1 else: hanako += 3 print '%d %d' %(taro, hanako) exit(0)
File "/tmp/tmpyun9qbbl/tmp78iursfb.py", line 15 print '%d %d' %(taro, hanako) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s463383652
p02421
u017764209
1430144028
Python
Python
py
Runtime Error
0
0
398
dic = {'dog':5,'fish':4,'tiger':3,'cat':2,'lion':1} taro_p = 0 hana_p = 0 for i in range(input()): taro,hana = raw_input().split(' ') if dic[taro] > dic[hana]: taro_p = taro_p + 3 hana_p = hana_p + 0 elif dic[taro] < dic[hana]: taro_p = taro_p + 0 hana_p = hana_p + 3 else...
File "/tmp/tmpy42zhyyu/tmptt2qx301.py", line 16 print taro_p,hana_p ^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s216320852
p02421
u467309160
1443581908
Python
Python3
py
Runtime Error
0
0
333
import sys def shuffle( cards ): h = int( sys.stdin.readline() ) cards = cards[ h : ] + cards[ 0 : h ] return cards while True: cards = sys.stdin.readline().rstrip() if '-' == cards: break m = int( sys.stdin.readline() ) for i in range( m ): cards = shuffle( cards ) p...
Traceback (most recent call last): File "/tmp/tmphuku9i59/tmpbusxz7t8.py", line 12, in <module> m = int( sys.stdin.readline() ) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: ''
s743034847
p02421
u467309160
1443581973
Python
Python3
py
Runtime Error
0
0
333
import sys def shuffle( cards ): h = int( sys.stdin.readline() ) cards = cards[ h : ] + cards[ 0 : h ] return cards while True: cards = sys.stdin.readline().rstrip() if '-' == cards: break m = int( sys.stdin.readline() ) for i in range( m ): cards = shuffle( cards ) p...
Traceback (most recent call last): File "/tmp/tmpwp53iayt/tmp017f0ci0.py", line 12, in <module> m = int( sys.stdin.readline() ) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: ''
s687973527
p02421
u628732336
1470292297
Python
Python3
py
Runtime Error
0
0
231
n = int(input()) taro = 0 hanako = 0 for ni in range(n): t, h = int().split() if t < h: hanako += 3 elif t > h: taro += 3 else: hanako += 1 taro += 1 print(taro,hanako)
Traceback (most recent call last): File "/tmp/tmp8mga1f9n/tmpzm771pof.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s014462957
p02421
u498041957
1470292812
Python
Python3
py
Runtime Error
0
0
225
n = int(input()) taro = 0 hanako = 0 for ni in range(n): t, h = input().split() if t < h: hanako += 3 elif t > h: taro += 3 else: hanako += 1 taro += 1 print(taro.hanako)
Traceback (most recent call last): File "/tmp/tmpa2xdb708/tmp4tcyx3zx.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s040315708
p02421
u801346721
1478350906
Python
Python3
py
Runtime Error
0
0
274
n = int(input()) t_score = 0 h_score = 0 for i in range(n): t, h = input().split() if ord(t[0]) > ord(h[0]): t_score += 3 elif ord(t[0]) < ord(h[0]): h_score += 3 elif ord(t[0]) == ord(h[0]) t_score += 1 h_score += 1 print("{0} {1}".format(t_score, h_score))
File "/tmp/tmptvy3birj/tmppps9yum_.py", line 13 elif ord(t[0]) == ord(h[0]) ^ SyntaxError: expected ':'
s362806886
p02421
u801346721
1478351988
Python
Python3
py
Runtime Error
20
7720
547
n = int(input()) t_score = 0 h_score = 0 for i in range(n): t, h = input().split() if len(t) >= len(h): for j in range(len(h)): if ord(t[j]) > ord(h[j]): t_score += 3 break elif ord(t[j]) < ord(h[j]): h_score += 3 break else: t_score += 1 h_score += 1 elif len(t) < len(h): for j...
Traceback (most recent call last): File "/tmp/tmp68k4dcbc/tmpd1l22n8t.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s460909845
p02421
u086566114
1479486808
Python
Python
py
Runtime Error
0
0
351
round = int(raw_input()) score = {"taro":0, "hanako":0} counter = 0 while counter < round: [taro,hanako] = raw_input.split() if taro < hanako: score["hanako"] += 3 elif taro > hanako: score["taro"] += 3 else: score["taro"] += 1 score["hanako"] += 1 counter += 1 print...
File "/tmp/tmp7_t0jkjb/tmpl_803rdu.py", line 15 print score["taro"], score["hanako"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s493461240
p02421
u546285759
1480590006
Python
Python3
py
Runtime Error
0
0
531
n = int(input()) st, sh = 0, 0 for i in range(n): t, h = map(str, input().split()) if ord(t[0]) > ord(h[0]): st += 3 elif ord(t[0]) < ord(h[1]): sh += 3 else: m = h if len(t) > len(h) else t l = 1 for j in range(m): if ord(t[j]) > ord(h[j]): ...
Traceback (most recent call last): File "/tmp/tmp_dx0q5mi/tmpn2pwywbr.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s143300348
p02421
u546285759
1480590080
Python
Python3
py
Runtime Error
0
0
531
n = int(input()) st, sh = 0, 0 for i in range(n): t, h = map(str, input().split()) if ord(t[0]) > ord(h[0]): st += 3 elif ord(t[0]) < ord(h[0]): sh += 3 else: m = h if len(t) > len(h) else t l = 1 for j in range(m): if ord(t[j]) > ord(h[j]): ...
Traceback (most recent call last): File "/tmp/tmpeasykbd9/tmp3y2bnzi0.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s283393253
p02421
u494314211
1481446380
Python
Python3
py
Runtime Error
0
0
284
s=list(input()) n=int(input()) for i in range(n): l=input().split() if l[0]=="replace": a=int(l[1]) b=int(l[2]) s[a:b+1]=list(l[3]) elif l[0]=="reverse": a=int(l[1]) b=int(l[2]) c=s[a:b+1][::-1] s[a:b+1]=c else: a=int(l[1]) b=int(l[2]) print("".join(s[a:b+1]))
Traceback (most recent call last): File "/tmp/tmp0vq6u5km/tmprqwjfyi8.py", line 1, in <module> s=list(input()) ^^^^^^^ EOFError: EOF when reading a line
s021645416
p02421
u731896389
1487948826
Python
Python3
py
Runtime Error
0
0
167
ap,bp = 0 n = int(input()) for i in range(n): a,b = input().split() if a>b: ap+=3 elif a==b: bp+=3 else: bp+=3 print(ap,bp)
Traceback (most recent call last): File "/tmp/tmpuj4shnhu/tmpx8s4a25n.py", line 1, in <module> ap,bp = 0 ^^^^^ TypeError: cannot unpack non-iterable int object
s499098054
p02421
u286589639
1492653990
Python
Python3
py
Runtime Error
20
7560
751
n = int(input()) score_taro, score_hanako = 0, 0 for _ in range(n): card_taro, card_hanako = input().split() if card_taro == card_hanako: # DRAW score_taro += 1 score_hanako += 1 #print("draw")# continue for i in range(n): if ord(card_taro[i:i+1]) > ord(c...
Traceback (most recent call last): File "/tmp/tmpshv4wpks/tmp2wn2a2eq.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s129023611
p02421
u126322807
1494494647
Python
Python3
py
Runtime Error
20
7548
440
#!/usr/bin/env python n = int(input()) tScore = 0 hScore = 0 for i in range(n): T, H = input().split() if T == H: tScore += 1 hScore += 1 else: j = 0 while True: if T[j] != H[j]: if ord(T[j]) > ord(H[j]): tScore += 3 ...
Traceback (most recent call last): File "/tmp/tmpbi1r3aqe/tmpmj5p6ymj.py", line 3, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s232470111
p02421
u126322807
1494495012
Python
Python3
py
Runtime Error
0
0
594
#!/usr/bin/env python n = int(input()) tScore = 0 hScore = 0 for i in range(n): T, H = input().split() if T == H: tScore += 1 hScore += 1 else: j = 0 while True: if T in H or H in T: if len(T) > len(H) hScore += 3 ...
File "/tmp/tmp6p3swcb2/tmpcla0gohf.py", line 17 if len(T) > len(H) ^ SyntaxError: expected ':'
s020910763
p02421
u126322807
1494495059
Python
Python3
py
Runtime Error
0
0
616
#!/usr/bin/env python n = int(input()) tScore = 0 hScore = 0 for i in range(n): T, H = input().split() if T == H: tScore += 1 hScore += 1 else: j = 0 while True: if T in H or H in T: if len(T) > len(H) hScore += 3 ...
File "/tmp/tmppoykjr9f/tmptjn45brr.py", line 17 if len(T) > len(H) ^ SyntaxError: expected ':'
s697294288
p02421
u126322807
1494495126
Python
Python3
py
Runtime Error
20
7524
617
#!/usr/bin/env python n = int(input()) tScore = 0 hScore = 0 for i in range(n): T, H = input().split() if T == H: tScore += 1 hScore += 1 else: j = 0 while True: if T in H or H in T: if len(T) > len(H): hScore += 3 ...
Traceback (most recent call last): File "/tmp/tmpiot6u0a9/tmplg7cre_x.py", line 3, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s985034614
p02421
u654414650
1496304196
Python
Python3
py
Runtime Error
0
0
357
#coding:utf-8 n = int(input().rstrip()) toku =[0,0] narabe = [] for i in range(n): taro, hana = input().rstrip().split() if taro == hana: toku[0] +=1 toku[1] +=1 else: narabe = [taro, hana] narabe.sort() toku[0] += narabe.index(taro)*3 toku[1] += narabe.ind...
Traceback (most recent call last): File "/tmp/tmpdbnt35en/tmpohsh6m7p.py", line 3, in <module> n = int(input().rstrip()) ^^^^^^^ EOFError: EOF when reading a line
s381140685
p02421
u283452598
1503202155
Python
Python3
py
Runtime Error
0
0
476
zisyo=["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"] turn=int(input()) ten=[0,0] for _ in range(turn): hikaku = input().split() if zisyo.index(hikaku[0][0])<zisyo.index(hikaku[1][0]): ten[1] +=3 elif zisyo.index(hikaku[0][0]) == zisyo.index...
Traceback (most recent call last): File "/tmp/tmp2_i6g6tu/tmp4kbl4qnm.py", line 2, in <module> turn=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s661295952
p02421
u283452598
1503202347
Python
Python3
py
Runtime Error
0
0
259
turn=int(input()) ten=[0,0] for _ in range(turn): hikaku = input().split() if hikaku[0] < hikaku[1]: ten[1] +=3 elif hikaku[0]) > hikaku[1]: ten[0] +=3 else: ten[0]+=1 ten[1]+=1 print(" ".join(map(str,ten)))
File "/tmp/tmpkqxb9wo5/tmpfexnlczg.py", line 9 elif hikaku[0]) > hikaku[1]: ^ SyntaxError: unmatched ')'
s837768434
p02421
u283452598
1503202377
Python
Python3
py
Runtime Error
0
0
274
turn=int(input()) ten=[0,0] for _ in range(turn): hikaku = list(map(int,input().split())) if hikaku[0] < hikaku[1]: ten[1] +=3 elif hikaku[0]) > hikaku[1]: ten[0] +=3 else: ten[0]+=1 ten[1]+=1 print(" ".join(map(str,ten)))
File "/tmp/tmpk170vk84/tmpu00xcvqz.py", line 9 elif hikaku[0]) > hikaku[1]: ^ SyntaxError: unmatched ')'
s378193235
p02421
u283452598
1503202410
Python
Python3
py
Runtime Error
0
0
273
turn=int(input()) ten=[0,0] for _ in range(turn): hikaku = list(map(int,input().split())) if hikaku[0] < hikaku[1]: ten[1] +=3 elif hikaku[0] > hikaku[1]: ten[0] +=3 else: ten[0]+=1 ten[1]+=1 print(" ".join(map(str,ten)))
Traceback (most recent call last): File "/tmp/tmp9xpmyjk3/tmp_wq_14ct.py", line 1, in <module> turn=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s996848213
p02421
u933096856
1505453189
Python
Python3
py
Runtime Error
0
0
168
t,h=0,0 int(input()) for i in range(n): a,b=input().split() if a > b: h+=3 elf a < b: t+=3 else: t+=1 h+=1 print(t, h)
File "/tmp/tmpcinfle_e/tmpsmaotxuh.py", line 7 elf a < b: ^ SyntaxError: invalid syntax
s927164777
p02421
u933096856
1505453275
Python
Python3
py
Runtime Error
0
0
169
t,h=0,0 int(input()) for i in range(n): a,b=input().split() if a > b: h+=3 elif a < b: t+=3 else: t+=1 h+=1 print(t, h)
Traceback (most recent call last): File "/tmp/tmp24cu0m3q/tmpw3gjhad_.py", line 2, in <module> int(input()) ^^^^^^^ EOFError: EOF when reading a line
s901437290
p02421
u933096856
1505453286
Python
Python3
py
Runtime Error
0
0
169
t,h=0,0 int(input()) for i in range(n): a,b=input().split() if a > b: h+=3 elif a < b: t+=3 else: t+=1 h+=1 print(t, h)
Traceback (most recent call last): File "/tmp/tmp_tp7v15u/tmpnmdkdgo0.py", line 2, in <module> int(input()) ^^^^^^^ EOFError: EOF when reading a line
s291091638
p02421
u518939641
1510399672
Python
Python3
py
Runtime Error
0
0
154
t=0 h=0 for i in range(int(input())): l=input().split() if l[0]=l[1]: t+=1 h+=1 elif l[0]>l[1]: t+=3 else: h+=3 print(t,h)
File "/tmp/tmpueclqgwq/tmpj98cunkj.py", line 5 if l[0]=l[1]: ^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
s528278217
p02421
u017523606
1514863922
Python
Python3
py
Runtime Error
0
0
323
count = int(input()) Tpoint = 0 Hpoint = 0 for i in range(count): Twrite,Hwrite = map(str,input().split()) if Twrite == Hwrite: Tpoint = Tpoint + 1 Hpoint = Hpoint + 1 elif Twrite > Hwrite: Tpoint = Tpoiny + 3 else: Hpoint = Hpoint + 3 print('{0} {1}'.format(Tpoint,Hpoint...
Traceback (most recent call last): File "/tmp/tmp_5e1ej75/tmpdw05v3e3.py", line 1, in <module> count = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s989846006
p02421
u294922877
1518656077
Python
Python3
py
Runtime Error
0
0
276
def shuffle(str, m): return str[m:] + str[0:m] if __name__ == '__main__': while True: str = input() if str == '-': break m = int(input()) for _ in range(m): str = shuffle(str, int(input())) print(str)
Traceback (most recent call last): File "/tmp/tmpp0sv5_4x/tmp4sq4_gar.py", line 6, in <module> str = input() ^^^^^^^ EOFError: EOF when reading a line
s354753177
p02421
u126478680
1524680574
Python
Python3
py
Runtime Error
0
0
674
#! python3 # card_game.py n = int(input()) turns = [input() for i in range(n)] taro, hanako = 0, 0 for turn in turns: t, h = turn.split(' ') min_len = len(t) if len(t) <= len(h) else len(h) win_flag = 0 # -1: taro, 1: hanako, 0: draw for i in range(min_len): if ord[t] < ord[h]: wi...
Traceback (most recent call last): File "/tmp/tmp9_1ea8l0/tmpp4g44qxh.py", line 4, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s711113596
p02421
u742505495
1525160914
Python
Python3
py
Runtime Error
0
0
164
n = int(input()) a = 0 b = 0 for i in range(n): A,B = map(str,input().split()) if A>B: a += 3 elif B>A: b += 3 else: a += 1 b += 1 print('%d %d'.(a,b))
File "/tmp/tmpntj7a3iw/tmpbjaqqhrn.py", line 13 print('%d %d'.(a,b)) ^ SyntaxError: invalid syntax
s028247169
p02421
u806005289
1525504466
Python
Python3
py
Runtime Error
20
5592
738
n=int(input()) i=0 Taro=0 Hana=0 while i<n: l=list(input()) m=l.index(" ") #if ord(l[0])<ord(l[m+1]): #Hana+=1 #elif ord(l[0])>ord(l[m+1]): #Taro+=1 #else: #ord(l[1]) p=0 while True: if l[p]>l[m+1+p]: Taro+=3 break elif l[p]<l[m...
Traceback (most recent call last): File "/tmp/tmpl7dnnzdf/tmpju5vsrn8.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s563084529
p02421
u806005289
1525504584
Python
Python3
py
Runtime Error
20
5596
738
n=int(input()) i=0 Taro=0 Hana=0 while i<n: l=list(input()) m=l.index(" ") #if ord(l[0])<ord(l[m+1]): #Hana+=1 #elif ord(l[0])>ord(l[m+1]): #Taro+=1 #else: #ord(l[1]) p=0 while True: if l[p]>l[m+1+p]: Taro+=3 break elif l[p]<l[m...
Traceback (most recent call last): File "/tmp/tmpyr2x2w8x/tmpyk879zv2.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s432233615
p02421
u351182591
1375277296
Python
Python
py
Runtime Error
10
4240
511
n=int(raw_input()) p=[0,0] for i in range(n): c=[0 for i in range(100)] c=map(list,raw_input().split()) m=0 while 1: if c[0]==c[1]: p[0]+=1 p[1]+=1 break elif c[0][m]<c[1][m]: ...
File "/tmp/tmpsq_rdhzy/tmp2e3kbffq.py", line 19 print p[0], p[1] ^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s361624917
p02421
u633068244
1393334557
Python
Python
py
Runtime Error
0
0
213
n = int(raw_input()) score = [0,0] for i in range(n): t, h = raw_input().split() if t < h: score[1] += 3 elif t > h: score[0] += 3 else: score += 1 print score[0], score[1]
File "/tmp/tmpt8six941/tmp5y6r1hg4.py", line 12 print score[0], score[1] ^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s631564138
p02421
u633068244
1393334622
Python
Python
py
Runtime Error
0
0
216
score = [0, 0] n = int(raw_input()) for i in range(n): t, h = raw_input().split() if t < h: score[1] += 3 elif t > h: score[0] += 3 else: score[] += 1 print score[0], score[1]
File "/tmp/tmpamr_kydf/tmpktgu0vee.py", line 11 score[] += 1 ^ SyntaxError: invalid syntax
s828621560
p02422
u749884951
1534848015
Python
Python3
py
Runtime Error
0
0
277
s = input() n = int(input()) for i in range(n): t = input().split() cmd, a, b = t[0], int(t[1]), int(t[2]) if cmd == "print": print(s[a:b+1]) elif cmd == "reverse": s = s[:a] + s[a:b].reverse() + s[b:] else: s = s[:a] + t[3] + s[b:]
Traceback (most recent call last): File "/tmp/tmpgufja_nn/tmpcuhvju06.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s406529721
p02422
u805716376
1556725255
Python
Python3
py
Runtime Error
0
0
234
s = input() n = input() for i in range(n): order, a, b, c = input().split() if order == 'replace': s = s[:a] + c + s[b+1:] elif order[o] == 'r': s = s[:a] + a[a:b+1:-1] + a[b+1:] else: print(s)
Traceback (most recent call last): File "/tmp/tmp544785xq/tmp73ypgiwm.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s272976122
p02422
u805716376
1556725274
Python
Python3
py
Runtime Error
0
0
238
s = input() n = nt(input()) for i in range(n): order, a, b, c = input().split() if order == 'replace': s = s[:a] + c + s[b+1:] elif order[o] == 'r': s = s[:a] + a[a:b+1:-1] + a[b+1:] else: print(s)
Traceback (most recent call last): File "/tmp/tmpr2r52hpt/tmpthtqfsa7.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s144475052
p02422
u805716376
1556725289
Python
Python3
py
Runtime Error
0
0
239
s = input() n = nt(input()) for i in range(n): order, a, b, *c = input().split() if order == 'replace': s = s[:a] + c + s[b+1:] elif order[o] == 'r': s = s[:a] + a[a:b+1:-1] + a[b+1:] else: print(s)
Traceback (most recent call last): File "/tmp/tmp4cko9awt/tmpdauiu34o.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s247310388
p02422
u805716376
1556725299
Python
Python3
py
Runtime Error
0
0
240
s = input() n = nt(input()) for i in range(n): order, a, b, *c = input().split() if order == 'replace': s = s[:a] + *c + s[b+1:] elif order[o] == 'r': s = s[:a] + a[a:b+1:-1] + a[b+1:] else: print(s)
File "/tmp/tmpwusu5xnb/tmp9g9t4ljq.py", line 6 s = s[:a] + *c + s[b+1:] ^ SyntaxError: invalid syntax
s953948468
p02422
u805716376
1556726033
Python
Python3
py
Runtime Error
0
0
280
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 + s[b+1:] elif order[0] == 'r': s = s[:a] + s[::-1][a:b+1] + s[b+1:] else: print(s[a:b+1])
Traceback (most recent call last): File "/tmp/tmpwqewx7ld/tmphcsgfc8q.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s635426800
p02422
u535719732
1559304368
Python
Python3
py
Runtime Error
0
0
558
def op_print(data,a,b): for i in range(a,b+1): print(data[i]) def op_reverse(data,a,b): return data[:a] + data[::-1][-b:-a] + data[:b] def op_replace(data,a,b,q): return data.replace(data[a:b],q) data = input() q = int(input()) for _ in range(q): op = list(map(str,input().split())) if(op[0...
File "/tmp/tmpb1yp1mt1/tmp81z97tkv.py", line 13 if(op[0] = "print"): ^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
s791049878
p02422
u535719732
1559304406
Python
Python3
py
Runtime Error
0
0
561
def op_print(data,a,b): for i in range(a,b+1): print(data[i]) def op_reverse(data,a,b): return data[:a] + data[::-1][-b:-a] + data[:b] def op_replace(data,a,b,q): return data.replace(data[a:b],q) data = input() q = int(input()) for _ in range(q): op = list(map(str,input().split())) if(op[0...
Traceback (most recent call last): File "/tmp/tmph_wlt6v3/tmpakvqjxsp.py", line 9, in <module> data = input() ^^^^^^^ EOFError: EOF when reading a line
s311905236
p02422
u535719732
1559304441
Python
Python3
py
Runtime Error
0
0
554
def op_print(data,a,b): for i in range(a,b+1): print(data[i]) def op_reverse(data,a,b): return data[:a] + data[::-1][-b:-a] + data[:b] def op_replace(data,a,b,q): return data.replace(data[a:b],q) data = input() q = int(input()) for _ in range(q): op = list(map(str,input().split())) if(op[0...
Traceback (most recent call last): File "/tmp/tmpeh0i7lhu/tmpa2tbz5a1.py", line 9, in <module> data = input() ^^^^^^^ EOFError: EOF when reading a line
s972448919
p02422
u535719732
1559305070
Python
Python3
py
Runtime Error
0
0
554
def op_print(data,a,b): for i in range(a,b+1): print(data[i]) def op_reverse(data,a,b): return data[:a] + data[::-1][-b:-a] + data[:b] def op_replace(data,a,b,q): return data.replace(data[a:b],q) data = input() q = int(input()) for _ in range(q): op = list(map(str,input().split())) if(op[0...
Traceback (most recent call last): File "/tmp/tmpuv7z0ja4/tmpz7mlge0i.py", line 9, in <module> data = input() ^^^^^^^ EOFError: EOF when reading a line
s426860866
p02422
u535719732
1559305082
Python
Python3
py
Runtime Error
0
0
552
def op_print(data,a,b): for i in range(a,b): print(data[i]) def op_reverse(data,a,b): return data[:a] + data[::-1][-b:-a] + data[:b] def op_replace(data,a,b,q): return data.replace(data[a:b],q) data = input() q = int(input()) for _ in range(q): op = list(map(str,input().split())) if(op[0] ...
Traceback (most recent call last): File "/tmp/tmp91v2p4va/tmp6bfr8fgk.py", line 9, in <module> data = input() ^^^^^^^ EOFError: EOF when reading a line
s989457289
p02422
u535719732
1559305364
Python
Python3
py
Runtime Error
0
0
573
def op_print(data,a,b): for i in range(a,b): print(data[i],end="") print() def op_reverse(data,a,b): return data[:a] + data[::-1][-b:-a] + data[:b] def op_replace(data,a,b,q): return data.replace(data[a:b],q) data = input() q = int(input()) for _ in range(q): op = list(map(str,input().spli...
Traceback (most recent call last): File "/tmp/tmp8ydqdesl/tmpwumb1ijp.py", line 10, in <module> data = input() ^^^^^^^ EOFError: EOF when reading a line
s250216010
p02422
u535719732
1559305377
Python
Python3
py
Runtime Error
0
0
573
def op_print(data,a,b): for i in range(a,b): print(data[i],end="") print() def op_reverse(data,a,b): return data[:a] + data[::-1][-b:-a] + data[:b] def op_replace(data,a,b,q): return data.replace(data[a:b],q) data = input() q = int(input()) for _ in range(q): op = list(map(str,input().spli...
Traceback (most recent call last): File "/tmp/tmpy09ywyxj/tmpdxjsiewu.py", line 10, in <module> data = input() ^^^^^^^ EOFError: EOF when reading a line
s342696589
p02422
u535719732
1559305388
Python
Python3
py
Runtime Error
0
0
571
def op_print(data,a,b): for i in range(a,b): print(data[i],end="") print() def op_reverse(data,a,b): return data[:a] + data[::-1][-b:-a] + data[:b] def op_replace(data,a,b,q): return data.replace(data[a:b],q) data = input() q = int(input()) for _ in range(q): op = list(map(str,input().spli...
Traceback (most recent call last): File "/tmp/tmp220fjn5x/tmps56amczx.py", line 10, in <module> data = input() ^^^^^^^ EOFError: EOF when reading a line
s561703644
p02422
u535719732
1559305452
Python
Python3
py
Runtime Error
0
0
573
def op_print(data,a,b): for i in range(a,b-1): print(data[i],end="") print() def op_reverse(data,a,b): return data[:a] + data[::-1][-b:-a] + data[:b] def op_replace(data,a,b,q): return data.replace(data[a:b],q) data = input() q = int(input()) for _ in range(q): op = list(map(str,input().sp...
Traceback (most recent call last): File "/tmp/tmpq_nd_02n/tmpwae9mc8g.py", line 10, in <module> data = input() ^^^^^^^ EOFError: EOF when reading a line
s518753952
p02422
u535719732
1559305628
Python
Python3
py
Runtime Error
0
0
573
def op_print(data,a,b): for i in range(a,b-1): print(data[i],end="") print() def op_reverse(data,a,b): return data[:a] + data[::-1][-b:-a] + data[:b] def op_replace(data,a,b,q): return data.replace(data[a:b],q) data = input() q = int(input()) for _ in range(q): op = list(map(str,input().sp...
Traceback (most recent call last): File "/tmp/tmprpb47atk/tmpt4iz2paf.py", line 10, in <module> data = input() ^^^^^^^ EOFError: EOF when reading a line