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
s773740591
p00001
u531592024
1500454243
Python
Python3
py
Runtime Error
0
0
109
inp = input() a = [input() for i in range(int(inp))] a.sort() a.reverse() print(a[0]) print(a[1]) print(a[2])
Traceback (most recent call last): File "/tmp/tmpf4_6w3z0/tmpdefbdm0h.py", line 1, in <module> inp = input() ^^^^^^^ EOFError: EOF when reading a line
s349403611
p00001
u130855721
1500965036
Python
Python3
py
Runtime Error
0
0
180
height =[] inp = "" while True: inp = input() if inp == "":break else: height.append(int(inp)) height.sort(reverse=True) for j in range(0,3): print(str(height[j]))
Traceback (most recent call last): File "/tmp/tmp7cafx5ax/tmphacpu7gb.py", line 4, in <module> inp = input() ^^^^^^^ EOFError: EOF when reading a line
s469375666
p00001
u369093003
1501414883
Python
Python3
py
Runtime Error
0
0
108
l = [a,b,c,d,e,f,g,h,i,j] a,b,c,d,e,f,g,h,i,j = int(input()) l.sort() print(l[-1]) print(l[-2]) print(l[-3])
Traceback (most recent call last): File "/tmp/tmpcyn_h_ly/tmpmpac9vmp.py", line 1, in <module> l = [a,b,c,d,e,f,g,h,i,j] ^ NameError: name 'a' is not defined
s086356924
p00001
u551456712
1502847158
Python
Python3
py
Runtime Error
0
0
96
rank = sorted([int(input()) for i in range(10)], reverse=True) print('\n'.join(rank[:3]) + '\n')
Traceback (most recent call last): File "/tmp/tmphj6gog4g/tmp6_qsaz0c.py", line 1, in <module> rank = sorted([int(input()) for i in range(10)], reverse=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmphj6gog4g/tmp6_qsaz0c.py", line 1, in <listcomp> rank = sorted([int(input()) for i in range(10)], reverse=True) ^^^^^^^ EOFError: EOF when reading a line
s296599130
p00001
u299798926
1502853640
Python
Python3
py
Runtime Error
0
0
100
N=10 A=[] for i in range(N): A.append(int(input())) sorted(A) for i in range(3): print(a[i])
Traceback (most recent call last): File "/tmp/tmp04qtwdkd/tmpjz1y5vcv.py", line 4, in <module> A.append(int(input())) ^^^^^^^ EOFError: EOF when reading a line
s394640168
p00001
u531482846
1506199261
Python
Python3
py
Runtime Error
0
0
80
from sys import stdin map(print,[int(n) for n in stdin].sort(reverse=True)[0:3])
Traceback (most recent call last): File "/tmp/tmpfug65sv2/tmp5jzk5wkt.py", line 2, in <module> map(print,[int(n) for n in stdin].sort(reverse=True)[0:3]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^ TypeError: 'NoneType' object is not subscriptable
s769343792
p00001
u531482846
1506199326
Python
Python3
py
Runtime Error
0
0
58
map(print,[int(n) for n in stdin].sort(reverse=True)[0:3])
Traceback (most recent call last): File "/tmp/tmpdy7muacv/tmpwkmjr6ms.py", line 1, in <module> map(print,[int(n) for n in stdin].sort(reverse=True)[0:3]) ^^^^^ NameError: name 'stdin' is not defined
s520463431
p00001
u506705885
1506349053
Python
Python3
py
Runtime Error
0
0
416
mountains_high=[] for i in range(10): mountains_high.append(int(input())) mountains_high_copy=mountains_high.copy() for i in range(9): for j in range(9): if mountains_high_copy[j]>mountains_high_copy[j+1]: num=mountains_high_copy[j] mountains_high_copy[j]=mountains_high_copy[j+1] mountains_high_copy[j+1]=num for i in range(3): print(mountains_high_copy[9-i
File "/tmp/tmpd5kwkrbf/tmpadwcq14k.py", line 14 print(mountains_high_copy[9-i ^ SyntaxError: '[' was never closed
s548610552
p00001
u256256172
1506939069
Python
Python3
py
Runtime Error
0
0
86
x = sorted(map(int, input().split()), reverse=True) for i in range(3): print(x[i])
Traceback (most recent call last): File "/tmp/tmpxrr6m_yn/tmp0u93x81k.py", line 1, in <module> x = sorted(map(int, input().split()), reverse=True) ^^^^^^^ EOFError: EOF when reading a line
s506937226
p00001
u197670577
1508082443
Python
Python
py
Runtime Error
0
0
194
# coding: utf-8 nums = list() for i in range(10): num = raw_input().split("?±±?????????") nums.append(int(num)) nums = sorted(nums) print "{}\n{}\n{}".format(nums[0],nums[1],nums[2])
File "/tmp/tmp7db93z6i/tmpjb3mggqc.py", line 9 print "{}\n{}\n{}".format(nums[0],nums[1],nums[2]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s423551644
p00001
u197670577
1508082687
Python
Python
py
Runtime Error
0
0
100
import sys mt = sys.stdin.strip().split() mt = sorted([int(i) for i in mt]) print "\n".join(mt[:3])
File "/tmp/tmpn5gnikb_/tmpn9_2wos5.py", line 5 print "\n".join(mt[:3]) ^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s471891828
p00001
u228488524
1508219924
Python
Python3
py
Runtime Error
0
0
121
l = [] for i in range(10): inp = input() l.append(int(inp)) l.sort().reverse() for i in range(3): print(l[i])
Traceback (most recent call last): File "/tmp/tmp9zesss9j/tmpgsmqwb8r.py", line 3, in <module> inp = input() ^^^^^^^ EOFError: EOF when reading a line
s461193556
p00001
u228488524
1508220118
Python
Python3
py
Runtime Error
0
0
130
l = [] for i in range(10): inp = input() l.append(int(inp.rstrip())) l.sort().reverse() for i in range(3): print(l[i])
Traceback (most recent call last): File "/tmp/tmpyyf9gwcb/tmp6ps8qste.py", line 3, in <module> inp = input() ^^^^^^^ EOFError: EOF when reading a line
s208918648
p00001
u886119481
1508914110
Python
Python
py
Runtime Error
0
0
340
result = [0, 0, 0] for i in range(10): inp = int(raw_input()) if result[2] >= inp: continue elif result[1] <= inp < result[2]: result[2] = inp elif result[0] <= inp < result[1]: result[2] = result[1] result[1] = inp else: result[2] = result[1] result[1] = result[0] result[0] = inp for i in reange(3): print result[i]
File "/tmp/tmp67ah5a8_/tmpz8_4ux0p.py", line 18 print result[i] ^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s648751761
p00001
u846136461
1509259212
Python
Python
py
Runtime Error
0
0
522
# coding: utf-8 import codecs import sys sys.stdout = codecs.getwriter("shift_jis")(sys.stdout) # ?????? sys.stdin = codecs.getreader("shift_jis")(sys.stdin) # ??\??? # ??\??¬?????????print??????????????´?????? print(u'?????????') ??¨?????? # ??\??¬?????????input??? input(u'?????????') ??§OK # ??°?¢???????????????????????????´??????6,7???????????????????????¢?????? a = [] while True: n = input() if n == -1: break a.append(n) #a = [0,5,2,3,4,1] a.sort() a.reverse() print a[0] print a[1] print a[2]
File "/tmp/tmpq60eyunm/tmpt2jjyzds.py", line 25 print a[0] ^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s404175940
p00001
u255925718
1512161275
Python
Python
py
Runtime Error
0
0
204
def inp(): try: while True: data=raw_input() if not data: break yield data except KeyboardInterrupt: return sorted(list(inp()),reverse=True)[:3]
Traceback (most recent call last): File "/tmp/tmp0s9se39k/tmp6u8ys21x.py", line 9, in <module> sorted(list(inp()),reverse=True)[:3] ^^^^^^^^^^^ File "/tmp/tmp0s9se39k/tmp6u8ys21x.py", line 4, in inp data=raw_input() ^^^^^^^^^ NameError: name 'raw_input' is not defined
s791348292
p00001
u255925718
1512161321
Python
Python
py
Runtime Error
0
0
210
def minput(): try: while True: data=raw_input() if not data: break yield data except KeyboardInterrupt: return sorted(list(minput()),reverse=True)[:3]
Traceback (most recent call last): File "/tmp/tmpxq4nbii_/tmppu3jitbv.py", line 9, in <module> sorted(list(minput()),reverse=True)[:3] ^^^^^^^^^^^^^^ File "/tmp/tmpxq4nbii_/tmppu3jitbv.py", line 4, in minput data=raw_input() ^^^^^^^^^ NameError: name 'raw_input' is not defined
s158300567
p00001
u255925718
1512161581
Python
Python
py
Runtime Error
0
0
61
n = map(int, raw_input().split()) sorted(n),reverse=True)[:3]
File "/tmp/tmpa4zlec8o/tmp_hjfifbf.py", line 2 sorted(n),reverse=True)[:3] ^ SyntaxError: unmatched ')'
s389244774
p00001
u183079216
1513764822
Python
Python3
py
Runtime Error
0
0
121
lst=[] for n in range(10): lst.append(int(input()) res=sorted(lst, reverse=True) for i in range(3): print(res[i])
File "/tmp/tmpnmuamh89/tmpl32ymnz4.py", line 3 lst.append(int(input()) ^ SyntaxError: '(' was never closed
s025883981
p00001
u764789069
1514010636
Python
Python
py
Runtime Error
0
0
132
list[] for i range(0,10): n = int(raw_input()) list.append(n) list.sort(reverse=True) for i in range(0,3): print list[i]
File "/tmp/tmpz2egpdvr/tmp0cjfin4t.py", line 1 list[] ^ SyntaxError: invalid syntax
s729303616
p00001
u803045841
1516547420
Python
Python3
py
Runtime Error
0
0
124
N = input() a = [] for i in range(N): a.append(input()) for i in range(3): m = max(a) a.remove(m) print (m)
Traceback (most recent call last): File "/tmp/tmpr6zlh2i2/tmply20gubo.py", line 1, in <module> N = input() ^^^^^^^ EOFError: EOF when reading a line
s910729420
p00001
u803045841
1516550324
Python
Python3
py
Runtime Error
0
0
124
N = input() a = [] for i in range(N): a.append(input()) for i in range(3): m = max(a) a.remove(m) print (m)
Traceback (most recent call last): File "/tmp/tmp9x827yz_/tmpqeycdma9.py", line 1, in <module> N = input() ^^^^^^^ EOFError: EOF when reading a line
s065014719
p00001
u803045841
1516550748
Python
Python3
py
Runtime Error
0
0
248
import sys def main(): N = input() a = [] for i in range(N): a.append(input()) for i in range(3): m = max(a) a.remove(m) print (m) return 0 if __name__ == "__main__": sys.exit(main())
Traceback (most recent call last): File "/tmp/tmpfi92tla3/tmpk_zu_a9m.py", line 13, in <module> sys.exit(main()) ^^^^^^ File "/tmp/tmpfi92tla3/tmpk_zu_a9m.py", line 3, in main N = input() ^^^^^^^ EOFError: EOF when reading a line
s038823427
p00001
u803045841
1516551059
Python
Python3
py
Runtime Error
0
0
129
N = int(input()) a = [] for i in range(N): a.append(input()) for i in range(3): m = max(a) a.remove(m) print (m)
Traceback (most recent call last): File "/tmp/tmpk33k5j3p/tmpfe99jkc6.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s078524731
p00001
u803045841
1516551078
Python
Python3
py
Runtime Error
0
0
134
N = int(input()) a = [] for i in range(N): a.append(int(input())) for i in range(3): m = max(a) a.remove(m) print (m)
Traceback (most recent call last): File "/tmp/tmpdew1_lka/tmpk8zfdtxz.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s805673673
p00001
u803045841
1516551179
Python
Python3
py
Runtime Error
0
0
113
n = int(input()) a = [input() for i in range(n)] for i in range(3): m = max(a) a.remove(m) print (m)
Traceback (most recent call last): File "/tmp/tmp2nvrejnd/tmp986iv548.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s203239094
p00001
u803045841
1516551305
Python
Python3
py
Runtime Error
0
0
118
n = int(input()) a = [int(input()) for i in range(n)] for i in range(3): m = max(a) a.remove(m) print (m)
Traceback (most recent call last): File "/tmp/tmpwv12vbf_/tmpz1e18ykq.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s357005739
p00001
u803045841
1516552039
Python
Python3
py
Runtime Error
0
0
113
n = int(input()) l = [input() for i in range(n)] for i in range(3): m = max(l) a.remove(m) print (m)
Traceback (most recent call last): File "/tmp/tmp0yhxzg_8/tmpqw777ook.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s239033172
p00001
u803045841
1516556064
Python
Python3
py
Runtime Error
0
0
102
import sys e = sys.stdin.readlines(): for i in range(3): m = max(e) e.remove(m) print (m)
File "/tmp/tmpbins5ko4/tmpec902u6w.py", line 2 e = sys.stdin.readlines(): ^ SyntaxError: invalid syntax
s524689220
p00001
u959628716
1518353660
Python
Python
py
Runtime Error
0
0
51
a = raw_input() b = sort(a) print a[0],a[1],a[2]
File "/tmp/tmp0kj9rygf/tmpn2nafnc2.py", line 5 print a[0],a[1],a[2] ^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s473008139
p00001
u630546605
1519551659
Python
Python
py
Runtime Error
0
0
303
cnt = 10 top3 = [0,0,0] for x in xrange(cnt): n = int( raw_input() ) if top3[2] > n: continue top3[2] = n if top3[1] > top3[2]: continue top3[1], top3[2] = top3[2], top3[1] if top3[0] > top3[1]: continue top3[0], top3[1] = top3[1], top3[0] print top[0], top[1], top[2]
File "/tmp/tmp_y1s0jb1/tmpokg9bj15.py", line 16 print top[0], top[1], top[2] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s931359342
p00001
u069727578
1520047819
Python
Python3
py
Runtime Error
0
0
254
tate =int(input()) yoko=int(input()) arr = [i+1 for i in range(tate)] for j in range(yoko): rep1,rep2=input().split(",") rep1=int(rep1)-1 rep2=int(rep2)-1 arr[rep1],arr[rep2] = arr[rep2],arr[rep1] for k in range(tate): print(arr[k])
Traceback (most recent call last): File "/tmp/tmph3fqx4xm/tmp6asqq4t0.py", line 1, in <module> tate =int(input()) ^^^^^^^ EOFError: EOF when reading a line
s378979899
p00001
u069727578
1520047826
Python
Python
py
Runtime Error
0
0
254
tate =int(input()) yoko=int(input()) arr = [i+1 for i in range(tate)] for j in range(yoko): rep1,rep2=input().split(",") rep1=int(rep1)-1 rep2=int(rep2)-1 arr[rep1],arr[rep2] = arr[rep2],arr[rep1] for k in range(tate): print(arr[k])
Traceback (most recent call last): File "/tmp/tmpfdir5zbf/tmpg8t63ujo.py", line 1, in <module> tate =int(input()) ^^^^^^^ EOFError: EOF when reading a line
s061388599
p00001
u464859367
1521700829
Python
Python3
py
Runtime Error
0
0
111
N = input() a = [] for i in range(N): a.append(str(input())) a.sort() for i in range(3): print(a[i])
Traceback (most recent call last): File "/tmp/tmpsxono2yp/tmpfssloe8v.py", line 1, in <module> N = input() ^^^^^^^ EOFError: EOF when reading a line
s288152865
p00001
u464859367
1521701869
Python
Python3
py
Runtime Error
0
0
112
N = int(input()) a = [] for i in range(N): a.append(input()) a.sort() for i in range(3): print(a[i])
Traceback (most recent call last): File "/tmp/tmp522bfh5r/tmpzdawzj01.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s195193053
p00001
u464859367
1521703081
Python
Python3
py
Runtime Error
0
0
122
N = input() a = [] for i in range(N): a.append(input()) a = map(int,a) a.sort() for i in range(3): print(a[i])
Traceback (most recent call last): File "/tmp/tmpymscbb6b/tmp37bmpw8u.py", line 1, in <module> N = input() ^^^^^^^ EOFError: EOF when reading a line
s140189286
p00001
u120970792
1524756219
Python
Python3
py
Runtime Error
0
0
188
heights = [] for i in range(10): N = input() heights[i] = N sort_heights = sorted(heights, reverse=True) print(sort_heights[0]) print(sort_heights[1]) print(sort_heights[2])
Traceback (most recent call last): File "/tmp/tmpscujh984/tmpbaw8b118.py", line 4, in <module> N = input() ^^^^^^^ EOFError: EOF when reading a line
s276970232
p00001
u120970792
1524757490
Python
Python3
py
Runtime Error
0
0
224
import numpy as np heights = np.ndarray(10, dtype=int) for i in range(10): N = input() heights[i] = N sort_heights = np.sort(heights)[::-1] print(sort_heights[0]) print(sort_heights[1]) print(sort_heights[2])
Traceback (most recent call last): File "/tmp/tmp2oklfhrq/tmpxhki820u.py", line 6, in <module> N = input() ^^^^^^^ EOFError: EOF when reading a line
s012753696
p00001
u120970792
1524758242
Python
Python3
py
Runtime Error
0
0
444
import numpy as np heights = np.ndarray(10, dtype=int) first = 0 second = 0 third = 0 for i in range(10): N = int(input()) if(third < N): if(second < N): if(first < N): third = second second = first first = N else: third = second second = N else: third = N print(first) print(second) print(third)
Traceback (most recent call last): File "/tmp/tmpgfmz_749/tmps955_f9j.py", line 9, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s286069078
p00001
u908651435
1525329666
Python
Python3
py
Runtime Error
0
0
107
a=[] for i in range(0,10): n=int(input()) a.appnd(n) a.sort() for j in range(0,3): print(a[j])
Traceback (most recent call last): File "/tmp/tmpbwrbejjr/tmpd15k534e.py", line 3, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s481525540
p00001
u503263570
1525613355
Python
Python3
py
Runtime Error
0
0
96
import sys a=[map(int,i.split())for i in sys.stdin] print(*sorted(a,reverse=True)[:3],sep='\n')
s334380920
p00001
u929141425
1528206312
Python
Python3
py
Runtime Error
0
0
75
a = input(">>") a = a.split() x = str(int(a[0])+int(a[1])) print(len(x))
Traceback (most recent call last): File "/tmp/tmpktfpup5d/tmpz2x82jdw.py", line 1, in <module> a = input(">>") ^^^^^^^^^^^ EOFError: EOF when reading a line
>>
s680052135
p00001
u483248490
1529468230
Python
Python3
py
Runtime Error
0
0
246
first = 0; second = 0; third = 0; for var in range(0,10): N = input() if N>first: third = second second = first first = N elif N>second: third = second second = N elif N>third: third = N print (first) print (second) print (third)
Traceback (most recent call last): File "/tmp/tmpy5wxoxbf/tmpjhu7bghe.py", line 5, in <module> N = input() ^^^^^^^ EOFError: EOF when reading a line
s973623080
p00001
u483248490
1529468451
Python
Python3
py
Runtime Error
0
0
252
first = 0; second = 0; third = 0; for var in range(0,10): N = input() if (N>first): third = second second = first first = N elif (N>second): third = second second = N elif (N>third): third = N print (first) print (second) print (third)
Traceback (most recent call last): File "/tmp/tmp2q6aw2j_/tmpvibribkx.py", line 5, in <module> N = input() ^^^^^^^ EOFError: EOF when reading a line
s113981756
p00001
u517745281
1344322284
Python
Python
py
Runtime Error
0
3908
58
"\n".join(reverse(sort([input() for i in range(10)]))[:3])
Traceback (most recent call last): File "/tmp/tmp26xuf8yp/tmpymwdogjr.py", line 1, in <module> "\n".join(reverse(sort([input() for i in range(10)]))[:3]) ^^^^^^^ NameError: name 'reverse' is not defined. Did you mean: 'reversed'?
s469971172
p00001
u517745281
1344322415
Python
Python
py
Runtime Error
0
3908
61
"\n".join(reversed(sorted([input() for i in range(10)]))[:3])
Traceback (most recent call last): File "/tmp/tmp1qpvvtqy/tmpdsde45q6.py", line 1, in <module> "\n".join(reversed(sorted([input() for i in range(10)]))[:3]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmp1qpvvtqy/tmpdsde45q6.py", line 1, in <listcomp> "\n".join(reversed(sorted([input() for i in range(10)]))[:3]) ^^^^^^^ EOFError: EOF when reading a line
s404698302
p00001
u517745281
1344322855
Python
Python
py
Runtime Error
0
3908
53
"\n".join(sort([input() for i in range(10)])[:-3:-1])
Traceback (most recent call last): File "/tmp/tmp4ttywbi7/tmpc8tq2o0_.py", line 1, in <module> "\n".join(sort([input() for i in range(10)])[:-3:-1]) ^^^^ NameError: name 'sort' is not defined. Did you mean: 'sorted'?
s526954183
p00001
u517745281
1344322956
Python
Python
py
Runtime Error
0
3908
55
"\n".join(sorted([input() for i in range(10)])[:-3:-1])
Traceback (most recent call last): File "/tmp/tmpk8dtlbjz/tmptau5a3s6.py", line 1, in <module> "\n".join(sorted([input() for i in range(10)])[:-3:-1]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmpk8dtlbjz/tmptau5a3s6.py", line 1, in <listcomp> "\n".join(sorted([input() for i in range(10)])[:-3:-1]) ^^^^^^^ EOFError: EOF when reading a line
s556369804
p00001
u724947062
1346478107
Python
Python
py
Runtime Error
0
0
154
import sys input_list = list() for i in sys.stdin.readlines(): input_list.append(int(i)) for i in sorted(input_list, reversed=True)[:3]: print i
File "/tmp/tmpgx_gd7g_/tmp1cb9ajwg.py", line 8 print i ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s700829087
p00001
u779627195
1352357575
Python
Python
py
Runtime Error
0
4988
163
height = [] while 1: h = raw_input() if h == '': break h = int(h) height.append(h) height.sort(reverse=True) for i in range(3): print height[i]
File "/tmp/tmpmbn8v0iv/tmpviuy8na2.py", line 9 print height[i] ^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s634850767
p00001
u955423223
1353299131
Python
Python
py
Runtime Error
0
0
114
list=[] for i in range(10): list.append(input()) list.sort(reverse=true) for i in range(3): print list[i]
File "/tmp/tmpjmzm0un2/tmp3p3isk48.py", line 6 print list[i] ^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s406654659
p00001
u665962315
1357418378
Python
Python
py
Runtime Error
0
0
142
nums = [] while True: n = raw_input() if not n: break nums.append(int(n)) nums.sort(reverse=True) for i in range(3): print nums[i]
File "/tmp/tmp772zzjg9/tmp_8ocy15g.py", line 7 for i in range(3): print nums[i] ^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s125423610
p00001
u273917701
1360671097
Python
Python
py
Runtime Error
0
0
139
l=[] while True: s = raw_input() if s=="": break l.append(s) l.sort() l.reverse() for i in range(3): print l.pop(0)
File "/tmp/tmp7dnh_u8x/tmpq5j0cppt.py", line 10 print l.pop(0) ^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s196059089
p00001
u273917701
1360671826
Python
Python
py
Runtime Error
0
0
146
l=[] while True: try: l.append(input()) except SyntaxError: break l.sort(reverse = True) for i in range(3): print l[i]
File "/tmp/tmp9z6c4nd4/tmp242ei56r.py", line 9 print l[i] ^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s899348260
p00001
u282635979
1362244594
Python
Python
py
Runtime Error
0
0
143
x = [] a = 1 while True: if a != 10: x.append(int(raw_input())) a += 1 continue else: break x.sort() print x[9] print x[8] print x[7]
File "/tmp/tmp_bg7_6mw/tmpdcniziyq.py", line 11 print x[9] ^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s940588022
p00001
u246394513
1362275890
Python
Python
py
Runtime Error
0
0
94
map(lambda x: print x, sorted(map(lambda _: int(raw_input()), range(10)), reverse = True)[:3])
File "/tmp/tmp6lyc8jec/tmpu_hkfab4.py", line 1 map(lambda x: print x, sorted(map(lambda _: int(raw_input()), range(10)), reverse = True)[:3]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s777448728
p00001
u097334177
1366017627
Python
Python
py
Runtime Error
0
0
47
h = [input() for _ in xrange(10)].sort() h[0:3]
Traceback (most recent call last): File "/tmp/tmpk13xll6v/tmpw4t0m1wc.py", line 1, in <module> h = [input() for _ in xrange(10)].sort() ^^^^^^ NameError: name 'xrange' is not defined. Did you mean: 'range'?
s695529625
p00001
u116766943
1368071907
Python
Python
py
Runtime Error
0
0
99
lis = [] for i in xrange(10): lis.append(input()) for a in sorted(lis,reversed=True)[:3]: print a
File "/tmp/tmp3t57ijwu/tmp3g7drmr4.py", line 5 print a ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s505424746
p00001
u542421762
1368075845
Python
Python
py
Runtime Error
0
0
288
# # AIZU ONLINE JUDGE: List of Top 3 Hills # cf. http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0001&lang=jp # import sys file = sys.argv[1] lis = open(file, "r").readlines() lis = map((lambda x: int(x)), lis) lis.sort() lis.reverse() for height in lis[0:3]: print height
File "/tmp/tmp3puwi2m4/tmpi1hvk285.py", line 15 print height ^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s714685503
p00001
u542421762
1368076473
Python
Python
py
Runtime Error
0
0
151
import sys file = sys.argv[1] lis = open(file, "r").readlines() lis = map(int, lis) lis.sort() lis.reverse() for height in lis[0:3]: print height
File "/tmp/tmplzr2_ftj/tmp54qe3s6l.py", line 10 print height ^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s451863651
p00001
u814249052
1368361449
Python
Python
py
Runtime Error
0
0
164
import sys heights = [] for line in sys.stdin: heights.append(int(line.strip()) for height in sorted(heights, reverse=True)[:3]: print height sys.exit(0)
File "/tmp/tmpxo7nq3_5/tmpksjzavse.py", line 5 heights.append(int(line.strip()) ^ SyntaxError: '(' was never closed
s996613898
p00001
u611853667
1369984092
Python
Python
py
Runtime Error
0
0
58
print "\n".join(sorted([input() for x in xrange(10)])[:3])
File "/tmp/tmp0g_q09xq/tmpl599detj.py", line 1 print "\n".join(sorted([input() for x in xrange(10)])[:3]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s097979335
p00001
u759934006
1372529784
Python
Python
py
Runtime Error
0
0
111
from sys import stdin x = [int(input()) for i in range(10)] x.sort().reverse() for i in range(3): print(i)
Traceback (most recent call last): File "/tmp/tmp86tys1x1/tmp3iaq4dr4.py", line 3, in <module> x = [int(input()) for i in range(10)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmp86tys1x1/tmp3iaq4dr4.py", line 3, in <listcomp> x = [int(input()) for i in range(10)] ^^^^^^^ EOFError: EOF when reading a line
s357447994
p00001
u753631841
1372572469
Python
Python
py
Runtime Error
0
0
77
x = map(int, raw_input().split()) x.sort() x.reverse() print x[0], x[1], x[2]
File "/tmp/tmps2_0opmm/tmpxo9jnnhy.py", line 4 print x[0], x[1], x[2] ^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s984234428
p00001
u753631841
1372573324
Python
Python
py
Runtime Error
0
0
132
x = [] while True: try: x.append(int, raw_input()) except: break x.sort() x.reverse() print x[0], x[1], x[2]
File "/tmp/tmp34d44tfy/tmpb5j81m44.py", line 9 print x[0], x[1], x[2] ^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s839705146
p00001
u180584272
1381666163
Python
Python
py
Runtime Error
0
0
108
hs = [] for i in xrange(11): hs.append(int(raw_input())) hs.sort() print hs[9] print hs[8] print hs[7]
File "/tmp/tmpdt8u3ieh/tmpx4mxs4fn.py", line 7 print hs[9] ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s381701625
p00001
u511257811
1381672219
Python
Python
py
Runtime Error
0
0
140
import sys heights = [] for line in sys.stdin: heights.append(int(line.rstrip('\n'))) for height in heights.sort()[:3]: print height
File "/tmp/tmp490gs5vd/tmpw6wspe5n.py", line 6 print height ^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s379018181
p00001
u238820099
1382175395
Python
Python
py
Runtime Error
0
0
506
#------------------------------------------------------------------------------- # Name: module1 # Purpose: # # Author: sato # # Created: 19/10/2013 # Copyright: (c) sato 2013 # Licence: <your licence> #------------------------------------------------------------------------------- def input_and_sort(): l = [] for x in input(): l.append(x) l.sort() return l if __name__ == '__main__': l = input_and_sort() print l[0] print l[1] print l[2]
File "/tmp/tmph4xcl51s/tmpt85c874x.py", line 23 print l[0] ^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s747361725
p00001
u099743492
1391332984
Python
Python
py
Runtime Error
0
0
355
<?php $hi = fopen('php://stdin', "r"); $ho = fopen('php://stdout', "w"); # 空の配列を作成 $arr = array(); # 標準入力からデータをセット for($i = 0; $i < 10; $i++) { fscanf($hi, "%d", $arr[]); } # 降順ソート rsort($arr); # 出力 for($i = 0; $i < 3; $i++) { fwrite($ho, sprintf("%d\n", $arr[$i])); } fclose($ho); fclose($hi);
File "/tmp/tmp59svxq4m/tmp64gxhnid.py", line 1 <?php ^ SyntaxError: invalid syntax
s955815806
p00001
u931670212
1391589581
Python
Python
py
Runtime Error
0
0
660
out = [] def out.higher?(v) return true if self.size < 3 self.each do |h| return true if v > h end return false end def out.push(v) if self.size < 3 self << v return end min = 10000 min_i = 3 self.each_with_index do |h, i| min, min_i = h, i if min > h end self[min_i] = v end def out.puts_desc order = [] 3.times do max = 0 max_i = 3 self.each_with_index do |h, i| max, max_i = h, i if max < h end order << max self.delete_at(max_i) end order.each do |v| puts v end end 10.times do |count| num = readline.to_i if out.higher? num out.push num end end out.puts_desc
File "/tmp/tmp0giqrn1s/tmp2kdss7g4.py", line 26 3.times do ^ SyntaxError: invalid decimal literal
s410913881
p00001
u931670212
1391590035
Python
Python
py
Runtime Error
0
0
660
out = [] def out.higher?(v) return true if self.size < 3 self.each do |h| return true if v > h end return false end def out.push(v) if self.size < 3 self << v return end min = 10000 min_i = 3 self.each_with_index do |h, i| min, min_i = h, i if min > h end self[min_i] = v end def out.puts_desc order = [] 3.times do max = 0 max_i = 3 self.each_with_index do |h, i| max, max_i = h, i if max < h end order << max self.delete_at(max_i) end order.each do |v| puts v end end 10.times do |count| num = readline.to_i if out.higher? num out.push num end end out.puts_desc
File "/tmp/tmp9pk313bv/tmp4eqj41uk.py", line 26 3.times do ^ SyntaxError: invalid decimal literal
s233450177
p00001
u931670212
1391590220
Python
Python
py
Runtime Error
0
0
660
out = [] def out.higher?(v) return true if self.size < 3 self.each do |h| return true if v > h end return false end def out.push(v) if self.size < 3 self << v return end min = 10000 min_i = 3 self.each_with_index do |h, i| min, min_i = h, i if min > h end self[min_i] = v end def out.puts_desc order = [] 3.times do max = 0 max_i = 3 self.each_with_index do |h, i| max, max_i = h, i if max < h end order << max self.delete_at(max_i) end order.each do |v| puts v end end 10.times do |count| num = readline.to_i if out.higher? num out.push num end end out.puts_desc
File "/tmp/tmpe0z4e845/tmpr6p9qy3g.py", line 26 3.times do ^ SyntaxError: invalid decimal literal
s889742458
p00001
u633068244
1393346066
Python
Python
py
Runtime Error
0
0
129
a = [0 for i in range(10)] for i in range(10): a[i] = int(raw_input()) a.sort().reverse() print a[0] print a[1] print a[2]
File "/tmp/tmp946ocp3f/tmpmcibjg9g.py", line 8 print a[0] ^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s628494874
p00001
u193025715
1394473576
Python
Python
py
Runtime Error
0
0
148
#!/usr/bin/python array = [] for i in range(10): array[i] = raw_input() for j in range(3): print max(array) + "\n" array.remove(max(array))
File "/tmp/tmps_uruekk/tmpm4jejwoq.py", line 9 print max(array) + "\n" ^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s777073390
p00001
u193025715
1394473894
Python
Python
py
Runtime Error
0
0
148
#!/usr/bin/python array = [] for i in range(10): array[i] = raw_input() for j in range(3): print max(array) + "\n" array.remove(max(array))
File "/tmp/tmpabgiop17/tmpi8rqbg1p.py", line 9 print max(array) + "\n" ^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s514157623
p00001
u193025715
1394473947
Python
Python
py
Runtime Error
0
0
172
#!/usr/bin/python import sys array = [] for i in range(10): array[i] = raw_input() for j in range(3): print max(array) + "\n" array.remove(max(array)) sys.exit()
File "/tmp/tmpvbzbc31g/tmp96vmib11.py", line 11 print max(array) + "\n" ^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s837829729
p00001
u708217907
1397777875
Python
Python
py
Runtime Error
0
0
104
from sys import stdin x = [int(input()) for i range(10)] x.sort(reverse=True) for i in x[:3]: print(i)
File "/tmp/tmpxkq0qbdq/tmpq64g8m01.py", line 2 x = [int(input()) for i range(10)] ^^^^^^^^^^^ SyntaxError: invalid syntax. Perhaps you forgot a comma?
s025229258
p00001
u708217907
1397777988
Python
Python
py
Runtime Error
0
0
105
from sys import stdin x = [int(input()) for i range(10)] x.sort(reverse=True) for i in x[:3]: print(i)
File "/tmp/tmp1d2lcjar/tmpz7762jdo.py", line 3 x = [int(input()) for i range(10)] ^^^^^^^^^^^ SyntaxError: invalid syntax. Perhaps you forgot a comma?
s812192031
p00001
u047988051
1399970844
Python
Python3
py
Runtime Error
0
0
86
a = sorted(map(int,input().split(" ")),reverse=True) for i in range(0,3): print(a[i])
Traceback (most recent call last): File "/tmp/tmp52zgurc8/tmp_za16l2b.py", line 1, in <module> a = sorted(map(int,input().split(" ")),reverse=True) ^^^^^^^ EOFError: EOF when reading a line
s417665400
p00001
u462169221
1401381892
Python
Python
py
Runtime Error
0
0
83
m=[1819,2003,876,2840,1723,1673,3776,2848,1592,922] m.sort().reverse() print m[0|2]
File "/tmp/tmpp6z2qpy8/tmp3z1o3ehi.py", line 3 print m[0|2] ^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s801849639
p00001
u525640557
1402381546
Python
Python
py
Runtime Error
0
0
105
mountain=[a,b,c,d,e,f,g,h,i,j] mountain.sort() print mountain[-1] print mountain[-2] print mountain[-3]
File "/tmp/tmpbw1zqf6h/tmpuwt5o26u.py", line 5 print mountain[-1] ^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s785296311
p00002
u923573620
1535529409
Python
Python3
py
Runtime Error
0
0
63
a, b = (int(x) for x in input.split()) print(len(str(a + b)))
Traceback (most recent call last): File "/tmp/tmp0ymk14q1/tmpilfjozs9.py", line 1, in <module> a, b = (int(x) for x in input.split()) ^^^^^^^^^^^ AttributeError: 'builtin_function_or_method' object has no attribute 'split'
s106085018
p00002
u923573620
1535529641
Python
Python3
py
Runtime Error
0
0
105
while true: try: a, b = map(int, input.split(" ")) print(len(str(a + b))) expect: break
File "/tmp/tmpmzb8u_ja/tmphelgddle.py", line 6 expect: break ^^^^^^ SyntaxError: expected 'except' or 'finally' block
s361928745
p00002
u923573620
1535529775
Python
Python3
py
Runtime Error
0
0
106
while True: try: a, b = map(int, input.split(" ")) print(len(str(a + b))) expect: break
File "/tmp/tmpr0s8wud9/tmpi4wfjf28.py", line 6 expect: break ^^^^^^ SyntaxError: expected 'except' or 'finally' block
s601066378
p00002
u923573620
1535529915
Python
Python3
py
Runtime Error
0
0
105
while True: try: a,b = map(int, input.split(" ")) print(len(str(a + b))) expect: break
File "/tmp/tmpvam23rt5/tmpdfn4cp36.py", line 6 expect: break ^^^^^^ SyntaxError: expected 'except' or 'finally' block
s249760009
p00002
u923573620
1535529984
Python
Python3
py
Runtime Error
0
0
99
while True: try: a,b = map(int, input.split(" ")) print(len(str(a + b))) expect: break
File "/tmp/tmpx7ptr8bb/tmpjvs8j54n.py", line 6 expect: break ^^^^^^ SyntaxError: expected 'except' or 'finally' block
s855444664
p00002
u923573620
1535530044
Python
Python3
py
Runtime Error
0
0
108
while True: try: a, b = map(int, input().split(" ")) print(len(str(a + b))) expect: break
File "/tmp/tmph6j3fkzo/tmp643p0v0g.py", line 6 expect: break ^^^^^^ SyntaxError: expected 'except' or 'finally' block
s157677087
p00002
u483716678
1546358173
Python
Python
py
Runtime Error
0
0
97
def __main(): x = input() y = input() z = x + y print(len(str(z))) __main()
Traceback (most recent call last): File "/tmp/tmpdpp3sdsz/tmpa19simm4.py", line 10, in <module> __main() File "/tmp/tmpdpp3sdsz/tmpa19simm4.py", line 3, in __main x = input() ^^^^^^^ EOFError: EOF when reading a line
s776575670
p00002
u483716678
1546358998
Python
Python
py
Runtime Error
0
0
107
def __main(): x = int(input()) y = int(input()) z = x + y print(len(str(z))) __main()
Traceback (most recent call last): File "/tmp/tmpt2vg3zgv/tmp8qwfln_c.py", line 10, in <module> __main() File "/tmp/tmpt2vg3zgv/tmp8qwfln_c.py", line 3, in __main x = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s640585245
p00002
u483716678
1546359216
Python
Python
py
Runtime Error
0
0
123
def __main(): a,b = input().split(" ") a = int(a) b = int(b) z = a + b print(len(str(z))) __main()
Traceback (most recent call last): File "/tmp/tmpvnvcn3px/tmpeshh23dz.py", line 10, in <module> __main() File "/tmp/tmpvnvcn3px/tmpeshh23dz.py", line 3, in __main a,b = input().split(" ") ^^^^^^^ EOFError: EOF when reading a line
s847774474
p00002
u563307622
1556437627
Python
Python3
py
Runtime Error
0
0
61
a = input() b = input() c = str(int(a)+int(b)) print(len(c))
Traceback (most recent call last): File "/tmp/tmpn46vf4j1/tmp5pneoyyc.py", line 1, in <module> a = input() ^^^^^^^ EOFError: EOF when reading a line
s017551415
p00002
u477023447
1558936068
Python
Python3
py
Runtime Error
0
0
165
while 1: sum = input() if len(sum)<1: break else: sum_list = sum.split(" ") print(len(str(int(sum_list[0]) + int(sum_list[1]))))
Traceback (most recent call last): File "/tmp/tmpp3tpngcm/tmp30sb4azc.py", line 2, in <module> sum = input() ^^^^^^^ EOFError: EOF when reading a line
s406931996
p00002
u477023447
1558936095
Python
Python3
py
Runtime Error
0
0
165
while 1: sum = input() if len(sum)<1: break else: sum_list = sum.split(" ") print(len(str(int(sum_list[0]) + int(sum_list[1]))))
Traceback (most recent call last): File "/tmp/tmp8k6ed4xk/tmpsa3kegv3.py", line 2, in <module> sum = input() ^^^^^^^ EOFError: EOF when reading a line
s021413718
p00002
u477023447
1558936108
Python
Python3
py
Runtime Error
0
0
165
while 1: sum = input() if len(sum)<1: break else: sum_list = sum.split(" ") print(len(str(int(sum_list[0]) + int(sum_list[1]))))
Traceback (most recent call last): File "/tmp/tmp6ez2hll8/tmpbgmh63h9.py", line 2, in <module> sum = input() ^^^^^^^ EOFError: EOF when reading a line
s273325956
p00002
u850181309
1558936374
Python
Python3
py
Runtime Error
0
0
130
# -*- coding: utf-8 -*- while True: try: a, b = (int(s) for s in input().split(" ")) print len(str(a + b)) except: break
File "/tmp/tmpunb0rev9/tmpen7_rygf.py", line 5 print len(str(a + b)) ^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s242567094
p00002
u477023447
1558936374
Python
Python3
py
Runtime Error
0
0
188
i = 0 while i < 200: sum = input() if len(sum)<1: break else: sum_list = sum.split(" ") print(len(str(int(sum_list[0]) + int(sum_list[1])))) i += 1
Traceback (most recent call last): File "/tmp/tmpk0ffloi7/tmpfg24e9nx.py", line 3, in <module> sum = input() ^^^^^^^ EOFError: EOF when reading a line
s637846234
p00002
u990459103
1558936382
Python
Python3
py
Runtime Error
0
0
133
while 1: try: a,b = int(input().split()) c = a + b print(len(str(c))) except EOFError: break
s174780682
p00002
u477023447
1558936535
Python
Python3
py
Runtime Error
0
0
188
i = 0 while i < 200: sum = input() if len(sum)<1: break else: sum_list = sum.split(" ") print(len(str(int(sum_list[0]) + int(sum_list[1])))) i += 1
Traceback (most recent call last): File "/tmp/tmp3976ts0j/tmpn6dx447t.py", line 3, in <module> sum = input() ^^^^^^^ EOFError: EOF when reading a line
s631700009
p00002
u477023447
1558936576
Python
Python3
py
Runtime Error
0
0
137
i = 0 while i < 200: sum = input() sum_list = sum.split(" ") print(len(str(int(sum_list[0]) + int(sum_list[1])))) i += 1
Traceback (most recent call last): File "/tmp/tmp082ijpv5/tmpvc8vddyg.py", line 3, in <module> sum = input() ^^^^^^^ EOFError: EOF when reading a line
s066523390
p00002
u477023447
1558936687
Python
Python3
py
Runtime Error
0
0
155
i = 0 while 1: sum = input() sum_list = sum.split(" ") print(len(str(int(sum_list[0]) + int(sum_list[1])))) except EOFError: break
File "/tmp/tmp95cecv79/tmp7ghsseog.py", line 6 except EOFError: ^^^^^^ SyntaxError: invalid syntax