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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s968538336 | p02258 | u682357930 | 1452612143 | Python | Python | py | Runtime Error | 0 | 0 | 156 | import math
n = input()
maxv = -1 * 10**9
minv = input()
for j in range(1:n-1):
v = input()
maxv = max(maxv, v-minv)
minv = min(v, minv)
print maxv | File "/tmp/tmpyplhlq7d/tmps5_uvp0x.py", line 7
for j in range(1:n-1):
^
SyntaxError: invalid syntax
| |
s090504986 | p02258 | u682357930 | 1452612167 | Python | Python | py | Runtime Error | 0 | 0 | 170 | import math
n = input()
maxv = -1 * 10**9
minv = input()
for j in range(1:n-1):
v = input()
maxv = max(maxv, v-minv)
minv = min(v, minv)
print '{0}'.format(maxv) | File "/tmp/tmpm07h6cze/tmpw3ms1635.py", line 7
for j in range(1:n-1):
^
SyntaxError: invalid syntax
| |
s852742279 | p02258 | u682357930 | 1452612186 | Python | Python | py | Runtime Error | 0 | 0 | 170 | import math
n = input()
maxv = -1 * 10**9
minv = input()
for i in range(1:n-1):
v = input()
maxv = max(maxv, v-minv)
minv = min(v, minv)
print '{0}'.format(maxv) | File "/tmp/tmpr91ogns2/tmp60fmkjq0.py", line 7
for i in range(1:n-1):
^
SyntaxError: invalid syntax
| |
s027358227 | p02258 | u682357930 | 1452612527 | Python | Python | py | Runtime Error | 0 | 0 | 161 | n = input()
maxv = -1 * 10**9
minv = input()
for j in range(n-1):
v = input()
if maxv < v - minv:
maxv = v - minv
if minv > v
minv = v
print maxv | File "/tmp/tmpm_isyvgb/tmpgokb34aw.py", line 9
if minv > v
^
SyntaxError: expected ':'
| |
s215077670 | p02258 | u682357930 | 1452612542 | Python | Python | py | Runtime Error | 0 | 0 | 163 | n = input()
maxv = -1 * 10**9
minv = input()
for j in range(1,n-1):
v = input()
if maxv < v - minv:
maxv = v - minv
if minv > v
minv = v
print maxv | File "/tmp/tmp8zd_8p5x/tmpxmfa9llm.py", line 9
if minv > v
^
SyntaxError: expected ':'
| |
s534272299 | p02258 | u682357930 | 1452612607 | Python | Python | py | Runtime Error | 0 | 0 | 163 | n = input()
maxv = -1 * 10**9
minv = input()
for j in range(1,n-1):
v = input()
if maxv < v - minv:
maxv = v - minv
if minv > v
minv = v
print maxv | File "/tmp/tmp7ohomz0o/tmp6culfzk7.py", line 9
if minv > v
^
SyntaxError: expected ':'
| |
s718966068 | p02258 | u424209323 | 1453173548 | Python | Python | py | Runtime Error | 0 | 0 | 208 | num = raw_input()
max = 1 - 1000000000
length = len(num)
for i in range (length):
for j in range (i + 1, n):
if (max > (num[i] - num[j])):
max = num[i] - num[j]
print max | File "/tmp/tmpfgc1f7io/tmpy9314fzl.py", line 10
print max
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s972066322 | p02258 | u341533698 | 1454330158 | Python | Python | py | Runtime Error | 0 | 0 | 230 | def main():
N = input()
a = [input() for y in range(N)]
a_max = -10**9
for i in xrange(1,len(a)):
if (max(a[(i+1):]) - a[i]) >= a_max:
a_max = max(a[(i+1):]) - a[i]
return a_max
main() | Traceback (most recent call last):
File "/tmp/tmp1pg29ybt/tmpjx6rvrwl.py", line 11, in <module>
main()
File "/tmp/tmp1pg29ybt/tmpjx6rvrwl.py", line 3, in main
N = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s905082836 | p02258 | u341533698 | 1454330575 | Python | Python | py | Runtime Error | 0 | 0 | 206 | N = input()
a = [input() for y in range(N)]
a_max = -10**9
for i in xrange(1,len(a)-1):
if (max(a[(i+1):]) - a[i]) >= a_max:
a_max = max(a[(i+1):]) - a[i]
print a_max | File "/tmp/tmpsq7xah5h/tmpazekitqv.py", line 1
N = input()
IndentationError: unexpected indent
| |
s231911076 | p02258 | u923973323 | 1456500672 | Python | Python3 | py | Runtime Error | 0 | 0 | 212 | raw_data = raw_input()
data = raw_data.split('\n')
n = data.pop(0)
max_v = 1000000000
min_v = -1000000000
for i, r in enumerate(data):
max_v = max(max_v, r - min_v)
min_v = min(min_v, r)
print(max_v) | Traceback (most recent call last):
File "/tmp/tmp2iozmy_e/tmpknqjyqw2.py", line 1, in <module>
raw_data = raw_input()
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s947345058 | p02258 | u923973323 | 1456500924 | Python | Python3 | py | Runtime Error | 0 | 0 | 219 | max_v = 1000000000
min_v = -1000000000
with open('in1.txt', 'r') as f:
raw_data = f.readline()
n = raw_data
for r in f:
max_v = max(max_v, r - min_v)
min_v = min(min_v, r)
print(max_v) | Traceback (most recent call last):
File "/tmp/tmp8ajy4b64/tmpnfbwhwf8.py", line 4, in <module>
with open('in1.txt', 'r') as f:
^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'in1.txt'
| |
s688281352 | p02258 | u923973323 | 1456501287 | Python | Python3 | py | Runtime Error | 0 | 0 | 246 | max_v = 1000000000
min_v = -1000000000
n = input()
data = []
for i in range(N):
data.append(input())
for r in data:
max_v = max(max_v, r - min_v)
min_v = min(min_v, r)
print(max_v) | Traceback (most recent call last):
File "/tmp/tmpjh705_vh/tmpk1z_vo9u.py", line 4, in <module>
n = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s935175991 | p02258 | u923973323 | 1456501354 | Python | Python3 | py | Runtime Error | 0 | 0 | 246 | max_v = 1000000000
min_v = -1000000000
N = input()
data = []
for i in range(N):
data.append(input())
for r in data:
max_v = max(max_v, r - min_v)
min_v = min(min_v, r)
print(max_v) | Traceback (most recent call last):
File "/tmp/tmpx75t0mj4/tmpa1z6rc3t.py", line 4, in <module>
N = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s498574545 | p02258 | u923973323 | 1456501427 | Python | Python3 | py | Runtime Error | 0 | 0 | 242 | max_v = 1000000000
min_v = -1000000000
N = input()
data = []
for i in range(N):
data.append(input())
for r in data:
max_v = max(max_v, r - min_v)
min_v = min(min_v, r)
print(N) | Traceback (most recent call last):
File "/tmp/tmpezgdg_30/tmpp7_f43kz.py", line 4, in <module>
N = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s110303711 | p02258 | u923973323 | 1456501671 | Python | Python3 | py | Runtime Error | 0 | 0 | 242 | max_v = 1000000000
min_v = -1000000000
N = input()
data = []
for i in range(N):
data.append(input())
for r in data:
max_v = max(max_v, r - min_v)
min_v = min(min_v, r)
print(3) | Traceback (most recent call last):
File "/tmp/tmptj58njgv/tmpiri9pkv9.py", line 4, in <module>
N = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s129252196 | p02258 | u994049982 | 1458666041 | Python | Python | py | Runtime Error | 0 | 0 | 158 | a=input()
b=[]
for i in range(0,a+1):
b.append()
c=-400001
for i in range(a):
for ii in range(i,a):
if b[ii]-b[i]>c:c=b[ii]-b[i]
print(str(c)) | Traceback (most recent call last):
File "/tmp/tmpeto7ee8s/tmppapporkg.py", line 1, in <module>
a=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s899083614 | p02258 | u994049982 | 1458666083 | Python | Python | py | Runtime Error | 0 | 0 | 173 | a=int(input())
b=[]
for i in range(a+1):
b.append(int(input()))
c=-400001
for i in range(a):
for ii in range(i,a):
if b[ii]-b[i]>c:c=b[ii]-b[i]
print(str(c)) | Traceback (most recent call last):
File "/tmp/tmpvg_k82rt/tmpc4nih39x.py", line 1, in <module>
a=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s045028533 | p02258 | u572790226 | 1459915849 | Python | Python3 | py | Runtime Error | 40 | 7820 | 188 | import math
A = []
N = int(input())
maxdiff = 0
for n in range(N):
A.append(int(input()))
S = tuple(A)
Smax = ((S[i]-min(S[:i])) for i in range(1, N) if S[i] > S[i-1])
print(max(Smax)) | Traceback (most recent call last):
File "/tmp/tmpaotanqc9/tmprmntck1m.py", line 3, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s449302323 | p02258 | u003309334 | 1464669916 | Python | Python | py | Runtime Error | 10 | 6432 | 389 | n = input()
R = [input() for i in xrange(n)]
Rmin = n
maxdif = R[1] - R[0]
while Rmin > 0:
tRmin = R.index(min(R[0:Rmin]))
Rmax = R.index(max(R[tRmin:Rmin]))
if tRmin == Rmax:
if tRmin == n:
tRmin-=1
elif tRmin < n:
Rmax = tRmin + 1
Rmin = tRmin
if (R[Rmax] - R[Rmin]) > maxdif:
maxdif = R[Rmax] - R[Rmin]
print maxdif | File "/tmp/tmp7jozzwh7/tmpcn88zoyr.py", line 19
print maxdif
^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s919576632 | p02258 | u930806831 | 1464939105 | Python | Python3 | py | Runtime Error | 0 | 0 | 258 | n = int(input())
values = [int(input()) for i in range(n)]
maxv = -99999999
minimum = values[0]
for i in range(1, N):
if values[i] - minimum > maxv:
maxv = values[i] - minimum
if values[i] < minimum:
minimum = values[i]
print(maxv) | Traceback (most recent call last):
File "/tmp/tmpf9ferv95/tmpm0vd_39g.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s548426181 | p02258 | u935184340 | 1467284555 | Python | Python3 | py | Runtime Error | 0 | 0 | 280 | import sys
n = int(input())
r0 = int(input())
r1 = int(input())
mx = r1-r0
mn = min(r1,r0)
for i in map(int,sys.stdin.readlines()):
if 0 < mx < i - mn:
mx = i - mn
elif 0 > i-mn > max:
mx = i - mn
mn = i
elif mn > i:
mn = i
print(mx) | Traceback (most recent call last):
File "/tmp/tmpnzhq202s/tmp8pxqjo3g.py", line 3, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s768119859 | p02258 | u231136358 | 1471793745 | Python | Python3 | py | Runtime Error | 0 | 0 | 256 | r = []
N = int(input())
for i in range(0, N):
r.append(int(input()))
min_i = N-2
max_i = N-1
for i in range(N-1)[::-1]:
for j in range(i+1, N):
if r[j] - r[i] > r[max_i] - r[min_i]:
max_i = j
min_i = i
print(tmp) | Traceback (most recent call last):
File "/tmp/tmp4h9z_9wy/tmpd90q60hl.py", line 2, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s087811785 | p02258 | u443119229 | 1472187007 | Python | Python3 | py | Runtime Error | 0 | 0 | 183 | N = input()
a = []
for i in range(N):
a.append(input())
max_profit = a[1] - a[0]
for i in range(2,N):
if a[i] - a[i-1] > max_profit
max_profit = a[i] - a[i-1]
print(max_profit) | File "/tmp/tmpxmbkl0z3/tmpezz2e2d4.py", line 7
if a[i] - a[i-1] > max_profit
^
SyntaxError: expected ':'
| |
s437647934 | p02258 | u443119229 | 1472187037 | Python | Python3 | py | Runtime Error | 0 | 0 | 188 | N = input()
a = []
for i in range(N):
a.append(input())
max_profit = a[1] - a[0]
for i in range(2,N):
if a[i] - a[i-1] > max_profit
max_profit = a[i] - a[i-1]
print(str(max_profit)) | File "/tmp/tmpt8d_oq9k/tmp_j5ozcqc.py", line 7
if a[i] - a[i-1] > max_profit
^
SyntaxError: expected ':'
| |
s560931229 | p02258 | u443119229 | 1472187253 | Python | Python3 | py | Runtime Error | 0 | 0 | 198 | N = int(input())
a = []
for i in range(N):
a.append(int(input())
max_profit = a[1] - a[0]
for i in range(2,N):
if a[i] - a[i-1] > max_profit:
max_profit = a[i] - a[i-1]
print(str(max_profit)) | File "/tmp/tmpvhgdq492/tmpfrp7gulc.py", line 4
a.append(int(input())
^
SyntaxError: '(' was never closed
| |
s371058493 | p02258 | u443119229 | 1472188829 | Python | Python3 | py | Runtime Error | 0 | 0 | 268 | N = int(input())
a = []
for i in range(N):
a.append(int(input()))
max_profit = a[1] - a[0]
min_val = min(a[1],a[0])
for i in range(2,N):
if a[i] < min_val:
min_val = a[i]
else if a[i] - min_val > max_profit:
max_profit = a[i] - min_val
print(str(max_profit)) | File "/tmp/tmptg0cfr5v/tmp4_7dul6q.py", line 10
else if a[i] - min_val > max_profit:
^^
SyntaxError: expected ':'
| |
s238824502 | p02258 | u390995924 | 1472565588 | Python | Python3 | py | Runtime Error | 0 | 0 | 166 | n = int(input())
ps = [int(input()) for _ in range(n)]
maxpro = 0
for i, p in enumerate(ps[:-1]):
pro = max(ps[i + 1:]) - p
maxpro = max(pro, maxpro)
print maxpro | File "/tmp/tmp9tjm_6th/tmp991k38wf.py", line 7
print maxpro
^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s504148935 | p02258 | u756595712 | 1474703144 | Python | Python3 | py | Runtime Error | 0 | 0 | 352 | _temp = []
with open('_input_alds1', 'r') as f:
for line in f.readlines():
_temp.append(int(line.rstrip()))
_temp = _temp[1:]
my_max = []
for i, val in enumerate(_temp[:-1]):
my = max(_temp[i + 1:]) - val
if i == 0:
my_max.append(my)
else:
if my > max(my_max):
my_max.append(my)
print(max(my_max)) | Traceback (most recent call last):
File "/tmp/tmp1rn9ifw9/tmps_qfu60c.py", line 2, in <module>
with open('_input_alds1', 'r') as f:
^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '_input_alds1'
| |
s637099208 | p02258 | u756595712 | 1474704068 | Python | Python3 | py | Runtime Error | 0 | 0 | 392 | from _collections import deque
_temp = deque([])
my_max = []
size = int(input().rstrip())
for i in range(size):
try:
_temp.append(int(input()))
except EOFError:
continue
for val in _temp:
v = _temp.popleft()
my = max(_temp) - v
if i == 0:
my_max.append(my)
else:
if my > max(my_max):
my_max.append(my)
print(max(my_max)) | Traceback (most recent call last):
File "/tmp/tmps1yr0zyn/tmpe6161m12.py", line 6, in <module>
size = int(input().rstrip())
^^^^^^^
EOFError: EOF when reading a line
| |
s884147321 | p02258 | u756595712 | 1474704456 | Python | Python | py | Runtime Error | 0 | 0 | 415 | from _collections import deque
_temp = deque([])
my_max = []
size = int(input().rstrip())
for i in range(size):
try:
_temp.append(int(input()))
except EOFError:
continue
for val in list(_temp)[:-1]:
v = _temp.popleft()
my = max(_temp) - v
if len(my_max) == 0:
my_max.append(my)
else:
if my > max(my_max):
my_max.append(my)
print(max(my_max)) | Traceback (most recent call last):
File "/tmp/tmpejnbjbc6/tmpom5rz1h1.py", line 6, in <module>
size = int(input().rstrip())
^^^^^^^
EOFError: EOF when reading a line
| |
s142295726 | p02258 | u831244171 | 1477802275 | Python | Python | py | Runtime Error | 0 | 0 | 222 | n = input()
m = []
for i in range(n):
m.append(input())
interest = [m[1]-m[0]]
for i in range(n):
for j in range(i+1,n):
if interest[-1] < m[j]-m[i]
interest.append(m[j]-m[i])
print(interest[-1])
| File "/tmp/tmpe5su9e_8/tmpwms3sgfs.py", line 9
if interest[-1] < m[j]-m[i]
^
SyntaxError: expected ':'
| |
s095676334 | p02258 | u831244171 | 1477802317 | Python | Python | py | Runtime Error | 0 | 0 | 223 | n = input()
m = []
for i in range(n):
m.append(input())
interest = [m[1]-m[0]]
for i in range(n):
for j in range(i+1,n):
if interest[-1] < m[j]-m[i]:
interest.append(m[j]-m[i])
print(interest[-1])
| File "/tmp/tmpwalz3sji/tmppwc1a826.py", line 10
interest.append(m[j]-m[i])
^
IndentationError: expected an indented block after 'if' statement on line 9
| |
s775912975 | p02258 | u831244171 | 1477802495 | Python | Python | py | Runtime Error | 0 | 0 | 206 | n = input()
m = []
for i in range(n):
m.append(input())
interest = [m[1]-m[0]]
for i in range(n):
M = max(m[i+1:])
if interest[-1] <M-m[i]:
interest.append(M-m[i])
print(interest[-1])
| Traceback (most recent call last):
File "/tmp/tmpk28oncge/tmpj8oibl_j.py", line 1, in <module>
n = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s862432538 | p02258 | u497195381 | 1480231198 | Python | Python | py | Runtime Error | 0 | 0 | 164 | import sys
a = []
for line in sys.stdin:
a.append(int(line))
max=a[0]
min=a[1]
for b in a
if a[b] <= min:
min=a[b]
if a[b] >= max:
max=a[b]
print(max-min) | File "/tmp/tmpjl__phy0/tmpntnmn_y3.py", line 9
for b in a
^
SyntaxError: expected ':'
| |
s843909420 | p02258 | u497195381 | 1480231627 | Python | Python | py | Runtime Error | 0 | 0 | 178 | import sys
a = []
for line in sys.stdin:
a.append(int(line))
min=a[0]
max=-1*10**9
for b in a:
if a[b+1]-min >= max:
max=a[b]-min
if a[b+1] <= min:
min=a[b]
print(max) | Traceback (most recent call last):
File "/tmp/tmpz4ai54qz/tmpgj4dpcnx.py", line 7, in <module>
min=a[0]
~^^^
IndexError: list index out of range
| |
s483084994 | p02258 | u119456964 | 1480347796 | Python | Python | py | Runtime Error | 0 | 0 | 428 | n = int(raw_input())
R = [0 for i in range(n)]
ans = 1 - 10**9
for i in range(n):
R[i] = int(raw_input())
if i == 0:
min_R = R[0]
continue
if min_R < R[i]:
if ans < R[i]-min_R:
ans = R[i] - min_R
elif min_R > R[i]:
if ans < R[i]-min_R:
ans = R[i] - min_R
min_R = R[i]
else:
if ans < 0
ans = 0
print ans
| File "/tmp/tmpn3h6c96a/tmpf1k_os1m.py", line 19
if ans < 0
^
SyntaxError: expected ':'
| |
s598468151 | p02258 | u463990569 | 1482172073 | Python | Python3 | py | Runtime Error | 60 | 7700 | 262 | n = int(input())
stack = []
for _ in range(n):
stack.append(int(input()))
candidate = []
for i, v in enumerate(stack):
for j in [el for el in stack[:i] if v > el]:
candidate.append(v - j)
candidate = [max(candidate)]
print(candidate[0]) | Traceback (most recent call last):
File "/tmp/tmpb1yth7_c/tmplbjf45zn.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s200423866 | p02258 | u463990569 | 1482173138 | Python | Python3 | py | Runtime Error | 0 | 0 | 246 | n = int(input())
stack = []
for _ in range(n):
stack.append(int(input()))
for i in range(len(stack) - 1):
for r1, r2 in zip(stack[::1], stack[i::1]):
candidate.append(r2 - r3)
candidate = [max(candidate)]
print(candidate[0]) | Traceback (most recent call last):
File "/tmp/tmptsjl4rmo/tmptqyt8rj1.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s356194033 | p02258 | u463990569 | 1482173170 | Python | Python3 | py | Runtime Error | 0 | 0 | 246 | n = int(input())
stack = []
for _ in range(n):
stack.append(int(input()))
for i in range(len(stack) - 1):
for r1, r2 in zip(stack[::1], stack[i::1]):
candidate.append(r2 - r1)
candidate = [max(candidate)]
print(candidate[0]) | Traceback (most recent call last):
File "/tmp/tmpl0rat5c6/tmpnm_mv_b9.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s997592575 | p02258 | u508732591 | 1483770438 | Python | Python3 | py | Runtime Error | 0 | 0 | 244 | import sys
n = int(input())
minv = int(input())
maxv = -1000000000
for r in map(int,sys.stdin.readlines()):
if maxv < r-minv < 0:
maxv = r-minv
minv = r
elif maxv < r-minv:
maxv = r-minv
elif m < 0:
minv = r
print(maxv) | Traceback (most recent call last):
File "/tmp/tmp51it_oog/tmp47_rogcz.py", line 3, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s841033082 | p02258 | u508732591 | 1483770519 | Python | Python3 | py | Runtime Error | 0 | 0 | 244 | import sys
n = int(input())
minv = int(input())
maxv = -1000000000
for r in map(int,sys.stdin.readlines()):
if maxv < r-minv < 0:
maxv = r-minv
minv = r
elif maxv < r-minv:
maxv = r-minv
elif m < 0:
minv = r
print(maxv) | Traceback (most recent call last):
File "/tmp/tmp_lv9kqmf/tmpsazy5xsl.py", line 3, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s370882826 | p02258 | u508732591 | 1483770713 | Python | Python3 | py | Runtime Error | 0 | 0 | 208 | import sys
n = int(input())
minv = int(input())
maxv = -1000000000
for r in map(int,sys.stdin.readlines()):
m = r-minv
if maxv < m: maxv = m
if m < 0: minv = r
elif m < 0: minv = r
print(maxv) | File "/tmp/tmplh9bo7ui/tmpny0w9y4i.py", line 10
if m < 0: minv = r
IndentationError: unexpected indent
| |
s832638744 | p02258 | u918276501 | 1484797341 | Python | Python3 | py | Runtime Error | 0 | 0 | 113 | import sys
input()
a,b=-1e11,1e11
for i in map(int,sys.stdin.readlines()):
a=max(a,i-b)
b=min(i,b)
print(mar) | Traceback (most recent call last):
File "/tmp/tmpc_5517zj/tmpyo9ibfdm.py", line 2, in <module>
input()
EOFError: EOF when reading a line
| |
s558650063 | p02258 | u144068724 | 1487091897 | Python | Python3 | py | Runtime Error | 0 | 0 | 222 | n = int(input())
R = [int(input()) for i in range(n)]
profit= R[1] - R[0]
for i in range(n):
for j in range(i+1,n):
tmp = R[j]-R[i]
if profit < tmp:
profit = tmp
print(max(profit)) | Traceback (most recent call last):
File "/tmp/tmpc663s1zl/tmpa_mmu1vw.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s679320373 | p02258 | u144068724 | 1487091929 | Python | Python3 | py | Runtime Error | 0 | 0 | 222 | n = int(input())
R = [int(input()) for i in range(n)]
profit= R[1] - R[0]
for i in range(n):
for j in range(i+1,n):
tmp = R[j]-R[i]
if profit < tmp:
profit = tmp
print(max(profit)) | Traceback (most recent call last):
File "/tmp/tmpzlaey6el/tmpc4oyusrd.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s342172964 | p02258 | u848688448 | 1487941234 | Python | Python3 | py | Runtime Error | 50 | 14404 | 233 | import sys
num = int(input())
input_line = sys.stdin.readlines()
inputnum = [int(x.strip()) for x in input_line]
diff = []
for j in range(num):
for i in range(j):
diff.append(inputnum[j] - inputnum[i])
print(max(*diff)) | Traceback (most recent call last):
File "/tmp/tmpqbzhwz1n/tmp5ce4u6ws.py", line 3, in <module>
num = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s694256163 | p02258 | u893511382 | 1488963395 | Python | Python3 | py | Runtime Error | 0 | 0 | 131 |
for i in R[1:]:
max_p = -10^ 9
min_p = 10 ^ 9
max_p = max(i - min_p, max_p)
min_p = min(min_p, i)
return max_p | File "/tmp/tmpvi05n0qe/tmpqu1h8wio.py", line 7
return max_p
^^^^^^^^^^^^
SyntaxError: 'return' outside function
| |
s362332109 | p02258 | u810591206 | 1492787917 | Python | Python3 | py | Runtime Error | 0 | 0 | 174 | import numpy as np
n = int(input())
l = np.zeros(n)
for i in range(n):
l[i] = int(input())
x = [l[j] - l[i] for j in range(1, n) for i in range(j)]
print(int(max(x))) | Traceback (most recent call last):
File "/tmp/tmpd2za8av8/tmpwv9k9_nf.py", line 3, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s717006120 | p02258 | u213265973 | 1494488991 | Python | Python3 | py | Runtime Error | 0 | 0 | 224 | n = int(input())
r_min = int(input())
r_t = int(input())
g_max = r_t - r_min
r_ min = min(r_min, r_t)
for _ in range(n-2):
r_t = int(input())
g_max = max(g_max, r_t - r_min)
r_min = min(r_min,r_t)
print(g_max) | File "/tmp/tmpynhr9bjd/tmpsrygkqu7.py", line 6
r_ min = min(r_min, r_t)
^^^
SyntaxError: invalid syntax
| |
s245366890 | p02258 | u213265973 | 1494489069 | Python | Python3 | py | Runtime Error | 0 | 0 | 224 | n = int(input())
r_min = int(input())
r_t = int(input())
g_max = r_t - r_min
r_ min = min(r_min, r_t)
for _ in range(n-2):
r_t = int(input())
g_max = max(g_max, r_t - r_min)
r_min = min(r_min, r_t)
print(g_max) | File "/tmp/tmp1hdvm6cc/tmpkpfacreq.py", line 5
r_ min = min(r_min, r_t)
^^^
SyntaxError: invalid syntax
| |
s455353532 | p02258 | u213265973 | 1494489133 | Python | Python3 | py | Runtime Error | 0 | 0 | 225 | n = int(input())
r_min = int(input())
r_t = int(input())
g_max = r_t - r_min
r_ min = min(r_min, r_t)
for _ in range(n-2):
r_t = int(input())
g_max = max(g_max, r_t - r_min)
r_min = min(r_min, r_t)
print(g_max) | File "/tmp/tmpkntxciv1/tmpdgzva6_2.py", line 5
r_ min = min(r_min, r_t)
^^^
SyntaxError: invalid syntax
| |
s452059405 | p02258 | u213265973 | 1494489166 | Python | Python3 | py | Runtime Error | 0 | 0 | 225 | n = int(input())
r_min = int(input())
r_t = int(input())
g_max = r_t - r_min
r_ min = min(r_min, r_t)
for _ in range(n-2):
r_t = int(input())
g_max = max(g_max, r_t - r_min)
r_min = min(r_min, r_t)
print(g_max) | File "/tmp/tmpfdk_26g2/tmp_t9lur5b.py", line 5
r_ min = min(r_min, r_t)
^^^
SyntaxError: invalid syntax
| |
s804290844 | p02258 | u213265973 | 1494489211 | Python | Python3 | py | Runtime Error | 0 | 0 | 225 | n = int(input())
r_min = int(input())
r_t = int(input())
g_max = r_t - r_min
r_ min = min(r_min, r_t)
for _ in range(n-2):
r_t = int(input())
g_max = max(g_max, r_t - r_min)
r_min = min(r_min, r_t)
print(g_max) | File "/tmp/tmpwidqwj6h/tmpctbfgfzm.py", line 5
r_ min = min(r_min, r_t)
^^^
SyntaxError: invalid syntax
| |
s785683559 | p02258 | u213265973 | 1494489216 | Python | Python3 | py | Runtime Error | 0 | 0 | 225 | n = int(input())
r_min = int(input())
r_t = int(input())
g_max = r_t - r_min
r_ min = min(r_min, r_t)
for _ in range(n-2):
r_t = int(input())
g_max = max(g_max, r_t - r_min)
r_min = min(r_min, r_t)
print(g_max) | File "/tmp/tmpx6ga7xna/tmpi40s30lx.py", line 5
r_ min = min(r_min, r_t)
^^^
SyntaxError: invalid syntax
| |
s614886594 | p02258 | u939814144 | 1494910880 | Python | Python3 | py | Runtime Error | 0 | 0 | 328 | import sys
def get_maximum_profit:
element_number = int(input())
v0 = int(input())
v1 = int(input())
min_v = v0
max_profit = v1-v0
for i in map(int, sys.stdin.readlines()):
min_v = min(min_v, i)
max_profit = max(max_profit, i-min_v)
if __name__ == '__main__':
get_maximum_profit() | File "/tmp/tmp2ndmtnk8/tmpvomqm2il.py", line 3
def get_maximum_profit:
^
SyntaxError: expected '('
| |
s653584723 | p02258 | u279605379 | 1495278498 | Python | Python3 | py | Runtime Error | 0 | 0 | 322 | n=int(input())
fir=int(input())
sec=int(input())
max=sec
if(fir>sec):
min=sec
elif(fir<=sec):
min=fir
max_dif=sec-fir
for i in range(n-2):
x=int(input())
if x>max_num:
max_num = x
if max_dif < x-min:
max_dif = x-min
if x<min:
min = x
max_num=1
print(max_dif) | Traceback (most recent call last):
File "/tmp/tmpy_42ww2v/tmpqw6j29mu.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s808909110 | p02258 | u279605379 | 1495278558 | Python | Python3 | py | Runtime Error | 0 | 0 | 322 | n=int(input())
fir=int(input())
sec=int(input())
max=sec
if(fir>sec):
min=sec
elif(fir<=sec):
min=fir
max_dif=sec-fir
for i in range(n-2):
x=int(input())
if x>max_num:
max_num = x
if max_dif < x-min:
max_dif = x-min
if x<min:
min = x
max_num=1
print(max_dif) | Traceback (most recent call last):
File "/tmp/tmprxp162vv/tmpqabo6kxg.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s411001522 | p02258 | u279605379 | 1495278637 | Python | Python3 | py | Runtime Error | 0 | 0 | 322 | n=int(input())
fir=int(input())
sec=int(input())
max=sec
if(fir>sec):
min=sec
elif(fir<=sec):
min=fir
max_dif=sec-fir
for i in range(n-2):
x=int(input())
if x>max_num:
max_num = x
if max_dif < x-min:
max_dif = x-min
if x<min:
min = x
max_num=1
print(max_dif) | Traceback (most recent call last):
File "/tmp/tmp7jdrcdaw/tmp3nyw8p60.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s180281234 | p02258 | u279605379 | 1495278709 | Python | Python3 | py | Runtime Error | 0 | 0 | 366 | n=int(input())
fir=int(input())
sec=int(input())
max=sec
if(fir>sec):
min=sec
elif(fir<=sec):
min=fir
max_dif=sec-fir
if n>2:
for i in range(n-2):
x=int(input())
if x>max_num:
max_num = x
if max_dif < x-min:
max_dif = x-min
if x<min:
min = x
max_num=1
print(max_dif) | Traceback (most recent call last):
File "/tmp/tmpf3rtg91o/tmp5o38vxrd.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s321112454 | p02258 | u279605379 | 1495279099 | Python | Python3 | py | Runtime Error | 0 | 0 | 373 | n=int(input())
fir=int(input())
sec=int(input())
max_=sec
if(fir>sec):
min_=sec
elif(fir<=sec):
min_=fir
max_dif=sec-fir
if n>2:
for i in range(n-2):
x=int(input())
if x>max_num:
max_num = x
if max_dif < x-min_:
max_dif = x-min_
if x<min_:
min_ = x
max_num=1
print(max_dif) | Traceback (most recent call last):
File "/tmp/tmpch313qk3/tmpi29ob1ha.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s877160223 | p02258 | u279605379 | 1495279180 | Python | Python3 | py | Runtime Error | 0 | 0 | 373 | n=int(input())
fir=int(input())
sec=int(input())
max_=sec
if(fir>sec):
min_=sec
elif(fir<=sec):
min_=fir
max_dif=sec-fir
if n>2:
for i in range(n-3):
x=int(input())
if x>max_num:
max_num = x
if max_dif < x-min_:
max_dif = x-min_
if x<min_:
min_ = x
max_num=1
print(max_dif) | Traceback (most recent call last):
File "/tmp/tmpqc17n6nc/tmprtmu77e2.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s316175280 | p02258 | u626838615 | 1496062983 | Python | Python3 | py | Runtime Error | 0 | 0 | 283 | import math
n = int(input())
r = [None] * n
min = math.inf
max = -math.inf
for i in range(n):
r[i] = int(input())
for i in range(n):
if min > r[i]:
min = r[i]
for j in range(i+1,n):
if max < r[j] - min:
max = r[j] - min
print(max) | Traceback (most recent call last):
File "/tmp/tmpkvwu6bgk/tmp7ryqfsb7.py", line 2, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s185136163 | p02258 | u905313459 | 1496229511 | Python | Python3 | py | Runtime Error | 0 | 0 | 256 | n = int(input())
l = [int(input()) for i in range(n)][::-1]
maximum = l[0] - min(l[1:])
if maximum > 0:
x = [i for i in l if l[0] <= i]
for j in range(len(x)-1):
if maximum < l[j] - min(l[j+1:]):
maximum = l[j] - min(l[j+1:])
input(maximum) | Traceback (most recent call last):
File "/tmp/tmpyfzu4ici/tmp4s_cb3ku.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s070837008 | p02258 | u905313459 | 1496229558 | Python | Python3 | py | Runtime Error | 0 | 0 | 262 | n = int(input())
l = [int(input()) for i in range(n)][::-1]
maximum = l[0] - min(l[1:])
x = l
if maximum > 0:
x = [i for i in l if l[0] <= i]
for j in range(len(x)-1):
if maximum < l[j] - min(l[j+1:]):
maximum = l[j] - min(l[j+1:])
input(maximum) | Traceback (most recent call last):
File "/tmp/tmpg6zjh6q6/tmp269otevt.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s931945513 | p02258 | u905313459 | 1496230055 | Python | Python3 | py | Runtime Error | 0 | 0 | 268 | n = int(input())
l = [int(input()) for i in range(n)]
l = l[::-1]
maximum = l[0] - min(l[1:])
x = l
if maximum > 0:
x = [i for i in l if l[0] <= i]
for j in range(len(x)-1):
if maximum < l[j] - min(l[j+1:]):
maximum = l[j] - min(l[j+1:])
input(maximum) | Traceback (most recent call last):
File "/tmp/tmpor8r2kng/tmpcw3ziuta.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s531804054 | p02258 | u492906552 | 1496383217 | Python | Python3 | py | Runtime Error | 0 | 0 | 488 | day = int(input('Please enter the number of day '))
buy = []
for i in range(day):
buy.append(int(input('Please enter the buying price of Day '+str(i+1)+' ')))
sell = []
for i in range(day):
sell.append(int(input('Please enter the selling price of Day '+str(i+1)+' ')))
max_table=[]
for i in range(day):
table=[]
for j in range(day):
if i <= j:
pro = sell[j]-buy[i]
table.append(pro)
max_table.append(max(table))
print(max(max_table)) | Traceback (most recent call last):
File "/tmp/tmpvrtdsin1/tmp6le05hf_.py", line 1, in <module>
day = int(input('Please enter the number of day '))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
EOFError: EOF when reading a line
| Please enter the number of day |
s270369298 | p02258 | u256678932 | 1496906249 | Python | Python3 | py | Runtime Error | 0 | 0 | 322 | def main():
n = int(input())
nums = []
for i in range(n):
nums.append(int(input()))
r = max(nums[1:]) - nums[0]
for i in range(1, n-1):
ri = nums[i]
if ri == rj:
rj = max(nums[i+1:])
r = max(r, rj-ri)
print(r)
if __name__ == '__main__':
main() | Traceback (most recent call last):
File "/tmp/tmpm_r6pthu/tmpduw_qelu.py", line 21, in <module>
main()
File "/tmp/tmpm_r6pthu/tmpduw_qelu.py", line 2, in main
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s579208894 | p02258 | u256678932 | 1496906304 | Python | Python3 | py | Runtime Error | 0 | 0 | 322 | def main():
n = int(input())
nums = []
for i in range(n):
nums.append(int(input()))
r = max(nums[1:]) - nums[0]
for i in range(1, n-1):
ri = nums[i]
if ri == rj:
rj = max(nums[i+1:])
r = max(r, rj-ri)
print(r)
if __name__ == '__main__':
main() | Traceback (most recent call last):
File "/tmp/tmp8tvffrls/tmpwf3m9nbi.py", line 21, in <module>
main()
File "/tmp/tmp8tvffrls/tmpwf3m9nbi.py", line 2, in main
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s218819325 | p02258 | u747635679 | 1497995391 | Python | Python3 | py | Runtime Error | 0 | 0 | 173 | import math
maxv = -inf
minv = inf
n = int(input())
for i in range(n):
tmp = int(input())
maxv = max(maxv, tmp - minv)
minv = min(tmp, minv)
print(maxv) | Traceback (most recent call last):
File "/tmp/tmp_kj32cbg/tmp8to2jqmv.py", line 3, in <module>
maxv = -inf
^^^
NameError: name 'inf' is not defined. Did you mean: 'int'?
| |
s118097817 | p02258 | u747635679 | 1497995615 | Python | Python3 | py | Runtime Error | 0 | 0 | 160 | maxv = -inf
minv = inf
n = int(input())
for i in range(n):
tmp = int(input())
maxv = max(maxv, tmp - minv)
minv = min(tmp, minv)
print(maxv) | Traceback (most recent call last):
File "/tmp/tmpbeo1cz1e/tmp1c3a2tjb.py", line 1, in <module>
maxv = -inf
^^^
NameError: name 'inf' is not defined. Did you mean: 'int'?
| |
s833539891 | p02258 | u311299757 | 1500102017 | Python | Python3 | py | Runtime Error | 0 | 0 | 310 | v = []
v = str(inp).splitlines()
dif_max = -200000
for i in range(len(v) ):
v[i] = int(v[i])
for i in range(len(v) - 1):
for j in range(i + 1, len(v), 1):
dif = v[j] - v[i]
dif_max = dif if dif_max < dif else dif_max
print("{}".format(dif_max)) | File "/tmp/tmpnmbmcyg5/tmpai_avaoq.py", line 1
v = []
IndentationError: unexpected indent
| |
s862275760 | p02258 | u311299757 | 1500102240 | Python | Python3 | py | Runtime Error | 0 | 0 | 260 | v = str(input()).splitlines()
dif_max = -200000
for i in range(len(v)):
v[i] = int(v[i])
for i in range(1,v[0],1):
for j in range(i+1, v[0], 1):
dif = v[j] - v[i]
dif_max = dif if dif_max < dif else dif_max
print("{}".format(dif_max)) | Traceback (most recent call last):
File "/tmp/tmpzcz4463e/tmp40siqyaa.py", line 1, in <module>
v = str(input()).splitlines()
^^^^^^^
EOFError: EOF when reading a line
| |
s584502245 | p02258 | u311299757 | 1500102249 | Python | Python3 | py | Runtime Error | 0 | 0 | 265 | v=[]
v = str(input()).splitlines()
dif_max = -200000
for i in range(len(v)):
v[i] = int(v[i])
for i in range(1,v[0],1):
for j in range(i+1, v[0], 1):
dif = v[j] - v[i]
dif_max = dif if dif_max < dif else dif_max
print("{}".format(dif_max)) | Traceback (most recent call last):
File "/tmp/tmpawc4n377/tmpzsb_8yc6.py", line 2, in <module>
v = str(input()).splitlines()
^^^^^^^
EOFError: EOF when reading a line
| |
s632782261 | p02258 | u311299757 | 1500102577 | Python | Python3 | py | Runtime Error | 0 | 0 | 288 | v = []
v = str(input()).splitlines()
dif_max = -200000
for i in range(len(v)):
v[i] = int(v[i])
len = v[0]
for i in range(2, len + 1, 1):
for j in range(i + 1, len + 1, 1):
dif = v[j] - v[i]
dif_max = dif if dif_max < dif else dif_max
print("{}".format(dif_max)) | Traceback (most recent call last):
File "/tmp/tmp92w5299s/tmp_44ks9d2.py", line 2, in <module>
v = str(input()).splitlines()
^^^^^^^
EOFError: EOF when reading a line
| |
s077773798 | p02258 | u311299757 | 1500102900 | Python | Python3 | py | Runtime Error | 0 | 0 | 285 | v = []
v = str(inp).splitlines()
dif_max = -200000
for i in range(len(v)):
v[i] = int(v[i])
len = v[0]
for i in range(2, len + 1, 1):
for j in range(i + 1, len + 1, 1):
dif = v[j] - v[i]
dif_max = dif if dif_max < dif else dif_max
print("{}".format(dif_max)) | Traceback (most recent call last):
File "/tmp/tmpxk_r_z17/tmp0beztj22.py", line 2, in <module>
v = str(inp).splitlines()
^^^
NameError: name 'inp' is not defined. Did you mean: 'int'?
| |
s940782374 | p02258 | u311299757 | 1500102913 | Python | Python3 | py | Runtime Error | 0 | 0 | 289 | v = []
v = str(input()).splitlines()
dif_max = -200000
for i in range(len(v)):
v[i] = int(v[i])
len = v[0]
for i in range(2, len + 1, 1):
for j in range(i + 1, len + 1, 1):
dif = v[j] - v[i]
dif_max = dif if dif_max < dif else dif_max
print("{}".format(dif_max)) | Traceback (most recent call last):
File "/tmp/tmpz9j64f11/tmpkfu6agmy.py", line 2, in <module>
v = str(input()).splitlines()
^^^^^^^
EOFError: EOF when reading a line
| |
s964791302 | p02258 | u311299757 | 1500103225 | Python | Python3 | py | Runtime Error | 0 | 0 | 284 | v = []
v = str(input()).split()
dif_max = -200000
for i in range(len(v)):
v[i] = int(v[i])
len = v[0]
for i in range(2, len + 1, 1):
for j in range(i + 1, len + 1, 1):
dif = v[j] - v[i]
dif_max = dif if dif_max < dif else dif_max
print("{}".format(dif_max)) | Traceback (most recent call last):
File "/tmp/tmp7hz1yv2h/tmp3jgo5shu.py", line 2, in <module>
v = str(input()).split()
^^^^^^^
EOFError: EOF when reading a line
| |
s530151405 | p02258 | u311299757 | 1500103302 | Python | Python3 | py | Runtime Error | 0 | 0 | 284 | v = []
v = str(input()).split()
dif_max = -200000
for i in range(len(v)):
v[i] = int(v[i])
len = v[0]
for i in range(2, len + 1, 1):
for j in range(i + 1, len + 1, 1):
dif = v[j] - v[i]
dif_max = dif if dif_max < dif else dif_max
print("{}".format(dif_max)) | Traceback (most recent call last):
File "/tmp/tmpwxrz4fk0/tmp0k4huinb.py", line 2, in <module>
v = str(input()).split()
^^^^^^^
EOFError: EOF when reading a line
| |
s334152796 | p02258 | u311299757 | 1500103318 | Python | Python3 | py | Runtime Error | 0 | 0 | 284 | v = []
v = str(input()).split()
dif_max = -200000
for i in range(len(v)):
v[i] = int(v[i])
len = v[0]
for i in range(2, len + 1, 1):
for j in range(i + 1, len + 1, 1):
dif = v[j] - v[i]
dif_max = dif if dif_max < dif else dif_max
print("{}".format(dif_max)) | Traceback (most recent call last):
File "/tmp/tmpfoitwsxv/tmpybpdbuaz.py", line 2, in <module>
v = str(input()).split()
^^^^^^^
EOFError: EOF when reading a line
| |
s286471641 | p02258 | u311299757 | 1500103379 | Python | Python3 | py | Runtime Error | 0 | 0 | 121 | v = []
v = str(input()).split()
dif_max = -200000
for i in range(len(v)):
v[i] = int(v[i])
print("{}".format(v[3])) | Traceback (most recent call last):
File "/tmp/tmp1zloo0tm/tmpqjotlbuu.py", line 2, in <module>
v = str(input()).split()
^^^^^^^
EOFError: EOF when reading a line
| |
s416316656 | p02258 | u311299757 | 1500103437 | Python | Python3 | py | Runtime Error | 0 | 0 | 279 | v = []
v = str(input()).split()
dif_max = -200000
for i in range(len(v)):
v[i] = int(v[i])
l = v[0]
for i in range(2, l + 1, 1):
for j in range(i + 1, l + 1, 1):
dif = v[j] - v[i]
dif_max = dif if dif_max < dif else dif_max
print("{}".format(dif_max)) | Traceback (most recent call last):
File "/tmp/tmpjpgh5hoo/tmpvo9cdw5z.py", line 2, in <module>
v = str(input()).split()
^^^^^^^
EOFError: EOF when reading a line
| |
s074153964 | p02258 | u311299757 | 1500103472 | Python | Python3 | py | Runtime Error | 0 | 0 | 277 | v = str(input()).split()
dif_max = -200000
for i in range(len(v)):
v[i] = int(v[i])
len = v[0]
for i in range(2, len + 1, 1):
for j in range(i + 1, len + 1, 1):
dif = v[j] - v[i]
dif_max = dif if dif_max < dif else dif_max
print("{}".format(dif_max)) | Traceback (most recent call last):
File "/tmp/tmpshgxy1mq/tmp1mhc3tud.py", line 1, in <module>
v = str(input()).split()
^^^^^^^
EOFError: EOF when reading a line
| |
s677096365 | p02258 | u311299757 | 1500103563 | Python | Python3 | py | Runtime Error | 0 | 0 | 277 | v = str(input()).split()
dif_max = -200000
for i in range(len(v)):
v[i] = int(v[i])
len = v[0]
for i in range(2, len + 1, 1):
for j in range(i + 1, len + 1, 1):
dif = v[j] - v[i]
dif_max = dif if dif_max < dif else dif_max
print("{}".format(dif_max)) | Traceback (most recent call last):
File "/tmp/tmps16jokjw/tmp99xwfu0r.py", line 1, in <module>
v = str(input()).split()
^^^^^^^
EOFError: EOF when reading a line
| |
s210464285 | p02258 | u311299757 | 1500103698 | Python | Python3 | py | Runtime Error | 0 | 0 | 269 | v = str(input()).split()
dif_max = -200000
for i in range(len(v)):
v[i] = int(v[i])
len = v[0]
for i in range(2, len, 1):
for j in range(i + 1, len, 1):
dif = v[j] - v[i]
dif_max = dif if dif_max < dif else dif_max
print("{}".format(dif_max)) | Traceback (most recent call last):
File "/tmp/tmp9q7d3z70/tmp9jis6y2y.py", line 1, in <module>
v = str(input()).split()
^^^^^^^
EOFError: EOF when reading a line
| |
s244994891 | p02258 | u311299757 | 1500103742 | Python | Python3 | py | Runtime Error | 0 | 0 | 101 | v = str(input()).split()
dif_max = -200000
for i in range(len(v)):
v[i] = int(v[i])
print(v[2]) | Traceback (most recent call last):
File "/tmp/tmpdipxc45p/tmppz_p_1ri.py", line 1, in <module>
v = str(input()).split()
^^^^^^^
EOFError: EOF when reading a line
| |
s138692045 | p02258 | u311299757 | 1500103761 | Python | Python3 | py | Runtime Error | 0 | 0 | 106 | v=[]
v = str(input()).split()
dif_max = -200000
for i in range(len(v)):
v[i] = int(v[i])
print(v[2]) | Traceback (most recent call last):
File "/tmp/tmp73bb6x_h/tmp37x6se_p.py", line 2, in <module>
v = str(input()).split()
^^^^^^^
EOFError: EOF when reading a line
| |
s265941668 | p02258 | u311299757 | 1500103785 | Python | Python3 | py | Runtime Error | 0 | 0 | 60 | v=[]
v = str(input()).split()
dif_max = -200000
print(v[2]) | Traceback (most recent call last):
File "/tmp/tmpikm_4i2m/tmpgpsl8l7r.py", line 2, in <module>
v = str(input()).split()
^^^^^^^
EOFError: EOF when reading a line
| |
s306446831 | p02258 | u311299757 | 1500103911 | Python | Python3 | py | Runtime Error | 0 | 0 | 60 | v=[]
v = str(input()).split()
dif_max = -200000
print(v[2]) | Traceback (most recent call last):
File "/tmp/tmp_lqkzrhk/tmpq3oly2wh.py", line 2, in <module>
v = str(input()).split()
^^^^^^^
EOFError: EOF when reading a line
| |
s318386739 | p02258 | u311299757 | 1500103975 | Python | Python3 | py | Runtime Error | 0 | 0 | 42 | v=[]
v = str(input()).split()
print(v[2]) | Traceback (most recent call last):
File "/tmp/tmpxsromc0o/tmpdjrmzpra.py", line 2, in <module>
v = str(input()).split()
^^^^^^^
EOFError: EOF when reading a line
| |
s821796359 | p02258 | u311299757 | 1500103990 | Python | Python3 | py | Runtime Error | 0 | 0 | 39 | v = []
v = input().split()
print(v[2]) | Traceback (most recent call last):
File "/tmp/tmpp35of52_/tmpdgpxc0ro.py", line 2, in <module>
v = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s653172988 | p02258 | u311299757 | 1500104038 | Python | Python3 | py | Runtime Error | 0 | 0 | 260 | v = str(inp).split()
dif_max = -200000
for i in range(len(v)):
v[i] = int(v[i])
len = v[0]
for i in range(2, len + 1, 1):
for j in range(i + 1, len + 1, 1):
dif = v[j] - v[i]
dif_max = dif if dif_max < dif else dif_max
print(dif_max) | Traceback (most recent call last):
File "/tmp/tmp3l7q5xmq/tmp083kz27l.py", line 1, in <module>
v = str(inp).split()
^^^
NameError: name 'inp' is not defined. Did you mean: 'int'?
| |
s878043194 | p02258 | u311299757 | 1500104403 | Python | Python3 | py | Runtime Error | 0 | 0 | 84 | cnt = int(input())
v = []
for i in range(cnt):
v[i] = int(input())
print(v[1]) | Traceback (most recent call last):
File "/tmp/tmp2al233lb/tmpd3ttgojx.py", line 1, in <module>
cnt = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s049373183 | p02258 | u311299757 | 1500105970 | Python | Python3 | py | Runtime Error | 0 | 0 | 259 | v = input().split()
dif_max = -200000
for i in range(len(v)):
v[i] = int(v[i])
len = v[0]
for i in range(2, len + 1, 1):
for j in range(i + 1, len + 1, 1):
dif = v[j] - v[i]
dif_max = dif if dif_max < dif else dif_max
print(dif_max) | Traceback (most recent call last):
File "/tmp/tmpb5a6v4i_/tmphrp22dl7.py", line 1, in <module>
v = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s612620919 | p02258 | u387437217 | 1500429644 | Python | Python3 | py | Runtime Error | 0 | 0 | 255 | num=int(input())
r_1=int(input())
r_2=int(input())
max_profit=r_2 - r_1
min_value=min(r_1,r_2)
for i in range(n-2):
x=int(input())
t=x - min_value
if max_profit>t:
max_profit=t
if x<min_value:
min_value=x
print(max_profit) | Traceback (most recent call last):
File "/tmp/tmpnfs_87dt/tmp0g9vap1i.py", line 1, in <module>
num=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s426812639 | p02258 | u387437217 | 1500430017 | Python | Python3 | py | Runtime Error | 0 | 0 | 295 | num=int(input())
r_1=int(input())
r_2=int(input())
max_profit=r_2 - r_1
if r_1<r_2:
min_value=r_1
else:
min_value=r_2
for i in range(n-2):
x=int(input())
t=x - min_value
if max_profit<t:
max_profit=t
if x<min_value:
min_value=x
print(max_profit) | Traceback (most recent call last):
File "/tmp/tmpn0npa7zo/tmp6_9rg3j4.py", line 1, in <module>
num=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s665226319 | p02258 | u491916705 | 1502088197 | Python | Python | py | Runtime Error | 10 | 6456 | 231 | n = int(raw_input())
a = []
for i in range(n):
a.append(int(raw_input()))
max = a[1] - a[0]
min_num = a[0]
for i in a:
if a[i] - min_num > max:
max = a[i] - min_num
if min_num > i:
min_num = i
print max | File "/tmp/tmpj1xkt9dj/tmpo5dwpz53.py", line 13
print max
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s014214002 | p02258 | u071759777 | 1506095586 | Python | Python3 | py | Runtime Error | 0 | 0 | 166 | i = 0
n = int(input())
maxR = -10**9
minR = int(input())
while i < n:
R = int(input())
maxR = max(maxR, R-minR)
minR = min(minR, R)
i += 1
print(maxR) | Traceback (most recent call last):
File "/tmp/tmpon7dcief/tmp5kgu1gfg.py", line 2, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s890990246 | p02258 | u626266743 | 1508855709 | Python | Python3 | py | Runtime Error | 0 | 0 | 179 | n, a = map(int, input().split())
Max = -1000000
Min = a
for i in range(n):
x = input()
if (Max < (x-Min)):
Max = x-Min
if (x < Min):
Min = x
print(Max) | Traceback (most recent call last):
File "/tmp/tmp26a6usqg/tmp4wjz2u18.py", line 1, in <module>
n, a = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s528725040 | p02258 | u626266743 | 1508855725 | Python | Python3 | py | Runtime Error | 0 | 0 | 184 | n, a = map(int, input().split())
Max = -1000000
Min = a
for i in range(n):
x = int(input())
if (Max < (x-Min)):
Max = x-Min
if (x < Min):
Min = x
print(Max) | Traceback (most recent call last):
File "/tmp/tmpetnkljdw/tmp7vdcnh65.py", line 1, in <module>
n, a = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s640431586 | p02258 | u626266743 | 1508855918 | Python | Python3 | py | Runtime Error | 0 | 0 | 185 | n, a = map(int, input().split())
Max = -10000000
Min = a
for i in range(n):
x = int(input())
if (Max < (x-Min)):
Max = x-Min
if (x < Min):
Min = x
print(Max) | Traceback (most recent call last):
File "/tmp/tmpugbn9boe/tmpku3xtokg.py", line 1, in <module>
n, a = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.