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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s743671995 | p02413 | u313600138 | 1559543854 | Python | Python3 | py | Runtime Error | 20 | 5600 | 236 | r,c=map(int, input().split())
S=[]
for num in range(c-1):
A=list(map(int, input().split()))
S.append(A)
A.append(sum(A))
#print(list(zip(*S)))
C=[]
for t in (zip(*S)):
C.append(sum(t))
S.append(C)
for i in S:
print(*i)
| Traceback (most recent call last):
File "/tmp/tmp_o5xmhlw/tmpkfxm16bi.py", line 1, in <module>
r,c=map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s560264180 | p02413 | u313600138 | 1559543866 | Python | Python3 | py | Runtime Error | 20 | 5600 | 231 | r,c=map(int, input().split())
S=[]
for num in range(c-1):
A=list(map(int, input().split()))
S.append(A)
A.append(sum(A))
#print(list(zip(*S)))
C=[]
for t in (zip(*S)):
C.append(sum(t))
S.append(C)
for i in S:
print(*i)
| Traceback (most recent call last):
File "/tmp/tmp2zzdk8j6/tmp1pdmpe7i.py", line 1, in <module>
r,c=map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s836109875 | p02413 | u313600138 | 1559544917 | Python | Python3 | py | Runtime Error | 20 | 5596 | 230 | r,c=map(int, input().split())
S=[]
for num in range(c-1):
A=list(map(int, input().split()))
S.append(A)
A.append(sum(A))
#print(list(zip(*S)))
C=[]
for t in (zip(*S)):
C.append(sum(t))
S.append(C)
for i in S:
print(*i)
| Traceback (most recent call last):
File "/tmp/tmp3x8mud9a/tmpalczv2k1.py", line 1, in <module>
r,c=map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s086685993 | p02413 | u140201022 | 1410774394 | Python | Python | py | Runtime Error | 20 | 4220 | 246 | r,c=map(int,raw_input().split())
l=[]
for i in range(r):l.append(map(int,raw_input().split()))
l.append([0]*c)
for i in range(c):
for j in range(r):l[c-1][i]+=l[j][i]
l[i].append(sum(l[i]))
for i in range(r+1):print' '.join(map(str,l[i])) | File "/tmp/tmpt_0n2h5m/tmp8sviydue.py", line 8
for i in range(r+1):print' '.join(map(str,l[i]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s989972550 | p02413 | u442346200 | 1424660021 | Python | Python3 | py | Runtime Error | 0 | 0 | 448 | (r,c) [int(i) for i in input().split()]
table = []
for rc in range(r):
table.append([int(i) for i in input().split()])
table.append([0 for _ in range(c + 1)])
for rc in range(r):
row_total = 0
for cc in range(c):
table[r][cc] += table[rc][cc]
row_total += table[rc][cc]
table[rc].appe... | File "/tmp/tmps2z6_9oi/tmpwr4kgw76.py", line 1
(r,c) [int(i) for i in input().split()]
^^^
SyntaxError: invalid syntax
| |
s784353714 | p02413 | u527848444 | 1424660062 | Python | Python3 | py | Runtime Error | 0 | 0 | 450 | (r,c) = [int(i) for i in input().split()]
table = []
for rc in range(r):
table.append([int(i) for i in input().split()])
table.append([0 for in range(c + 1)])
for rc in range(r):
row_total = 0
for cc in range(c):
table[r][cc] += table[rc][cc]
row_total += table[rc][cc]
table[rc].a... | File "/tmp/tmpyrlsm60r/tmpqxhad9lr.py", line 7
table.append([0 for in range(c + 1)])
^^
SyntaxError: invalid syntax
| |
s147113518 | p02413 | u527848444 | 1424660281 | Python | Python3 | py | Runtime Error | 0 | 0 | 450 | (r,c) = [int(i) for i in input().split()]
table = []
for rc in range(r):
table.append([int(i) for i in input().split()])
table.append([0 for _ in range(c + 1)])
for rc in range(r):
row_total = 0
for cc in range(c):
table[r][cc] += table[rc][cc]
row_total += table[rc][cc]
table[rc].... | File "/tmp/tmpnz9ty1ma/tmpn3koz6fj.py", line 21
print()
IndentationError: unexpected indent
| |
s741454913 | p02413 | u442346200 | 1424660340 | Python | Python3 | py | Runtime Error | 0 | 0 | 434 | (r,c) [int(i) for i in input().split()]
table = []
for rc in range(r):
table.append([int(i) for i in input().split()])
table.append([0 for _ in range(c + 1)])
for rc in range(r):
row_total = 0
for cc in range(c):
table[r][cc] += table[rc][cc]
row_total += table[rc][cc]
table[rc].appe... | File "/tmp/tmpiuswrvwb/tmpv1kw80rt.py", line 1
(r,c) [int(i) for i in input().split()]
^^^
SyntaxError: invalid syntax
| |
s040866725 | p02413 | u669360983 | 1432984613 | Python | Python | py | Runtime Error | 0 | 0 | 230 | x,y=map(int,raw_input().split())
a=[map(int,raw_input().split()) for i in range(x)]
for i in range(x):
a[i].append(sum(a[i]))
for j in range(y+1):
print a[i][j],
print
for i in range(???+1):
print sum([row[i] for row in a]), | File "/tmp/tmpxdyuki1m/tmpyzuzz0mn.py", line 6
print a[i][j],
^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s101021301 | p02413 | u389610071 | 1437960466 | Python | Python3 | py | Runtime Error | 0 | 0 | 274 | while True:
(a, op, b) = input().split()
a =int(a)
b =int(b)
if op == '?':
break
elif op == '+':
print(a + b)
elif op == '-':
print(a - b)
elif op == '*':
print(a * b)
elif op == '/':
print(a // b) | Traceback (most recent call last):
File "/tmp/tmprtf4li5b/tmpx9galfn3.py", line 2, in <module>
(a, op, b) = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s306952691 | p02413 | u255164080 | 1439775138 | Python | Python3 | py | Runtime Error | 0 | 0 | 144 | (r, c) = [int(i) for i in input().split()]
src = []
for i in range(r):
src.append([int(i) for i in input().split()])
print(src) | File "/tmp/tmpc8i4uqgh/tmp9o7mb2pv.py", line 2
src = []
IndentationError: unexpected indent
| |
s591047636 | p02413 | u255164080 | 1439775974 | Python | Python3 | py | Runtime Error | 0 | 0 | 317 | (r, c) = [int(i) for i in input().split()]
src = []
for _ in range(r):
row = ([int(i) for i in input().split()])
row.append(sum(row))
src.append(row)
last_row = [0 for _ in range(c+1)]
for rc in range(r):
for cc in range(c):
last_row += src[rc][cc]
src.append(last_row)
for rc in range(r+1): | File "/tmp/tmpfb41aums/tmp4q0p8ii8.py", line 14
for rc in range(r+1):
IndentationError: expected an indented block after 'for' statement on line 14
| |
s194060112 | p02413 | u255164080 | 1439776051 | Python | Python3 | py | Runtime Error | 0 | 0 | 364 | (r, c) = [int(i) for i in input().split()]
src = []
for _ in range(r):
row = ([int(i) for i in input().split()])
row.append(sum(row))
src.append(row)
last_row = [0 for _ in range(c+1)]
for rc in range(r):
for cc in range(c):
last_row += src[rc][cc]
src.append(last_row)
for rc in range(r+1):
... | Traceback (most recent call last):
File "/tmp/tmp0nv1la9y/tmp8lihc0ym.py", line 1, in <module>
(r, c) = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s977373358 | p02413 | u446066125 | 1439776252 | Python | Python3 | py | Runtime Error | 0 | 0 | 369 | (r, c) = [int(i) for i in input().split()]
src = []
for _ in range(r) :
row[int(i) for i in input().split()]
row.append(sum(row))
src.append(row)
last_row = [0 for _ in range(c+1)]
for rc in range(r):
for cc in range(c+1):
last_row[cc] += src[rc][cc]
src.append(last_row)
for rc in range(r+1)... | File "/tmp/tmpujnmej8g/tmpq5s2qjme.py", line 6
row[int(i) for i in input().split()]
^^^
SyntaxError: invalid syntax
| |
s723432559 | p02413 | u446066125 | 1439776293 | Python | Python3 | py | Runtime Error | 0 | 0 | 369 | (r, c) = [int(i) for i in input().split()]
src = []
for _ in range(r) :
row[int(i) for i in input().split()]
row.append(sum(row))
src.append(row)
last_row = [0 for _ in range(c+1)]
for rc in range(r):
for cc in range(c+1):
last_row[cc] += src[rc][cc]
src.append(last_row)
for rc in range(r+1)... | File "/tmp/tmpmwphh4yb/tmp75_p9ain.py", line 6
row[int(i) for i in input().split()]
^^^
SyntaxError: invalid syntax
| |
s119970766 | p02413 | u446066125 | 1439776401 | Python | Python3 | py | Runtime Error | 0 | 0 | 369 | (r, c) = [int(i) for i in input().split()]
src = []
for _ in range(r) :
row[int(i) for i in input().split()]
row.append(sum(row))
src.append(row)
last_row = [0 for _ in range(c+1)]
for rc in range(r):
for cc in range(c+1):
last_row[cc] += src[rc][cc]
src.append(last_row)
for rc in range(r+1)... | File "/tmp/tmpdgv8hexs/tmpi137b28n.py", line 6
row[int(i) for i in input().split()]
^^^
SyntaxError: invalid syntax
| |
s145842036 | p02413 | u446066125 | 1439776431 | Python | Python3 | py | Runtime Error | 0 | 0 | 369 | (r, c) = [int(i) for i in input().split()]
src = []
for _ in range(r) :
row[int(i) for i in input().split()]
row.append(sum(row))
src.append(row)
last_row = [0 for _ in range(c+1)]
for rc in range(r):
for cc in range(c+1):
last_row[cc] += src[rc][cc]
src.append(last_row)
for rc in range(r+1)... | File "/tmp/tmpgiqbvury/tmpfsd0hskk.py", line 6
row[int(i) for i in input().split()]
^^^
SyntaxError: invalid syntax
| |
s277539970 | p02413 | u978086225 | 1439776652 | Python | Python3 | py | Runtime Error | 0 | 0 | 370 | (r, c) = [int(i) for i in input().split()]
src = []
for _ in range(r):
row = [int(i) for i in input().split()]
row.append(sum(row))
src.append(row)
last_row = [0 for _ in range(c)]
for rc in range(r):
for cc in range(c):
last_row[cc] += src[rc][cc]
src = append(last_row)
for _ in range(r+... | Traceback (most recent call last):
File "/tmp/tmpe20yuqmj/tmp7mg8t6aj.py", line 1, in <module>
(r, c) = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s733679285 | p02413 | u473077745 | 1440650916 | Python | Python3 | py | Runtime Error | 0 | 0 | 328 | (r, c) = [int(i) for i in input().split()]
last_row = [0 for _ in range(c+1)]
for _ in range(r):
row = [int(i) for i in input().split()]
for cc in range(c):
last_row[cc] += int(row[cc])
print(row[cc], end=' ')
print(sum(row))
last_row[-1] = sum(last_row)
print(' '.join([str(a) for a in la... | File "/tmp/tmphham7xuv/tmp7p2dholh.py", line 13
print(' '.join([str(a) for a in last_row])
^
SyntaxError: '(' was never closed
| |
s401088486 | p02413 | u797673668 | 1455922038 | Python | Python3 | py | Runtime Error | 0 | 0 | 222 | r, c = map(int, input().split())
table = [[*cc, sum(cc)] for cc in (list(map(int, input().split())) for _ in range(r))]
table.append(list(map(sum, zip(*table))))
print('\n'.join(' '.join(map(str, line)) for line in table)) | Traceback (most recent call last):
File "/tmp/tmp0yvu0tyd/tmp682_smm2.py", line 1, in <module>
r, c = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s529273677 | p02413 | u797673668 | 1455922078 | Python | Python3 | py | Runtime Error | 0 | 0 | 229 | r, c = map(int, input().split())
table = [[*cc, sum(cc)] for cc in (list(map(int, input().split())) for _ in range(r))]
table.append(list(map(sum, zip(*table))))
print('\n'.join(' '.join(map(str, line)) for line in table) + '\n') | Traceback (most recent call last):
File "/tmp/tmpdfofmae9/tmpyxo0kymp.py", line 1, in <module>
r, c = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s977261887 | p02413 | u797673668 | 1455922133 | Python | Python3 | py | Runtime Error | 0 | 0 | 197 | r, c = map(int, input().split())
table = [[*cc, sum(cc)] for cc in (list(map(int, input().split())) for _ in range(r))]
table.append(list(map(sum, zip(*table))))
for line in table:
print(*line) | Traceback (most recent call last):
File "/tmp/tmpevs6i6qd/tmpna9uusxs.py", line 1, in <module>
r, c = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s904134818 | p02413 | u148101999 | 1456735227 | Python | Python | py | Runtime Error | 0 | 0 | 481 | mat = []
new_map = []
r,c = map(int, raw_input().split())
for i in range(r):
mat = map(int, raw_input().split())
new_map.append(mat)
for i in range(r):
new_map[i].append(sum(new_map[i][:]))
for j in range(c):
print new_map[i][j],
printf(" " + str(new_map[i][j + 1]) + "\n")
for j in rang... | File "/tmp/tmp_un5sdx_/tmpypic3akr.py", line 13
print new_map[i][j],
^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s113248615 | p02413 | u148101999 | 1456735267 | Python | Python | py | Runtime Error | 0 | 0 | 597 | #-*- encoding=utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
import sys
printf = sys.stdout.write
mat = []
new_map = []
r,c = map(int, raw_input().split())
for i in range(r):
mat = map(int, raw_input().split())
new_map.append(mat)
for i in range(r):
new_map[i].append(sum(new_map[i][:]))... | File "/tmp/tmpks99e1hj/tmpxnu4enjo.py", line 22
print new_map[i][j],
^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s497917402 | p02413 | u100813820 | 1463624841 | Python | Python3 | py | Runtime Error | 0 | 0 | 1443 | # 13-Structured_Program_II-Spreadsheet.py
# ??¨?¨????
# ??¨?¨??????????????°???????????????°???????????????????????????
# ??¨????????°r??¨?????°c???r ?? c ???????´????????????¨?????????????????§???
# ????????¨??????????¨?????????\????????°????????¨???????????????????????°?????????????????????????????????
# Input
# ??... | Traceback (most recent call last):
File "/tmp/tmph2azbocs/tmpy1960r1d.py", line 34, in <module>
r,c = map( int,input().split() )
^^^^^^^
EOFError: EOF when reading a line
| |
s145859879 | p02413 | u100813820 | 1463624860 | Python | Python3 | py | Runtime Error | 0 | 0 | 1457 | # 13-Structured_Program_II-Spreadsheet.py
# ??¨?¨????
# ??¨?¨??????????????°???????????????°???????????????????????????
# ??¨????????°r??¨?????°c???r ?? c ???????´????????????¨?????????????????§???
# ????????¨??????????¨?????????\????????°????????¨???????????????????????°?????????????????????????????????
# Input
# ??... | Traceback (most recent call last):
File "/tmp/tmpzrexi_yj/tmpbfukxgpd.py", line 34, in <module>
r,c = map( int,input().split() )
^^^^^^^
EOFError: EOF when reading a line
| |
s426915856 | p02413 | u100813820 | 1463624873 | Python | Python3 | py | Runtime Error | 0 | 0 | 1469 | # 13-Structured_Program_II-Spreadsheet.py
# ??¨?¨????
# ??¨?¨??????????????°???????????????°???????????????????????????
# ??¨????????°r??¨?????°c???r ?? c ???????´????????????¨?????????????????§???
# ????????¨??????????¨?????????\????????°????????¨???????????????????????°?????????????????????????????????
# Input
# ??... | ||
s778812072 | p02413 | u196669489 | 1464770215 | Python | Python | py | Runtime Error | 0 | 0 | 281 | r,c=map(int,raw_input().split())
m=[]
ans=[]
for i in range(r):
a=map(int,raw_input().split())
m.append(a)
sum=0
for j in range(c)
print(a[j]),
sum+=a[j]
print(sum)
total=0
for i in range(c):
sum=0
for j in range(r):
sum+=m[j][i]
print(sum),
total+=sum
print(total) | File "/tmp/tmp2ca7hxz1/tmpbqdxetwb.py", line 9
for j in range(c)
^
SyntaxError: expected ':'
| |
s442734939 | p02413 | u756468156 | 1467109528 | Python | Python3 | py | Runtime Error | 0 | 0 | 327 | c, r = map(int, input().split())
last_list = [0] * r
for _ in range(c):
n = 0
x = input()
sum_list = list(map(int, x.split()))
for i in range(r):
last_list[i] += sum_list[i]
n += sum_list[i]
print(x, end = " ")
print(n)
sum = 0
for a in last_list:
sum += a
print(*last_lis... | Traceback (most recent call last):
File "/tmp/tmp1td6otwm/tmp0rw2nh8o.py", line 1, in <module>
c, r = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s305140466 | p02413 | u756468156 | 1467109660 | Python | Python3 | py | Runtime Error | 0 | 0 | 327 | c, r = map(int, input().split())
last_list = [0] * r
for _ in range(c):
n = 0
x = input()
sum_list = list(map(int, x.split()))
for i in range(r):
last_list[i] += sum_list[i]
n += sum_list[i]
print(x, end = " ")
print(n)
sum = 0
for a in last_list:
sum += a
print(*last_lis... | Traceback (most recent call last):
File "/tmp/tmpleclxgqv/tmpv01hytpx.py", line 1, in <module>
c, r = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s962602938 | p02413 | u756468156 | 1467111069 | Python | Python3 | py | Runtime Error | 0 | 0 | 314 | c, r = map(int, input().split())
last_list = [0] * r
for _ in range(c):
n = 0
x = input()
sum_list = list(map(int, x.split()))
for i in range(r):
last_list[i] += sum_list[i]
n += sum_list[i]
print(x+" "+str(n))
sum = 0
for a in last_list:
sum += a
print(*last_list, sum) | Traceback (most recent call last):
File "/tmp/tmpqxhjsz9l/tmp9jdo776u.py", line 1, in <module>
c, r = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s312253160 | p02413 | u756468156 | 1467112978 | Python | Python3 | py | Runtime Error | 0 | 0 | 305 | c, r = map(int, input().split())
last_list = [0] * r
for _ in range(c):
n = 0
x = input()
sum_list = list(map(int, x.split()))
for i in range(r):
last_list[i] += sum_list[i]
n += sum_list[i]
print(x, n)
sum = 0
for a in last_list:
sum += a
print(*last_list, sum) | Traceback (most recent call last):
File "/tmp/tmptniacd1k/tmphwhzanq_.py", line 1, in <module>
c, r = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s846989920 | p02413 | u340901659 | 1468217134 | Python | Python3 | py | Runtime Error | 30 | 7564 | 302 | r,c = map(int,input().split())
mat = [[i for i in map(int,input().split())] for _ in range(4)]
c_sum = [0 for _ in range(c+1)]
for i in mat :
i.append(sum(i))
for j in range(len(i)) :
c_sum[j] += i[j]
mat.append(c_sum)
for i in mat :
print(" ".join(list(map(str,i))))
| Traceback (most recent call last):
File "/tmp/tmphlnrw9k9/tmpzsh764z9.py", line 1, in <module>
r,c = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s942626422 | p02413 | u514745787 | 1470121226 | Python | Python3 | py | Runtime Error | 0 | 0 | 301 | while True:
n, x = [int(i) for i in input().split()]
if n == x == 0:
break
count = 0
for s in range(1, n - 1):
for m in range(s + 1, n):
for e in range(m + 1, n + 1):
if x == sum([s, m, e]):
count += 1
print(count) | Traceback (most recent call last):
File "/tmp/tmp_6hw0i3s/tmpv0eoxt78.py", line 2, in <module>
n, x = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s699419905 | p02413 | u514745787 | 1470121294 | Python | Python3 | py | Runtime Error | 0 | 0 | 301 | while True:
n, x = [int(i) for i in input().split()]
if n == x == 0:
break
count = 0
for s in range(1, n - 1):
for m in range(s + 1, n):
for e in range(m + 1, n + 1):
if x == sum([s, m, e]):
count += 1
print(count) | Traceback (most recent call last):
File "/tmp/tmpenpdlb96/tmpqulfeggg.py", line 2, in <module>
n, x = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s552065464 | p02413 | u435917115 | 1470199097 | Python | Python3 | py | Runtime Error | 0 | 0 | 202 | r, c = [int(i) for i in input().split()]
data = []
for ri in range(r):
data[ri].append([int(i) for i in input().split()])
data[ri].append(sum(data[ri]))
from pprint import pprint
pprint(data) | Traceback (most recent call last):
File "/tmp/tmp_v_b08bw/tmpb2v34a88.py", line 1, in <module>
r, c = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s293813710 | p02413 | u085472528 | 1470199487 | Python | Python3 | py | Runtime Error | 0 | 0 | 303 | sum_row = [0] * (c + 1)
for ri in range(r):
data.append([int(i) for i in input().sprit()])
data[ri].append(sum(data[ri]))
print(" ".join([str(d) for d in data[ri]]))
for ci in range(c + 1):
sum_row[ci] += data[ri][ci]
print(" ".join([str(s) for s in sum_row]))
| Traceback (most recent call last):
File "/tmp/tmp1k3pc2_i/tmpcc8y_mhp.py", line 1, in <module>
sum_row = [0] * (c + 1)
^
NameError: name 'c' is not defined
| |
s332823874 | p02413 | u435917115 | 1470199488 | Python | Python3 | py | Runtime Error | 0 | 0 | 359 | r, c = [int(i) for i in input().split()]
data = []
sum_row = [0] * (c + 1)
for ri in range(r):
data[ri].append([int(i) for i in input().split()])
data[ri].append(sum(data[ri]))
print(" ".join([str(d) for d in data[ri]]))
for ci in range(c + 1):
sum_row[ci] += data[ri][ci]
from pprint imp... | Traceback (most recent call last):
File "/tmp/tmpbrl2ues2/tmpqaftep37.py", line 1, in <module>
r, c = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s036809752 | p02413 | u498041957 | 1470199497 | Python | Python3 | py | Runtime Error | 0 | 0 | 394 | r, c = [int(i) for i in input().split()]
data = []
sum_row = [0] * (c + 1)
for ri in range(r):
data.append([int(i) for i in input.split()])
data[ri].append(sum(data[ri]))
print(" ",join(data[str(d) for d in data[ri]]))
for ci in renge(c + 1):
sum_row[ci] += data[ri][ci]
print(" ".join([str(s)... | File "/tmp/tmp4xhf6zxd/tmpv8_m8muk.py", line 9
print(" ",join(data[str(d) for d in data[ri]]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s436439640 | p02413 | u204883389 | 1470199514 | Python | Python3 | py | Runtime Error | 0 | 0 | 392 | r, c = [int(i) for i in input().split]
data = []
sum_row = [0] * (c + 1)
for ri in range(r):
data.append([int(i) for i in input().split()])
data[ri].append(sum(data[ri]))
print(" ".join([str(d) for d in data[ri]]))
for ci in range(c * 1):
sum_row[ci] += data[ri][ci]
print(" ".join([str(s) for... | Traceback (most recent call last):
File "/tmp/tmpxkysrf91/tmpfa633h98.py", line 1, in <module>
r, c = [int(i) for i in input().split]
^^^^^^^
EOFError: EOF when reading a line
| |
s085127271 | p02413 | u644636020 | 1470199517 | Python | Python3 | py | Runtime Error | 0 | 0 | 320 | r, c = [int(i) for i in input().split()]
data = []
sum_row = [0] * (c + 1)
for ri in range(r):
data.append([int(i) for i in input().split()])
data[ri].append(sum(data[ri]))
print(" ".join(data[ri]))
for ci in range(c + 1):
sum_row[ci] += data[ri][ci]
print(" ".join([str(s) for s in sum_row])) | Traceback (most recent call last):
File "/tmp/tmpelzwxlge/tmpcmt30fb8.py", line 1, in <module>
r, c = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s254174693 | p02413 | u085472528 | 1470199536 | Python | Python3 | py | Runtime Error | 0 | 0 | 355 | r, c = [int(i) for i in input().split()]
data = []
sum_row = [0] * (c + 1)
for ri in range(r):
data.append([int(i) for i in input().sprit()])
data[ri].append(sum(data[ri]))
print(" ".join([str(d) for d in data[ri]]))
for ci in range(c + 1):
sum_row[ci] += data[ri][ci]
print(" ".join([... | Traceback (most recent call last):
File "/tmp/tmp7e85mk2r/tmpq7611vcd.py", line 1, in <module>
r, c = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s492752271 | p02413 | u671553883 | 1470199605 | Python | Python3 | py | Runtime Error | 0 | 0 | 341 | r, c = [int(i) for i in input().split()]
data = []
sum_row = [0] * (c + 1)
for ri in range(r):
data[ri].append([int(i) for i in input().split()])
data[ri].append(sum(data[ri]))
print(" ".join([str(d) for d in data[ri]]))
for ci in range(c + 1):
sum_row[ci] += data[ri][ci]
print(" ".join([str(s... | Traceback (most recent call last):
File "/tmp/tmpft71jxu5/tmpa32mx7o5.py", line 1, in <module>
r, c = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s276417629 | p02413 | u661284763 | 1470199625 | Python | Python3 | py | Runtime Error | 0 | 0 | 338 | r, c = [int(i) for i in input().split()]
data = []
sum_row = [0] * (c + 1)
for ri in range(r):
data.append([int(i) for i in input().split()])
data[ri].append(sum(data[ri]))
print(" ".join([str(d) for d in data[ri]]))
for ci in range(c + 1):
sum_row[ci] += data[ri][ci]
print(" ".join([str(s) f... | Traceback (most recent call last):
File "/tmp/tmpuiu6i067/tmp4od1ksxi.py", line 1, in <module>
r, c = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s685054588 | p02413 | u264632995 | 1470199679 | Python | Python3 | py | Runtime Error | 0 | 0 | 371 | r, c = [int(i) for i in input().split()]
data = []
sum_row =[0] * (c + 1)
for ri in range(r):
data[ri].append([int(i) for i in input().split()])
data[ri].append(sum(data[ri]))
print(" ".join([str(d) for d in data[ri]]))
for ci in range(c + 1):
sum_row[ci] += data[ri] [ci]
print(" ".join)
fro... | Traceback (most recent call last):
File "/tmp/tmpvtl38jym/tmpo7mkh20p.py", line 1, in <module>
r, c = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s761644701 | p02413 | u085472528 | 1470199717 | Python | Python3 | py | Runtime Error | 0 | 0 | 355 | r, c = [int(i) for i in input().split()]
data = []
sum_row = [0] * (c + 1)
for ri in range(r):
data.append([int(i) for i in input().sprit()])
data[ri].append(sum(data[ri]))
print(" ".join([str(d) for d in data[ri]]))
for ci in range(c + 1):
sum_row[ci] += data[ri][ci]
print(" ".join([... | Traceback (most recent call last):
File "/tmp/tmp6_q9z6yc/tmpzdw0mg6a.py", line 1, in <module>
r, c = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s538187918 | p02413 | u671553883 | 1470199722 | Python | Python3 | py | Runtime Error | 0 | 0 | 342 | r, c = [int(i) for i in input().split()]
data = []
sum_row = [0] * (c + 1)
for ri in range(r):
data[ri].append([int(i) for i in input().split()])
data[ri].append(sum(data[ri]))
print(" ".join([str(d) for d in data[ri]]))
for ci in range(c + 1):
sum_row[ci] += data[ri] [ci]
print(" ".join([str(... | Traceback (most recent call last):
File "/tmp/tmpn03q7d4n/tmpaxakxy0x.py", line 1, in <module>
r, c = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s633192202 | p02413 | u671553883 | 1470199777 | Python | Python3 | py | Runtime Error | 0 | 0 | 398 | r, c = [int(i) for i in input().split()]
data = []
sum_row = [0] * (c + 1)
for ri in range(r):
data[ri].append([int(i) for i in input().split()])
data[ri].append(sum(data[ri]))
print(" ".join([str(d) for d in data[ri]]))
for ci in range(c + 1):
sum_row[ci] += data[ri] [ci]
print(" ".join([str(... | Traceback (most recent call last):
File "/tmp/tmp_gaf_qt_/tmpwyu4981a.py", line 1, in <module>
r, c = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s493668499 | p02413 | u498041957 | 1470199794 | Python | Python3 | py | Runtime Error | 0 | 0 | 339 | r, c = [int(i) for i in input().split()]
data = []
sum_row = [0] * (c + 1)
for ri in range(r):
data.append([int(i) for i in input.split()])
data[ri].append(sum(data[ri]))
print(" ",join(data[str(d) for d in data[ri]]))
for ci in renge(c + 1):
sum_row[ci] += data[ri][ci]
print(" ".join([str(s)... | File "/tmp/tmposre4ri6/tmpbxe03fo_.py", line 9
print(" ",join(data[str(d) for d in data[ri]]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s598501190 | p02413 | u747009765 | 1470199841 | Python | Python3 | py | Runtime Error | 0 | 0 | 339 | r, c = [int(i) for i in input().split()]
data = []
sum_row = [0] * (c + 1)
for ri in range(r):
data.append([int(i) for i in input().split()])
data[ri].append(sum(data[ri]))
print(" ".join([str(d) for d in data[ri]]))
for ci in range(c + 1):
sum_row[ci] += data[ri][ci]
print(" ".join([str(s) ... | File "/tmp/tmpb1juq745/tmpi4n8_mnz.py", line 1
r, c = [int(i) for i in input().split()]
IndentationError: unexpected indent
| |
s096977772 | p02413 | u051469504 | 1470199863 | Python | Python3 | py | Runtime Error | 0 | 0 | 345 | r, c = [int(i) for i in input().splist()]
data = []
sum_row = [0] * (c + 1)
for ri range(r)i
data.append([int(i) for i in input().splist()])
data[ri].append(sum(data[ri]))
print(" ".join([str(d) for d in data[ri]]))
for ci in range(c + 1):
sum_row[ci] += data[ri][ci]
print(" ".join([s... | File "/tmp/tmpdrwnbpji/tmpw8y8eqin.py", line 6
for ri range(r)i
^^^^^
SyntaxError: invalid syntax
| |
s481608471 | p02413 | u671553883 | 1470199885 | Python | Python3 | py | Runtime Error | 0 | 0 | 341 | r, c = [int(i) for i in input().split()]
data = []
sum_row = [0] * (c + 1)
for ri in range(r):
data[ri].append([int(i) for i in input().split()])
data[ri].append(sum(data[ri]))
print(" ".join([str(d) for d in data[ri]]))
for ci in range(c + 1):
sum_row[ci] += data[ri][ci]
print(" ".join([str(s... | Traceback (most recent call last):
File "/tmp/tmp_5o3eith/tmpnhzpkl2m.py", line 1, in <module>
r, c = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s363893355 | p02413 | u747009765 | 1470199982 | Python | Python3 | py | Runtime Error | 0 | 0 | 339 | r, c = [int(i) for i in input().split()]
data = []
sum_row = [0] * (c + 1)
for ri in range(r):
data.append([int(i) for i in input().split()])
data[ri].append(sum(data[ri]))
print(" ".join([str(d) for d in data[ri]]))
for ci in range(c + 1):
sum_row[ci] += data[ri][ci]
print(" ".join([str(s) ... | File "/tmp/tmpvtbtz8bp/tmpob08x9xy.py", line 1
r, c = [int(i) for i in input().split()]
IndentationError: unexpected indent
| |
s241349705 | p02413 | u600195957 | 1470200099 | Python | Python3 | py | Runtime Error | 0 | 0 | 335 | r, c = [int(i) for i in input().split()]
data = []
sum_row = [0] * (c + 1)
for ri in range(r):
data.append([int(i) for i in input().split()])
data[ri].append(sum(data[ri]))
print(" ".join(str[d] for d in data[ri]))
for ci in range(c + 1):
sum_row[ci] += data[ri][ci]
print(" ".join([str(s) for ... | Traceback (most recent call last):
File "/tmp/tmp9s_0n9rw/tmporfjm982.py", line 1, in <module>
r, c = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s174809132 | p02413 | u514745787 | 1470204834 | Python | Python3 | py | Runtime Error | 0 | 0 | 331 | r, c = [int(i) for i in input().split()]
data = []
sum_row = [0] * (c + 1)
for ri in range(r):
data.append([int(i) for i in input().split()])
data[ri].append(sum(data[ri]))
print("".join(data[ri]))
for ci in range(c + 1):
sum_row[ci] += data[ri][ci]
from pprint import pprint
pprint(data)
ppri... | File "/tmp/tmpdp6_cl8o/tmp3cb0p8xt.py", line 10
for ci in range(c + 1):
^
IndentationError: unindent does not match any outer indentation level
| |
s694470323 | p02413 | u677859833 | 1472746262 | Python | Python3 | py | Runtime Error | 30 | 7512 | 379 | RC = input().split()
r = int(RC[0])
c = int(RC[1])
A_c_sum = [0, 0, 0, 0, 0]
final_sum = 0
for i in range(r):
A_r = input().split()
A_r_sum = 0
for j in range(c):
A_c_sum[j] += int(A_r[j])
print(A_r[j]+" ", end="")
A_r_sum += int(A_r[j])
print(A_r_sum)
final_sum += A_r_sum
pr... | Traceback (most recent call last):
File "/tmp/tmpvub38bjq/tmphw6vpu75.py", line 1, in <module>
RC = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s104507826 | p02413 | u801346721 | 1476841459 | Python | Python3 | py | Runtime Error | 0 | 0 | 395 | r, c = map(int, input().split())
mat = []
for i in range(r):
mat.append(list(map(int, input().split())))
for x in range(r):
rsum = 0
for y in range(c):
rsum += mat[x][y]
mat[x].append(rsum)
for x in range(c):
csum = 0
for y in range(r):
csum = mat[y][x]
mat[r].append(csum)
for x in range(r+1):
for y in r... | Traceback (most recent call last):
File "/tmp/tmpkz3h4jg0/tmpvb1qoudu.py", line 1, in <module>
r, c = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s782147499 | p02413 | u801346721 | 1476841921 | Python | Python3 | py | Runtime Error | 0 | 0 | 409 | r, c = map(int, input().split())
mat = []
for i in range(r):
mat.append(list(map(int, input().split())))
mat.append([])
for x in range(r):
rsum = 0
for y in range(c):
rsum += mat[x][y]
mat[x].append(rsum)
for x in range(c):
csum = 0
for y in range(r):
csum += mat[y][x]
mat[c].append(csum)
for x in range(r... | Traceback (most recent call last):
File "/tmp/tmpsmxnu1ks/tmp51vnndpo.py", line 1, in <module>
r, c = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s350438369 | p02413 | u801346721 | 1476842026 | Python | Python3 | py | Runtime Error | 0 | 0 | 490 | r, c = map(int, input().split())
mat = []
for i in range(r):
mat.append(list(map(int, input().split())))
mat.append([])
for x in range(r):
rsum = 0
for y in range(c):
rsum += mat[x][y]
mat[x].append(rsum)
for x in range(c):
csum = 0
for y in range(r):
csum += mat[y][x]
mat[c].append(csum)
for x in range(r... | File "/tmp/tmpubpqfco1/tmpctnmtl93.py", line 26
print(mat[r][c-1]
^
SyntaxError: '(' was never closed
| |
s892119843 | p02413 | u801346721 | 1476842039 | Python | Python3 | py | Runtime Error | 0 | 0 | 490 | r, c = map(int, input().split())
mat = []
for i in range(r):
mat.append(list(map(int, input().split())))
mat.append([])
for x in range(r):
rsum = 0
for y in range(c):
rsum += mat[x][y]
mat[x].append(rsum)
for x in range(c):
csum = 0
for y in range(r):
csum += mat[y][x]
mat[c].append(csum)
for x in range(r... | File "/tmp/tmp2me6_9sz/tmpkrf3ig_g.py", line 26
print(mat[r][c-1]
^
SyntaxError: '(' was never closed
| |
s967827718 | p02413 | u801346721 | 1476966150 | Python | Python3 | py | Runtime Error | 0 | 0 | 510 | r, c = map(int, input().split())
mat =[]
for x in range(r):
for y in range(c):
mat.append(list(map(int, input().split())))
for x in range(r):
rsum = 0
for y in range(c):
rsum += mat[x][y]
mat[x].append(rsum)
mat.append([])
for x in range(c):
csum = 0
for y in range(r):
csum += mat[y][x]
mat[r].append(c... | Traceback (most recent call last):
File "/tmp/tmpyhrgahd9/tmpjy1v802j.py", line 1, in <module>
r, c = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s000828825 | p02413 | u831244171 | 1477554978 | Python | Python | py | Runtime Error | 0 | 0 | 537 | r,x = map(int,raw_input().split())
matrix = []
for i in range(r):
matrix.append(map(int,raw_input().split()))
a = [0 for j in range(c)]
matrix.append(a)
for i in range(r):
sum = 0
for j in range(c):
sum += matrix[i][j]
matrix[i].append(sum)
for j in range(c):
sum = 0
for i in range(r... | File "/tmp/tmpemwpkcbe/tmponezbjgt.py", line 29
print matrix[i][j],
^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s552417556 | p02413 | u831244171 | 1477555041 | Python | Python | py | Runtime Error | 0 | 0 | 537 | r,x = map(int,raw_input().split())
matrix = []
for i in range(r):
matrix.append(map(int,raw_input().split()))
a = [0 for j in range(c)]
matrix.append(a)
for i in range(r):
sum = 0
for j in range(c):
sum += matrix[i][j]
matrix[i].append(sum)
for j in range(c):
sum = 0
for i in range(r... | File "/tmp/tmp0cymiyqq/tmpia8obw_d.py", line 29
print matrix[i][j],
^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s768273615 | p02413 | u175111751 | 1477693030 | Python | Python3 | py | Runtime Error | 0 | 0 | 214 | r, c = map(int, input().split())
a = [0]*(c+1)
for _ in range(r):
v = list(map(int, input().split()))
s = 0
for i, e in enumerate(v):
s+=e
a[i]+=e
print(*v, s)
a[-1]+=s
print(*a) | Traceback (most recent call last):
File "/tmp/tmpb1b996yb/tmpzmin3fxo.py", line 1, in <module>
r, c = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s042788513 | p02413 | u435300817 | 1480764028 | Python | Python3 | py | Runtime Error | 20 | 7748 | 742 | def Input():
matrix = []
row, col = [int(x) for x in input().split()]
i = row
while i > 0:
matrix.append([int(y) for y in input().split()])
i -= 1
return matrix
def calcTotalOfRowAndCol(matrix):
for l in matrix:
total = 0
for val in l:
total += val
... | Traceback (most recent call last):
File "/tmp/tmp74stu84v/tmpqfu4eb4c.py", line 32, in <module>
matrix = Input()
^^^^^^^
File "/tmp/tmp74stu84v/tmpqfu4eb4c.py", line 3, in Input
row, col = [int(x) for x in input().split()]
^^^^^^^
EOFError: EOF when reading a lin... | |
s872044445 | p02413 | u435300817 | 1480764389 | Python | Python3 | py | Runtime Error | 20 | 7680 | 746 | def Input():
matrix = []
row, col = [int(x) for x in input().split()]
i = row
while i > 0:
matrix.append([int(y) for y in input().split()])
i -= 1
return matrix
def calcTotalOfRowAndCol(matrix):
for l in matrix:
total = 0
for val in l:
total += val
... | Traceback (most recent call last):
File "/tmp/tmp34lucmro/tmp7e8ewtbl.py", line 32, in <module>
matrix1 = Input()
^^^^^^^
File "/tmp/tmp34lucmro/tmp7e8ewtbl.py", line 3, in Input
row, col = [int(x) for x in input().split()]
^^^^^^^
EOFError: EOF when reading a l... | |
s414489948 | p02413 | u494314211 | 1481441278 | Python | Python3 | py | Runtime Error | 0 | 0 | 242 | r,c=list(map(int,input().split()))
l=[]
for i in range(r):
a=list(map(int,input().split()))
l.append(a.append(sum(a)))
b=[]
for i in range(c+1):
c=0
for j in range(r):
c+=l[j][i]
b.append(c)
l.append(b)
for i in l:
print(" ".join(i)) | Traceback (most recent call last):
File "/tmp/tmp9uqdkkud/tmpz98wyo46.py", line 1, in <module>
r,c=list(map(int,input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s330060270 | p02413 | u957840591 | 1481949192 | Python | Python | py | Runtime Error | 0 | 0 | 248 | r,c=map(int,raw_input().split())
A=[]
for i in range(r):
A.append(map(int,raw_input().split()))
A[i].append(sum(A[i]))
A.append([sum([A[i][j] for i in range(r)]) for j in range(c)])
print(A)
for i in range(r):
print(' '.join(A[i]))
| Traceback (most recent call last):
File "/tmp/tmp6hf_yx8u/tmp_ei82ug7.py", line 1, in <module>
r,c=map(int,raw_input().split())
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s050960252 | p02413 | u865138391 | 1482594923 | Python | Python3 | py | Runtime Error | 0 | 0 | 201 | r, c = map(int, input().split())
mat = [list(map(int, input().split())) for i in range(r)]
for row in mat:
print(*row, sum(row))
colSum = [sum(col) for col in zip(*mat)]
print(*colSum, sum(colSum)) | Traceback (most recent call last):
File "/tmp/tmpymqdbhfy/tmpe1hdrfvz.py", line 1, in <module>
r, c = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s756788107 | p02413 | u547492399 | 1483623625 | Python | Python3 | py | Runtime Error | 0 | 0 | 224 | r, c = input().split()
r = int(r)
c = int(c)
a = [0]*c
for i in range(r):
a[i] = list(map(int, input().split()))
a[i].append(sum(a[i]))
print(*a[i])
b = list(zip(*a))
print(*[sum(b[i]) for i in range(len(b))]) | Traceback (most recent call last):
File "/tmp/tmp_fddta6c/tmpal5kx9c7.py", line 1, in <module>
r, c = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s265453485 | p02413 | u918276501 | 1484302678 | Python | Python3 | py | Runtime Error | 0 | 0 | 318 | r, c = map(int, input().strip().split())
l = [[] for i in range(r)].append([0 for j in range(c+1)])
for i in range(r):
l[i] = list(map(int, input().strip().split()))
l[i].append(sum(l[i][0:c]))
l[r] = [l[r][j] + l[i][j] for j in range(c+1)]
print(' '.join(map(str,l[i])))
print(' '.join(map(str,l[r]))) | Traceback (most recent call last):
File "/tmp/tmpqi3xcbe4/tmps0d4_ful.py", line 1, in <module>
r, c = map(int, input().strip().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s447434111 | p02413 | u711765449 | 1484662522 | Python | Python3 | py | Runtime Error | 20 | 7704 | 501 | r,c = map(int,input().split(' '))
arr = [[0 for i in range(c+1)] for i in range(r+1)]
for i in range(r):
row = list(map(int,input().split(' ')))
for j in range(c):
arr[i][j] = row[j]
for i in range(r):
for j in range(c):
arr[i][-1] += arr[i][j]
for i in range(c):
for j in range(r):
... | Traceback (most recent call last):
File "/tmp/tmp3rytltsm/tmpx30evhzu.py", line 1, in <module>
r,c = map(int,input().split(' '))
^^^^^^^
EOFError: EOF when reading a line
| |
s598149380 | p02413 | u024715419 | 1488271179 | Python | Python3 | py | Runtime Error | 0 | 0 | 345 | r,c = map(int,input().split())
a = [[0 for i in range(c+1)] for j in range(r+1)]
for i in range(r):
a_tmp = list(map(int,input().split()))
for j in range(c):
a[i][j] = a_tmp[j]
a[i][c+1] += a_tmp[j]
a[r+1][j] += a_tmp[j]
a[r+1][c+1] += a_tmp[j]
for i in range(r+1):
print('... | Traceback (most recent call last):
File "/tmp/tmpv3fblyag/tmpuz59qgp6.py", line 1, in <module>
r,c = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s829105512 | p02413 | u024715419 | 1488271194 | Python | Python3 | py | Runtime Error | 0 | 0 | 350 | r,c = map(int,input().split())
a = [[0 for i in range(c+1)] for j in range(r+1)]
for i in range(r):
a_tmp = list(map(int,input().split()))
for j in range(c):
a[i][j] = a_tmp[j]
a[i][c+1] += a_tmp[j]
a[r+1][j] += a_tmp[j]
a[r+1][c+1] += a_tmp[j]
for i in range(r+1):
print('... | Traceback (most recent call last):
File "/tmp/tmp1rmm5bje/tmpy9m_v566.py", line 1, in <module>
r,c = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s961522495 | p02413 | u921541953 | 1489401339 | Python | Python3 | py | Runtime Error | 0 | 0 | 425 | table = []
r, c = map(int, input().strip().split())
[table.append(input().strip().split()) for i in range(r)]
print(table)
for j in range(r + 1):
for k in range(c + 1):
if j == r and k != c:
lastrow = sum(map(int, [table[x][k] for x in range(r)]))
table[-1].append(lastrow)
i... | Traceback (most recent call last):
File "/tmp/tmp5swqmkhh/tmp44f6pusy.py", line 2, in <module>
r, c = map(int, input().strip().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s030531767 | p02413 | u897625141 | 1489406040 | Python | Python3 | py | Runtime Error | 0 | 0 | 714 | iranai = [int(i) for i in input().split()]
iru = [[int(i) for i in input().split()] for i in range(iranai[0])]
mikitani = []
son = []
num = 0
mikicount = 0
for i in range(iranai[0]):
for i2 in range(iranai[1]):
num += iru[i][i2]
mikitani.append(num)
num = 0
for i in range(iranai[1]):
for i2 in... | File "/tmp/tmpavpz9wvl/tmprr56htz_.py", line 23
if i2 = iranai[2]-1:
^^^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s528753370 | p02413 | u011621222 | 1489925985 | Python | Python | py | Runtime Error | 0 | 0 | 241 | def sum(l):
s=0
for i in l:
s+=i
return s
r,c=map(int,raw_input().split())
su=[0]*c
for i in range(r):
l=map(int,raw_input().split())
for j in l:print j,
print sum(l)
for j in range(c):su[j]+=l[j]
for j in su:print j,
print sum(su) | File "/tmp/tmpc25_ld22/tmpt4x916hl.py", line 10
for j in l:print j,
^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s947689136 | p02413 | u208157605 | 1491689858 | Python | Python3 | py | Runtime Error | 0 | 0 | 301 | r,c = list(map(int, input().split()))
parent_list = []
for i in range(r):
l = list(map(int, input().split()))
l.append(sum(l))
parent_list.append(l)
for l in parent_list:
for n in l:
print(n, end=' ')
print('')
for (a,b,c) in zip(*parent_list):
print(a+b+c, end=' ') | Traceback (most recent call last):
File "/tmp/tmp563a9c4o/tmpwftyu7zj.py", line 1, in <module>
r,c = list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s499992410 | p02413 | u685534465 | 1492647876 | Python | Python3 | py | Runtime Error | 30 | 7700 | 422 | r,c = [int(i) for i in input().split()]
a = [[0 for i in range(r+2)] for j in range(c)]
for i in range(r):
a[i] = [int(j) for j in input().split()]
for i in range(r):
rowSum = 0
for j in range(c):
rowSum += a[i][j]
a[i].append(rowSum)
for i in range(c+1):
columnSum = 0
for j in range(r):
columnSum += a[j][i]
... | Traceback (most recent call last):
File "/tmp/tmpw3juzchh/tmp738gdbwr.py", line 1, in <module>
r,c = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s277505672 | p02413 | u213265973 | 1494335244 | Python | Python3 | py | Runtime Error | 0 | 0 | 311 | r, c = [int(i) for i in input().split(" ")]
s_row = [0 for x in range(c + 1)]
for i in range(r):
row = [int(n) for n in input().split(" ")]
row.append(sum(raw))
print(" ".join( [ str(s) for s in row ] ) )
s_row = [ x + y for x, y in zip(s_row, row)]
print(" ".join( [str(s1) for s1 in s_row] )) | Traceback (most recent call last):
File "/tmp/tmp_rswh0l5/tmpxesks9q5.py", line 1, in <module>
r, c = [int(i) for i in input().split(" ")]
^^^^^^^
EOFError: EOF when reading a line
| |
s562811230 | p02413 | u213265973 | 1494335313 | Python | Python3 | py | Runtime Error | 0 | 0 | 317 | r, c = [int(i) for i in input().split(" ")]
s_row = [0 for x in range(c + 1)]
for i in range(r):
row = [int(n) for n in input().split(" ")]
row = row.append(sum(row))
print(" ".join( [ str(s) for s in row ] ) )
s_row = [ x + y for x, y in zip(s_row, row)]
print(" ".join( [str(s1) for s1 in s_row] )) | File "/tmp/tmpmq_ryssb/tmpkiwk0rx9.py", line 6
row = row.append(sum(row))
^
IndentationError: unindent does not match any outer indentation level
| |
s475555861 | p02413 | u650790815 | 1496731613 | Python | Python3 | py | Runtime Error | 0 | 0 | 192 | raws,columns = map(int,input().split())
a = []
for i in range(raws):
a.append(list(map(int,input().split())))
for i in range(raws):
a[i].append(sum(a[i]))
a,append([sum(i) for i in a]) | Traceback (most recent call last):
File "/tmp/tmpjynhz14p/tmpgjlnhv5j.py", line 1, in <module>
raws,columns = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s276980452 | p02413 | u650790815 | 1496731906 | Python | Python3 | py | Runtime Error | 0 | 0 | 238 | raws,columns = map(int,input().split())
a = []
for i in range(raws):
a.append(list(map(int,input().split())))
for i in range(raws):
a[i].append(sum(a[i]))
a.append([sum(i) for i in a])
for r in a:
print(' '.join(x for x in r)) | Traceback (most recent call last):
File "/tmp/tmpuboza49l/tmpwg1sekav.py", line 1, in <module>
raws,columns = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s477048154 | p02413 | u193453446 | 1499402988 | Python | Python3 | py | Runtime Error | 0 | 0 | 486 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
??´?????????
"""
inp = input().strip().split(" ")
row = int(inp[0])
col = int(inp[1])
cells = [[0 for r in range(row+1)] for c in range(col+1)]
for r in range(row):
inp = input().strip().split(" ")
for c in range(col):
cells[r][c] = int(inp[c])
... | Traceback (most recent call last):
File "/tmp/tmpjdikpbkd/tmp1b5dyf8f.py", line 6, in <module>
inp = input().strip().split(" ")
^^^^^^^
EOFError: EOF when reading a line
| |
s214278667 | p02413 | u821624310 | 1503067944 | Python | Python3 | py | Runtime Error | 0 | 0 | 404 | import output
r, c = map(int, input().split())
a = [[int(num) for num in input().split()] for i in range(r)]
a.append([0, 0, 0, 0, 0])
for i in range(c):
for j in range(r):
a[r][i] += a[j][i]
for i in range(c):
a[i].append(sum(a[i]))
for i in range(r+1):
for j in range(c+1):
if j == c:
... | Traceback (most recent call last):
File "/tmp/tmpeac81k_s/tmp_00bemzo.py", line 1, in <module>
import output
ModuleNotFoundError: No module named 'output'
| |
s644944732 | p02413 | u821624310 | 1503068078 | Python | Python3 | py | Runtime Error | 30 | 7732 | 377 | r, c = map(int, input().split())
a = [[int(num) for num in input().split()] for i in range(r)]
a.append([0, 0, 0, 0, 0])
for i in range(c):
for j in range(r):
a[r][i] += a[j][i]
for i in range(c):
a[i].append(sum(a[i]))
for i in range(r+1):
for j in range(c+1):
if j == c:
print(a... | Traceback (most recent call last):
File "/tmp/tmp65m0_1ev/tmpv_k52u3t.py", line 1, in <module>
r, c = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s396180899 | p02413 | u821624310 | 1503087471 | Python | Python3 | py | Runtime Error | 30 | 7704 | 377 | r, c = map(int, input().split())
a = [[int(num) for num in input().split()] for i in range(r)]
a.append([0, 0, 0, 0, 0])
for i in range(c):
for j in range(r):
a[r][i] += a[j][i]
for i in range(c):
a[i].append(sum(a[i]))
for i in range(r+1):
for j in range(c+1):
if j == c:
print(a... | Traceback (most recent call last):
File "/tmp/tmpbw5sojxt/tmp4girypnq.py", line 1, in <module>
r, c = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s662091142 | p02413 | u956226421 | 1504751713 | Python | Python3 | py | Runtime Error | 30 | 7828 | 616 | I = input().split()
r = int(I[0])
c = int(I[1])
Rsum = 0
Csum = (c + 1) * [0]
o = [[0 for i2 in range(c + 1)] for i1 in range(r + 1)]
for i in range(r + 1):
if i < r:
Irc = input().split()
for j in range(c):
if i < r:
o[i][j] = int(Irc[j])
Rsum += o[i][j]
Cs... | Traceback (most recent call last):
File "/tmp/tmpb344vmjc/tmp0rl3i3d6.py", line 1, in <module>
I = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s280777632 | p02413 | u956226421 | 1504751757 | Python | Python3 | py | Runtime Error | 20 | 7692 | 616 | I = input().split()
r = int(I[0])
c = int(I[1])
Rsum = 0
Csum = (c + 1) * [0]
o = [[0 for i2 in range(c + 1)] for i1 in range(r + 1)]
for i in range(r + 1):
if i < r:
Irc = input().split()
for j in range(c):
if i < r:
o[i][j] = int(Irc[j])
Rsum += o[i][j]
Cs... | Traceback (most recent call last):
File "/tmp/tmpbh4n9q58/tmpsex0c0py.py", line 1, in <module>
I = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s885977196 | p02413 | u933096856 | 1505785604 | Python | Python3 | py | Runtime Error | 0 | 0 | 184 | r,c=map(int,input().split())
a,b=[],[0]*c
for i in range(r):
x=list(map(int,input().split()))
b+=x
print(*x, end=' ')
print(sum(x))
print(*b, end=' ')
print(sum(b)) | File "/tmp/tmppxk3c_ro/tmpbwfkug0k.py", line 9
print(sum(b))
IndentationError: unexpected indent
| |
s494505493 | p02413 | u664228906 | 1506493108 | Python | Python3 | py | Runtime Error | 0 | 0 | 138 | N, M=map(int, input().split())
for n in range(N):
arr = list(map(int, input().split()))
sum = sum(arr)
print(" ".join(arr) + " " + sum) | Traceback (most recent call last):
File "/tmp/tmpim5qvwtr/tmp1pprxj8x.py", line 1, in <module>
N, M=map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s925440241 | p02413 | u664228906 | 1506493144 | Python | Python3 | py | Runtime Error | 0 | 0 | 146 | N, M=map(int, input().split())
sum = 0
for n in range(N):
arr = list(map(int, input().split()))
sum = sum(arr)
print(" ".join(arr) + " " + sum) | Traceback (most recent call last):
File "/tmp/tmpantsx23y/tmpg5nscsyh.py", line 1, in <module>
N, M=map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s335812526 | p02413 | u664228906 | 1506493402 | Python | Python3 | py | Runtime Error | 0 | 0 | 140 | N, M=map(int, input().split())
sum = 0
for n in range(N):
arr = list(map(int, input().split()))
arr.append(sum(arr))
print(" ".join(arr)) | Traceback (most recent call last):
File "/tmp/tmpugjw5ago/tmpyt0p77ag.py", line 1, in <module>
N, M=map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s802962957 | p02413 | u692415695 | 1508024864 | Python | Python3 | py | Runtime Error | 0 | 0 | 376 | # (c) midandfeed
r, c = [int(x) for x in input().split()]
q = []
sumr = [0]*c
tempr = 0
for i in range(r):
col = [int(x) for x in input().split()]
for j in range(c):
sumr[j] += col[j]
col.append(sum(col))
q.append(col)
sumr.append(sum(sumr))
q.append(sumr)
for i in range(r+1):
for j in range(c+1):
print(q[i], ... | File "/tmp/tmplvkqzto6/tmpemkuzk_2.py", line 17
if (i != (r+1))
^
SyntaxError: expected ':'
| |
s401849951 | p02413 | u017523606 | 1514361314 | Python | Python3 | py | Runtime Error | 20 | 5608 | 729 | r,c = map(int,input().split())
line = []
array = [[0 for i in range(c+1)]for j in range(r+1)]
for i in range(0,r):
line = input().split()
for j in range(c):
array[i][j]=int(line[j])
sum = 0
for i in range(r):
for j in range(c):
sum = sum + array[i][j]
array[i][c]=sum
sum = 0
for i in... | Traceback (most recent call last):
File "/tmp/tmp5bd8sxb0/tmpc5kxsr81.py", line 1, in <module>
r,c = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s106464922 | p02413 | u210512327 | 1516171910 | Python | Python3 | py | Runtime Error | 0 | 0 | 424 | import numpy as np
r,c = map(int, input().split())
a=np.zeros([r+1,c+1])
for i in range(r):
sumC = 0
ar = input().split()
for j in range(c):
a[i,j]=int(ar[j])
sumC +=int(ar[j])
a[i,c]=sumC
print(" ".join(map(str, ar)), end=" ")
print(sumC)
for k in range(c+1):
for m in ra... | Traceback (most recent call last):
File "/tmp/tmpluewkqgu/tmpo96_vq4k.py", line 3, in <module>
r,c = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s802658383 | p02413 | u476441153 | 1517859785 | Python | Python3 | py | Runtime Error | 0 | 0 | 127 | r, c = map(int, input().split())
for i in range(c):
n = list(map(int, input().split()))
n.append(sum(n))
print (n)
| Traceback (most recent call last):
File "/tmp/tmpgmf2d__3/tmp2979k4na.py", line 1, in <module>
r, c = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s537385537 | p02413 | u476441153 | 1517859835 | Python | Python3 | py | Runtime Error | 0 | 0 | 127 | r, c = map(int, input().split())
for i in range(c):
n = list(map(int, input().split()))
n.append(sum(n))
print (n)
| Traceback (most recent call last):
File "/tmp/tmp470u1t89/tmpety0r3s_.py", line 1, in <module>
r, c = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s379754882 | p02413 | u796301295 | 1517994342 | Python | Python3 | py | Runtime Error | 0 | 0 | 431 | n,m=map(int,input().split())
mat = [[0 for _ in range(n+1)] for _ in range(m+1)]
for i in range(n):
r = list(map(int,input().split()))
for j in range(m):
mat[i][j] = r[j]
for i in range(n):
for j in range(m):
mat[i][-1] += mat[i][j]
mat[-1][j] += mat[i][j]
mat[-1][-1] += mat[i]... | Traceback (most recent call last):
File "/tmp/tmpmrrwnv4i/tmppt7fb25w.py", line 1, in <module>
n,m=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s777941183 | p02413 | u796301295 | 1517994387 | Python | Python3 | py | Runtime Error | 0 | 0 | 435 | n, m = map(int, input().split())
mat = [[0 for x in range(n+1)] for y in range(m+1)]
for i in range(n):
r = list(map(int,input().split()))
for j in range(m):
mat[i][j] = r[j]
for i in range(n):
for j in range(m):
mat[i][-1] += mat[i][j]
mat[-1][j] += mat[i][j]
mat[-1][-1] += ma... | Traceback (most recent call last):
File "/tmp/tmpo__bo_ja/tmprdxmesft.py", line 1, in <module>
n, m = 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.