buggy
stringlengths
1
618k
fixed
stringlengths
16
618k
buggy_submission_id
stringlengths
10
10
fixed_submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
lang
stringclasses
1 value
buggy_verdict
stringclasses
2 values
import sys def main(): tmp = sys.stdin.readline() while tmp: tmp = sys.stdin.readline().split("") if a > b: c = a d = b else: c = b d = a tmp = sys.stdin.readline() if __name__ == "__main__": main()
import sys #最大公約数 def gcd(x, y): s = x / y r = x % y if r == 0: return y else: return gcd(y, r) #最小公倍数 def lcm(x, y): return x*y/gcd(x, y) def main(): #print ("a") for line in iter(sys.stdin.readline, ""): #print (line) #tmp = sys.stdin.readline().split(" "...
s176528614
s531063834
p00005
python
Runtime Error
import sys def main(): tmp = sys.stdin.readline() while tmp: tmp = sys.stdin.readline().split("") if a > b: c = a d = b else: c = b d = a tmp = sys.stdin.readline() break if __name__ == "__main__": m...
import sys #最大公約数 def gcd(x, y): s = x / y r = x % y if r == 0: return y else: return gcd(y, r) #最小公倍数 def lcm(x, y): return x*y/gcd(x, y) def main(): #print ("a") for line in iter(sys.stdin.readline, ""): #print (line) #tmp = sys.stdin.readline().split(" "...
s719090957
s531063834
p00005
python
Runtime Error
import sys def main(): tmp = sys.stdin.readline() while tmp: tmp = sys.stdin.readline().split("") a = 1 b = 2 if a > b: c = a d = b else: c = b d = a tmp = sys.stdin.readline() break if _...
import sys #最大公約数 def gcd(x, y): s = x / y r = x % y if r == 0: return y else: return gcd(y, r) #最小公倍数 def lcm(x, y): return x*y/gcd(x, y) def main(): #print ("a") for line in iter(sys.stdin.readline, ""): #print (line) #tmp = sys.stdin.readline().split(" "...
s931041114
s531063834
p00005
python
Runtime Error
n = input() R = [] for i in range(n): R.append(input()) profit = R[1] - R[0] for i in range(n): for j in range(i+1, n): if R[j] - R[i] > profit: profit = R[j] - R[i] print "%d" % profit
n = input() R = [] for i in range(n): R.append(input()) maxv = R[1] - R[0] minv = R[0] for j in range(1, n): maxv = max(maxv, R[j] - minv) minv = min(minv, R[j]) print "%d" % maxv
s246428817
s601211263
p02258
python
Time Limit Exceeded
n = input() R = [] for i in range(n): R.append(input()) profit = R[n-1] - R[0] after = R[n-1] for i in range(n): if R[n-1-i] < after and i != 0: continue for j in range(n-i-1): if R[n-1-i] - R[j] > profit: profit = R[n-1-i] - R[j] after = R[n-1-i] print "%d" % profit
n = input() R = [] for i in range(n): R.append(input()) maxv = R[1] - R[0] minv = R[0] for j in range(1, n): maxv = max(maxv, R[j] - minv) minv = min(minv, R[j]) print "%d" % maxv
s389070436
s601211263
p02258
python
Time Limit Exceeded
a = input() b = input() s = a * b l = 2 * (a+b) print "%d %d" % (s, l)
tmp = raw_input().split() a = int(tmp[0]) b = int(tmp[1]) s = a * b l = 2 * (a+b) print "%d %d" % (s, l)
s901727387
s251191579
p02389
python
Runtime Error
import math s = map(int, raw_input().split()) print "%d" % (math.pow(s[0], s[1]) % 1000000007)
NUM = 1000000007 def power(m, n): if n == 0: return 1 if n == 1: return m if n % 2 == 0: tmp = power(m, n/2) % NUM return tmp ** 2 % NUM if n % 2 == 1: tmp = power(m, n/2) % NUM return m * (tmp**2) % NUM s = map(int, raw_input().split()) print "%d" % (po...
s436211584
s327727786
p02468
python
Runtime Error
import math s = map(int, raw_input().split()) print "%d" % (math.pow(s[0], s[1]) % 1000000007)
NUM = 1000000007 def power(m, n): if n == 0: return 1 if n == 1: return m if n % 2 == 0: tmp = power(m, n/2) % NUM return tmp ** 2 % NUM if n % 2 == 1: tmp = power(m, n/2) % NUM return m * (tmp**2) % NUM s = map(int, raw_input().split()) print "%d" % (po...
s958729647
s327727786
p02468
python
Runtime Error
import sys print sys.argv[1]*3
n = input() print n**3
s723263433
s751354186
p02388
python
Runtime Error
#!/usr/bin/python import sys fp = open(sys.argv[1],'rb') for i in fp.readline: print i*3
n = input() print n**3
s128211985
s751354186
p02388
python
Runtime Error
import sys s=[0]*51 for a in range(10): for b in range(10): for c in range(10): for d in range(10): s[a+b+c+d]+=1 for l in sys.stdin:print x[int(l)]
def count(n): cnt = 0 for a in range(10): for b in range(10): for c in range(10): for d in range(10): if a + b + c + d == n: cnt += 1 print(cnt) while True: try: n = int(input()) count(n) except EOFError...
s393968672
s468414930
p00008
python
Runtime Error
#coding: UTF-8 def is_prime(target_num): if target_num == 2: return True elif target_num % 2 == 0: return False for i in range(3, target_num / 2 + 1, 2): if target_num % i == 0: return False return True def count_prime_numbers(target_num): prime_count = 0 f...
max_n = 999999 prime_list = [1] * (max_n + 1) # 0, 1は素数ではない prime_list[0:2] = [0, 0] # for i in range(2, int(max_n**0.5) + 1): if prime_list[i] == 1: prime_list[i**2::i] = [0] * len(prime_list[i**2::i]) while True: try: n = int(input()) print(sum(prime_list[:n + 1])) except EOFE...
s911586384
s417508198
p00009
python
Time Limit Exceeded
#coding: UTF-8 prime_number_list = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41] def is_prime(target_num): if target_num in prime_number_list: return True elif target_num % 2 == 0: return False for i in range(3, target_num / 2 + 1, 2): if target_num % i == 0: return ...
max_n = 999999 prime_list = [1] * (max_n + 1) # 0, 1は素数ではない prime_list[0:2] = [0, 0] # for i in range(2, int(max_n**0.5) + 1): if prime_list[i] == 1: prime_list[i**2::i] = [0] * len(prime_list[i**2::i]) while True: try: n = int(input()) print(sum(prime_list[:n + 1])) except EOFE...
s896013759
s417508198
p00009
python
Time Limit Exceeded
#coding: UTF-8 def is_prime(target_num): i = 2 while i * i <= target_num: if target_num % i == 0: return False i += 1 return True def count_prime_numbers(target_num): prime_count = 0 for i in range(2, target_num + 1): if is_prime(i): prime_count += 1...
max_n = 999999 prime_list = [1] * (max_n + 1) # 0, 1は素数ではない prime_list[0:2] = [0, 0] # for i in range(2, int(max_n**0.5) + 1): if prime_list[i] == 1: prime_list[i**2::i] = [0] * len(prime_list[i**2::i]) while True: try: n = int(input()) print(sum(prime_list[:n + 1])) except EOFE...
s756455242
s417508198
p00009
python
Time Limit Exceeded
#coding: UTF-8 prime_number_list = [] def is_prime(target_num): if target_num in prime_number_list: return True i = 2 while i * i <= target_num: if target_num % i == 0: return False i += 1 return True def count_prime_numbers(target_num_list): prime_count = 0 ...
max_n = 999999 prime_list = [1] * (max_n + 1) # 0, 1は素数ではない prime_list[0:2] = [0, 0] # for i in range(2, int(max_n**0.5) + 1): if prime_list[i] == 1: prime_list[i**2::i] = [0] * len(prime_list[i**2::i]) while True: try: n = int(input()) print(sum(prime_list[:n + 1])) except EOFE...
s561501650
s417508198
p00009
python
Time Limit Exceeded
#coding: UTF-8 from bisect import bisect_right # 指定した数以下の素数の個数を返却する # 素数判定はエラストテネスのふるい # 要素1000000のリスト(素数かどうかのリスト)を準備 max_number = 1000000 prime_flag_list = [True] * max_number # 0、1は素数でない prime_flag_list[0] = False prime_flag_list[1] = False # 2の倍数(2を除く)は素数でない prime_flag_list[4::2] = [False] * len(prime_flag_list...
max_n = 999999 prime_list = [1] * (max_n + 1) # 0, 1は素数ではない prime_list[0:2] = [0, 0] # for i in range(2, int(max_n**0.5) + 1): if prime_list[i] == 1: prime_list[i**2::i] = [0] * len(prime_list[i**2::i]) while True: try: n = int(input()) print(sum(prime_list[:n + 1])) except EOFE...
s173538266
s417508198
p00009
python
Runtime Error
l=xrange(1,input()+1) for a,b in[map(int,raw_input().split(","))for i in xrange(input())]:l[a-1],l[b-1]=l[b-1],l[a-1] for i in l:print i
w = int(input()) n = int(input()) amida = [i for i in range(1, w + 1)] for _ in range(n): a, b = [int(i) - 1 for i in input().split(",")] amida[a], amida[b] = amida[b], amida[a] for x in amida: print(x)
s287934673
s531764422
p00011
python
Runtime Error
seconds = int(input()) print(":".join(seconds/60/24,seconds/60%24, seconds%60))
seconds = int(input()) print(":".join([str(n) for n in [seconds//60//60,seconds//60%60, seconds%60]]))
s729749472
s120443149
p02390
python
Runtime Error
seconds = int(input()) print(":".join([seconds/60/24,seconds/60%24, seconds%60]))
seconds = int(input()) print(":".join([str(n) for n in [seconds//60//60,seconds//60%60, seconds%60]]))
s344569349
s120443149
p02390
python
Runtime Error
from math import pi r = int(input()) print("{:f} {:f}".format(r * r * pi, 2 * r * pi))
from math import pi r = float(input()) print("{:f} {:f}".format(r * r * pi, 2 * r * pi))
s095694039
s146007732
p02400
python
Runtime Error
andb=(raw_input()).split(" ") a=int(aandb[0]) b=int(aandb[1]) print a, if a == b: print "==", elif a > b: print ">", else: print "<", print b
aandb=(raw_input()).split(" ") a=int(aandb[0]) b=int(aandb[1]) print "a", if a > b: print ">", elif a < b: print "<", else: print "==", print "b"
s474396127
s852343855
p02482
python
Runtime Error
while true: n=input() if n==0: break print sum(input() for i in xrange(n/4))
while True: n = input() if n == 0: break print sum(input() for i in range(n/4))
s874023440
s343369434
p00627
python
Runtime Error
while true: n =input() if n == 0: break print sum(input() for i in xrange(n/4))
while True: n = input() if n == 0: break print sum(input() for i in range(n/4))
s183248442
s343369434
p00627
python
Runtime Error
while True: n=input() if n==0: break print ans(input() for i in range(n/4))
while True: n = input() if n == 0: break print sum(input() for i in range(n/4))
s203557219
s343369434
p00627
python
Runtime Error
while True: n = input() if n == 0: break print ans(input() for i in range(n/4))
while True: n = input() if n == 0: break print sum(input() for i in range(n/4))
s710159257
s343369434
p00627
python
Runtime Error
n = input() lis = [] ans = 0 for i in xrange(n): com = raw_input() if com[0] == 'i': lis.append(com[7:]) elif com[6] == ' ': try: lis.pop(~lis[::-1].index(com[7:])) except: pass elif com[6] == 'F': lis.pop() else: bot += 1 print ' '...
n = input() lis = [] ans = 0 for i in xrange(n): com = raw_input() if com[0] == 'i': lis.append(com[7:]) elif com[6] == ' ': try: lis.pop(~lis[::-1].index(com[7:])) except: pass elif com[6] == 'F': lis.pop() else:ans += 1 print ' '.join( ma...
s926869590
s339657832
p02265
python
Runtime Error
import math from math import radians from cmath import sqrt a,b,c = map(int, raw_input().split) s = (a * b * math.sin(radians(c))) /2 c = sqrt(pow(a,2) + pow(b,2) - 2*a*b*math.cos(radians(c))) print s print a + b +c print s*2 /a
import math a, b, C = map(int, raw_input().split()) S = (a * b * math.sin(math.radians(C))) / 2 c = math.sqrt(a*a + b*b - 2*a*b*math.cos(math.radians(C))) print("%f" % (S)) print("%f" % ( a + b + c)) print("%f" % ((S * 2) / a))
s518948608
s332480312
p02380
python
Runtime Error
while True: n = str(raw_input()) if n == 0:break sum = 0 for i in n: sum += int(i) print sum
while True: n = str(raw_input()) if n == "0":break sum = 0 for i in n: sum += int(i) print sum
s028868770
s080439158
p02485
python
Runtime Error
while True: n = raw_input() if n == 0:break sum = 0 for i in n: sum += int(i) print sum
while True: n = str(raw_input()) if n == "0":break sum = 0 for i in n: sum += int(i) print sum
s040653510
s080439158
p02485
python
Runtime Error
while True: n = str(raw_input()) if n == 0:break sum = 0 for i in n: sum += int(i) print sum
while True: n = str(raw_input()) if n == "0":break sum = 0 for i in n: sum += int(i) print sum
s656959528
s080439158
p02485
python
Runtime Error
while True: n,x = map(int,raw_input().split()) count = 0; for i in range(1,n + 1): for j in range(1,n + 1): if i == j:break for k in range(1,n + 1): if j == k:break if i + j + k == x: count+=1 print i,j,k...
while True: n,x = map(int,raw_input().split()) count = 0; if n == 0 and x == 0:break for i in range(1,n + 1): for j in range(1,n + 1): if i == j:break for k in range(1,n + 1): if j == k:break if i + j + k == x: count+=1 ...
s270364177
s748079428
p02486
python
Runtime Error
n=int(raw_input()) a=map(int, raw_input().split()) print ' '.join(map(str, a.reverse()))
n = int(raw_input()) a = map(int, raw_input().split()) a.reverse() print ' '.join(map(str, a))
s198460695
s401971521
p02493
python
Runtime Error
while 1: try : line = raw_input() except : break for i in range(26): char = chr(i + 97) print '%s : %d' % (char , line.lower().count(c))
line = "" while True: try: line += raw_input() except:break for i in range(26): c = chr(i + 97) print '%s : %d' % (c, line.lower().count(c))
s437133305
s865517705
p02499
python
Runtime Error
input() S = raw_input().split() input() T = raw_input().split() print len(S & T)
input() S = set(raw_input().split()) input() T = set(raw_input().split()) print len(S & T)
s850217846
s926146984
p02529
python
Runtime Error
x = int(raw_input()) print (x * x * x)
import sys x = int(input()) print (x * x * x)
s231257778
s881264700
p02480
python
Runtime Error
import sys x = int(raw_input()) print (x * x * x)
import sys x = int(input()) print (x * x * x)
s819123048
s881264700
p02480
python
Runtime Error
a = input() b = input() print a * b, 2 * (a + b)
import sys (a, b) = map(int, input().split()) print (a * b, (a + b) * 2)
s025666635
s016741695
p02481
python
Runtime Error
a = int(input()) b = int(input()) print a * b, 2 * (a + b)
import sys (a, b) = map(int, input().split()) print (a * b, (a + b) * 2)
s742146245
s016741695
p02481
python
Runtime Error
a = int(input()) b = int(input()) print (a * b, 2 * a + 2 * b)
import sys (a, b) = map(int, input().split()) print (a * b, (a + b) * 2)
s269052129
s016741695
p02481
python
Runtime Error
import sys a = int(raw_input()) b = int(raw_input()) print a * b, 2 * a + 2 * b
import sys (a, b) = map(int, input().split()) print (a * b, (a + b) * 2)
s540892380
s016741695
p02481
python
Runtime Error
a = int(raw_input()) b = int(raw_input()) s = a * b s2 = 2 * (a + b) print (s, s2)
import sys (a, b) = map(int, input().split()) print (a * b, (a + b) * 2)
s827962998
s016741695
p02481
python
Runtime Error
import sys a = eval(raw_input()) b = eval(raw_input()) s1 = a * b s2 = 2 * (a + b) print s1, s2
import sys (a, b) = map(int, input().split()) print (a * b, (a + b) * 2)
s329102768
s016741695
p02481
python
Runtime Error
import sys (a, b) = map(int, raw_input().split()) s1 = a * b s2 = 2 * (a + b) print s1, s2
import sys (a, b) = map(int, input().split()) print (a * b, (a + b) * 2)
s520720831
s016741695
p02481
python
Runtime Error
import string w = input() w.upper() cnt = 0 while True: S = input().split() for s in S: s.upper() i = 0 while i < len(s): if s not in string.digits: s.erase(i) i -= 1 i += 1 if (s == w): cnt += 1 if S[-1...
W = input().lower() cnt = 0 while True: T = input().split() if T[0] == "END_OF_TEXT": break for string in T: string = string.rstrip(".").lower() #print(string) if W == string: cnt = cnt + 1 print(cnt)
s335808760
s750835701
p02506
python
Runtime Error
import string import sys w = input() w.upper() cnt = 0 while True: S = input().split() if len(S) == 0: break for s in S: s.upper() if w in s: cnt += 1 print(cnt)
W = input().lower() cnt = 0 while True: T = input().split() if T[0] == "END_OF_TEXT": break for string in T: string = string.rstrip(".").lower() #print(string) if W == string: cnt = cnt + 1 print(cnt)
s908365061
s750835701
p02506
python
Runtime Error
n = int(raw_input()) for i in xrange(n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,raw_input().split()) z1 = (y1 - y2) / (x1 - x2) z2 = (y3 - y4) / (x3 - x4) if z1 == z2: print "YES" else: print "NO"
n = int(raw_input()) for i in range(0, n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,raw_input().split()) z1 = (x1 - x2) * (y3 - y4) z2 = (x3 - x4) * (y1 - y2) if abs(z1 - z2) < 1e-10: print "YES" else: print "NO"
s418056471
s661242915
p00021
python
Runtime Error
n = int(raw_input()) for i in range(0, n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,raw_input().split()) z1 = (y1 - y2) / (x1 - x2) z2 = (y3 - y4) / (x3 - x4) if z1 == z2: print "YES" else: print "NO"
n = int(raw_input()) for i in range(0, n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,raw_input().split()) z1 = (x1 - x2) * (y3 - y4) z2 = (x3 - x4) * (y1 - y2) if abs(z1 - z2) < 1e-10: print "YES" else: print "NO"
s858112246
s661242915
p00021
python
Runtime Error
n = int(raw_input()) for i in range(0, n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,raw_input().split()) z1 = (y1 - y2) / (x1 - x2) z2 = (y3 - y4) / (x3 - x4) if z1 == z2: print "YES" else: print "NO"
n = int(raw_input()) for i in range(0, n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,raw_input().split()) z1 = (x1 - x2) * (y3 - y4) z2 = (x3 - x4) * (y1 - y2) if abs(z1 - z2) < 1e-10: print "YES" else: print "NO"
s435184025
s661242915
p00021
python
Runtime Error
while True: try: code = [raw_input() for _ in range(8)] except EOFError: break code = "".join(code) check = 0 for var in range(0, len(code)): if int(code[var:var+1]) == 1: check = var break if int(code[check+1:check+2]) == 1 and int(code[check+8:check+9]) == 1: if int(code[check+9:check+10]) ...
while True: surface = [list(raw_input()) for _ in range(0, 8)] surf = [] for i in range(0, 8): if "1" in surface[i]: surf.append(surface[i]) if len(surf) == 1 : print "C" else: if len(surf) == 2: x = surf[0].index("1") y = surf[1].index("1") if x - y == 0 : print "A" elif x - y == -1 : pri...
s657890721
s038705782
p00036
python
Runtime Error
while True: try: code = [raw_input() for _ in range(8)] except EOFError: break code = "".join(code) str(code) check = 0 for var in range(0, len(code)): if int(code[var:var+1]) == 1: check = var break if int(code[check+1:check+2]) == 1 and int(code[check+8:check+9]) == 1: if int(code[check+9:...
while True: surface = [list(raw_input()) for _ in range(0, 8)] surf = [] for i in range(0, 8): if "1" in surface[i]: surf.append(surface[i]) if len(surf) == 1 : print "C" else: if len(surf) == 2: x = surf[0].index("1") y = surf[1].index("1") if x - y == 0 : print "A" elif x - y == -1 : pri...
s794340974
s038705782
p00036
python
Runtime Error
while True: try: num = raw_input().split(" ") sum = 0 x = float(num[0]) / float(num[1]) if x < 1: x = x + 1.0 for var in range(1, int(num[2]) + 1): sum += int(str(x * 10**var)[var:var+1]) print sum except EOFError: break
while True: try: a,b,n = map(int,raw_input().split()) except EOFError: break s = 0 for var in range(0, n): a = a % b * 10 s += a / b print s
s047713442
s306974011
p00054
python
Runtime Error
while True: num = raw_input().split(" ") sum = 0 x = float(num[0]) / float(num[1]) if x < 1: x = x + 1.0 for var in range(1, int(num[2]) + 1): sum += int(str(x * 10**var)[var:var+1]) print sum
while True: try: a,b,n = map(int,raw_input().split()) except EOFError: break s = 0 for var in range(0, n): a = a % b * 10 s += a / b print s
s041922535
s306974011
p00054
python
Runtime Error
dict1 = {} dict2 = {} while True: str = raw_input().split(",") if len(str[0]) == 0: break if dict1.has_key(str[0]): dict1[str[0]] = dict1[str[0]] + 1 else: dict1[str[0]] = 1 while True: str = raw_input().split(",") if len(str[0]) == 0: break if dict2.has_key(str[0]): dict2[str[0]] = dict2[st...
dict1 = {} dict2 = {} while True: log = raw_input() if len(log) == 0: break log = log.split(",")[0] if log in dict1: dict1[log] = dict1[log] + 1 else: dict1[log] = 1 while True: try: log = raw_input() log = log.split(",")[0] if log in dict2: dict2[log] = dict2[log] + 1 else: dict...
s130270805
s555155805
p00065
python
Runtime Error
dict1 = {} dict2 = {} while True: str = raw_input().split(",") if len(str[0]) == 0: break if dict1.has_key(str[0]): dict1[str[0]] = dict1[str[0]] + 1 else: dict1[str[0]] = 1 while True: str = raw_input().split(",") if len(str[0]) == 0: break if dict2.has_key(str[0]): dict2[str[0]] = dict2[st...
dict1 = {} dict2 = {} while True: log = raw_input() if len(log) == 0: break log = log.split(",")[0] if log in dict1: dict1[log] = dict1[log] + 1 else: dict1[log] = 1 while True: try: log = raw_input() log = log.split(",")[0] if log in dict2: dict2[log] = dict2[log] + 1 else: dict...
s620539317
s555155805
p00065
python
Runtime Error
dict1 = {} dict2 = {} while True: str = raw_input().split(",") if len(str[0]) == 0: break if dict1.has_key(str[0]): dict1[str[0]] = dict1[str[0]] + 1 else: dict1[str[0]] = 1 while True: try: str = raw_input().split(",") if dict2.has_key(str[0]): dict2[str[0]] = dict2[str[0]] + 1 else: d...
dict1 = {} dict2 = {} while True: log = raw_input() if len(log) == 0: break log = log.split(",")[0] if log in dict1: dict1[log] = dict1[log] + 1 else: dict1[log] = 1 while True: try: log = raw_input() log = log.split(",")[0] if log in dict2: dict2[log] = dict2[log] + 1 else: dict...
s713411525
s555155805
p00065
python
Runtime Error
dict1 = {} dict2 = {} while True: str = raw_input() if len(str[0]) == 0: break str.split(",") if dict1.has_key(str[0]): dict1[str[0]] = dict1[str[0]] + 1 else: dict1[str[0]] = 1 while True: try: str = raw_input().split(",") if dict2.has_key(str[0]): dict2[str[0]] = dict2[str[0]] + 1 else: ...
dict1 = {} dict2 = {} while True: log = raw_input() if len(log) == 0: break log = log.split(",")[0] if log in dict1: dict1[log] = dict1[log] + 1 else: dict1[log] = 1 while True: try: log = raw_input() log = log.split(",")[0] if log in dict2: dict2[log] = dict2[log] + 1 else: dict...
s999070412
s555155805
p00065
python
Runtime Error
dict1 = {} dict2 = {} while True: log = raw_input() if len(log) == 0: break log = log.split(",")[0] if log in dict1: dict1[log] = dict1[log] + 1 else: dict1[log] = 1 while True: try: log = raw_input() log = log.split(",")[0] if log in dict2: dict2[log] = dict2[log] + 1 else: dict...
dict1 = {} dict2 = {} while True: log = raw_input() if len(log) == 0: break log = log.split(",")[0] if log in dict1: dict1[log] = dict1[log] + 1 else: dict1[log] = 1 while True: try: log = raw_input() log = log.split(",")[0] if log in dict2: dict2[log] = dict2[log] + 1 else: dict...
s259250933
s555155805
p00065
python
Runtime Error
def doc_string(): """ I can fly. """ while True: h = int(raw_input) * 3600 m = int(raw_input) * 60 s = int(raw_input) time = 120 * 60 - (h + m + s) if h == -1 and m == -1 and s == -1: print "kill" h = str(time / 3600) m = str(time % 3600 / 60) s = str(time % 3600 % 6...
def doc_string(): """ I can fly. """ while True: h,m,s = map(int,raw_input().split()) if h == -1 and m == -1 and s == -1: break h = h * 3600 m = m * 60 time = 120 * 60 - (h + m + s) h = str(time / 3600) m = str(time % 3600 / 60) s = str(time % 3600 % 60) if l...
s686219094
s318852649
p00074
python
Runtime Error
while True: code = raw_input() code = code.replace(",","") code = code.replace(".","") code = code.split() list = [] for var in code: if len(var) >= 3 and len(var) <= 6: list.append(var) for var in list: print var, print ""
code = raw_input() code = code.replace(",","") code = code.replace(".","") code = code.split() list = [] for var in code: if len(var) >= 3 and len(var) <= 6: list.append(var) for var in list: print var,
s312746346
s026430186
p00084
python
Runtime Error
def check(x, y, flag): farm[x][y] = "$" if farm[x + 1][y] != "$" and farm[x + 1][y] == flag : check(x + 1, y, flag) if farm[x - 1][y] != "$" and farm[x - 1][y] == flag : check(x - 1, y, flag) if farm[x][y + 1] != "$" and farm[x][y + 1] == flag : check(x, y + 1, flag) if farm[x][y - 1] != "$" and farm[x][y - 1] == ...
import sys sys.setrecursionlimit(100000) def check(x, y, flag): farm[x][y] = "$" if farm[x + 1][y] == flag : check(x + 1, y, flag) if farm[x - 1][y] == flag : check(x - 1, y, flag) if farm[x][y + 1] == flag : check(x, y + 1, flag) if farm[x][y - 1] == flag : check(x, y - 1, flag) return 1 while True: h,w = map...
s873425394
s486933636
p00118
python
Runtime Error
def check(x, y, flag): farm[x][y] = "$" if farm[x + 1][y] == flag : check(x + 1, y, flag) if farm[x - 1][y] == flag : check(x - 1, y, flag) if farm[x][y + 1] == flag : check(x, y + 1, flag) if farm[x][y - 1] == flag : check(x, y - 1, flag) while True: h,w = map(int, raw_input().split()) if h == 0 and w == 0 : b...
import sys sys.setrecursionlimit(100000) def check(x, y, flag): farm[x][y] = "$" if farm[x + 1][y] == flag : check(x + 1, y, flag) if farm[x - 1][y] == flag : check(x - 1, y, flag) if farm[x][y + 1] == flag : check(x, y + 1, flag) if farm[x][y - 1] == flag : check(x, y - 1, flag) return 1 while True: h,w = map...
s319318407
s486933636
p00118
python
Runtime Error
def check(x, y, flag): farm[x][y] = "$" if farm[x + 1][y] == flag : check(x + 1, y, flag) if farm[x - 1][y] == flag : check(x - 1, y, flag) if farm[x][y + 1] == flag : check(x, y + 1, flag) if farm[x][y - 1] == flag : check(x, y - 1, flag) while True: h,w = map(int, raw_input().split()) if h == 0 and w == 0 : b...
import sys sys.setrecursionlimit(100000) def check(x, y, flag): farm[x][y] = "$" if farm[x + 1][y] == flag : check(x + 1, y, flag) if farm[x - 1][y] == flag : check(x - 1, y, flag) if farm[x][y + 1] == flag : check(x, y + 1, flag) if farm[x][y - 1] == flag : check(x, y - 1, flag) return 1 while True: h,w = map...
s755442666
s486933636
p00118
python
Runtime Error
def check(x, y, flag): farm[x][y] = "$" if farm[x + 1][y] == flag : check(x + 1, y, flag) if farm[x - 1][y] == flag : check(x - 1, y, flag) if farm[x][y + 1] == flag : check(x, y + 1, flag) if farm[x][y - 1] == flag : check(x, y - 1, flag) return 1 while True: h,w = map(int, raw_input().split()) if h == 0 and ...
import sys sys.setrecursionlimit(100000) def check(x, y, flag): farm[x][y] = "$" if farm[x + 1][y] == flag : check(x + 1, y, flag) if farm[x - 1][y] == flag : check(x - 1, y, flag) if farm[x][y + 1] == flag : check(x, y + 1, flag) if farm[x][y - 1] == flag : check(x, y - 1, flag) return 1 while True: h,w = map...
s924102865
s486933636
p00118
python
Runtime Error
import sys sys.setrecursionlimit(10000) def check(x, y, flag): farm[x][y] = "$" if farm[x + 1][y] == flag : check(x + 1, y, flag) if farm[x - 1][y] == flag : check(x - 1, y, flag) if farm[x][y + 1] == flag : check(x, y + 1, flag) if farm[x][y - 1] == flag : check(x, y - 1, flag) return 1 while True: h,w = map(...
import sys sys.setrecursionlimit(100000) def check(x, y, flag): farm[x][y] = "$" if farm[x + 1][y] == flag : check(x + 1, y, flag) if farm[x - 1][y] == flag : check(x - 1, y, flag) if farm[x][y + 1] == flag : check(x, y + 1, flag) if farm[x][y - 1] == flag : check(x, y - 1, flag) return 1 while True: h,w = map...
s773344827
s486933636
p00118
python
Runtime Error
def check(x, y): array[x][y] = "0" if array[x + 1][y] == "1" : check(x + 1, y) if array[x - 1][y] == "1" : check(x - 1, y) if array[x][y + 1] == "1" : check(x, y + 1) if array[x][y - 1] == "1" : check(x, y - 1) if array[x + 1][y + 1] == "1" : check(x + 1, y + 1) if array[x + 1][y - 1] == "1" : check(x + 1, y - 1...
import sys sys.setrecursionlimit(100000) def check(x, y): array[x][y] = "0" if array[x + 1][y] == "1" : check(x + 1, y) if array[x - 1][y] == "1" : check(x - 1, y) if array[x][y + 1] == "1" : check(x, y + 1) if array[x][y - 1] == "1" : check(x, y - 1) if array[x + 1][y + 1] == "1" : check(x + 1, y + 1) if array...
s192600304
s463360153
p00741
python
Runtime Error
import sys sys.setrecursionlimit(100000) def check(x, y): array[x][y] = "0" if array[x + 1][y] == "1" : check(x + 1, y) if array[x - 1][y] == "1" : check(x - 1, y) if array[x][y + 1] == "1" : check(x, y + 1) if array[x][y - 1] == "1" : check(x, y - 1) if array[x + 1][y + 1] == "1" : check(x + 1, y + 1) if array...
import sys sys.setrecursionlimit(100000) def check(x, y): array[x][y] = "0" if array[x + 1][y] == "1" : check(x + 1, y) if array[x - 1][y] == "1" : check(x - 1, y) if array[x][y + 1] == "1" : check(x, y + 1) if array[x][y - 1] == "1" : check(x, y - 1) if array[x + 1][y + 1] == "1" : check(x + 1, y + 1) if array...
s204116606
s463360153
p00741
python
Runtime Error
import sys sys.setrecursionlimit(1000000) def check(x, y): array[x][y] = "0" if array[x + 1][y] == "1" : check(x + 1, y) if array[x - 1][y] == "1" : check(x - 1, y) if array[x][y + 1] == "1" : check(x, y + 1) if array[x][y - 1] == "1" : check(x, y - 1) if array[x + 1][y + 1] == "1" : check(x + 1, y + 1) if arra...
import sys sys.setrecursionlimit(100000) def check(x, y): array[x][y] = "0" if array[x + 1][y] == "1" : check(x + 1, y) if array[x - 1][y] == "1" : check(x - 1, y) if array[x][y + 1] == "1" : check(x, y + 1) if array[x][y - 1] == "1" : check(x, y - 1) if array[x + 1][y + 1] == "1" : check(x + 1, y + 1) if array...
s853417183
s463360153
p00741
python
Runtime Error
import sys sys.setrecursionlimit(10000000) def check(x, y): array[x][y] = "0" if array[x + 1][y] == "1" : check(x + 1, y) if array[x - 1][y] == "1" : check(x - 1, y) if array[x][y + 1] == "1" : check(x, y + 1) if array[x][y - 1] == "1" : check(x, y - 1) if array[x + 1][y + 1] == "1" : check(x + 1, y + 1) if arr...
import sys sys.setrecursionlimit(100000) def check(x, y): array[x][y] = "0" if array[x + 1][y] == "1" : check(x + 1, y) if array[x - 1][y] == "1" : check(x - 1, y) if array[x][y + 1] == "1" : check(x, y + 1) if array[x][y - 1] == "1" : check(x, y - 1) if array[x + 1][y + 1] == "1" : check(x + 1, y + 1) if array...
s542809058
s463360153
p00741
python
Runtime Error
import sys sys.setrecursionlimit(100000000) def check(x, y): array[x][y] = "0" if array[x + 1][y] == "1" : check(x + 1, y) if array[x - 1][y] == "1" : check(x - 1, y) if array[x][y + 1] == "1" : check(x, y + 1) if array[x][y - 1] == "1" : check(x, y - 1) if array[x + 1][y + 1] == "1" : check(x + 1, y + 1) if ar...
import sys sys.setrecursionlimit(100000) def check(x, y): array[x][y] = "0" if array[x + 1][y] == "1" : check(x + 1, y) if array[x - 1][y] == "1" : check(x - 1, y) if array[x][y + 1] == "1" : check(x, y + 1) if array[x][y - 1] == "1" : check(x, y - 1) if array[x + 1][y + 1] == "1" : check(x + 1, y + 1) if array...
s077531170
s463360153
p00741
python
Runtime Error
import sys sys.setrecursionlimit(1000000000) def check(x, y): array[x][y] = "0" if array[x + 1][y] == "1" : check(x + 1, y) if array[x - 1][y] == "1" : check(x - 1, y) if array[x][y + 1] == "1" : check(x, y + 1) if array[x][y - 1] == "1" : check(x, y - 1) if array[x + 1][y + 1] == "1" : check(x + 1, y + 1) if a...
import sys sys.setrecursionlimit(100000) def check(x, y): array[x][y] = "0" if array[x + 1][y] == "1" : check(x + 1, y) if array[x - 1][y] == "1" : check(x - 1, y) if array[x][y + 1] == "1" : check(x, y + 1) if array[x][y - 1] == "1" : check(x, y - 1) if array[x + 1][y + 1] == "1" : check(x + 1, y + 1) if array...
s596000402
s463360153
p00741
python
Runtime Error
import sys sys.setrecursionlimit(1000000000000) def check(x, y): array[x][y] = "0" if array[x + 1][y] == "1" : check(x + 1, y) if array[x - 1][y] == "1" : check(x - 1, y) if array[x][y + 1] == "1" : check(x, y + 1) if array[x][y - 1] == "1" : check(x, y - 1) if array[x + 1][y + 1] == "1" : check(x + 1, y + 1) i...
import sys sys.setrecursionlimit(100000) def check(x, y): array[x][y] = "0" if array[x + 1][y] == "1" : check(x + 1, y) if array[x - 1][y] == "1" : check(x - 1, y) if array[x][y + 1] == "1" : check(x, y + 1) if array[x][y - 1] == "1" : check(x, y - 1) if array[x + 1][y + 1] == "1" : check(x + 1, y + 1) if array...
s814757686
s463360153
p00741
python
Runtime Error
def check(x, y): array[x][y] = "0" if array[x + 1][y] == "1" : check(x + 1, y) if array[x - 1][y] == "1" : check(x - 1, y) if array[x][y + 1] == "1" : check(x, y + 1) if array[x][y - 1] == "1" : check(x, y - 1) if array[x + 1][y + 1] == "1" : check(x + 1, y + 1) if array[x + 1][y - 1] == "1" : check(x + 1, y - 1...
import sys sys.setrecursionlimit(100000) def check(x, y): array[x][y] = "0" if array[x + 1][y] == "1" : check(x + 1, y) if array[x - 1][y] == "1" : check(x - 1, y) if array[x][y + 1] == "1" : check(x, y + 1) if array[x][y - 1] == "1" : check(x, y - 1) if array[x + 1][y + 1] == "1" : check(x + 1, y + 1) if array...
s804376353
s463360153
p00741
python
Runtime Error
import sys sys.setrecursionlimit(10000000) def check(x, y): array[x][y] = "0" if array[x + 1][y] == "1" : check(x + 1, y) if array[x - 1][y] == "1" : check(x - 1, y) if array[x][y + 1] == "1" : check(x, y + 1) if array[x][y - 1] == "1" : check(x, y - 1) if array[x + 1][y + 1] == "1" : check(x + 1, y + 1) if arr...
import sys sys.setrecursionlimit(100000) def check(x, y): array[x][y] = "0" if array[x + 1][y] == "1" : check(x + 1, y) if array[x - 1][y] == "1" : check(x - 1, y) if array[x][y + 1] == "1" : check(x, y + 1) if array[x][y - 1] == "1" : check(x, y - 1) if array[x + 1][y + 1] == "1" : check(x + 1, y + 1) if array...
s093489680
s463360153
p00741
python
Runtime Error
l = [[], [], []] ans = [] for i in range(3): for j in range(8): s = raw_input().split() l[i].append(float(s[1]), int(s[0])) for i in range(3): l[i].sort() l[i].reverse() ans.append(l[i].pop(0)) ans.append(l[i].pop(0)) l = l[0] + l[1] + [2] l.sort() l.reverse() ans.append(l.pop(0)) ans.append(l.pop(0))...
l = [[], [], []] ans = [] for i in range(3): for j in range(8): s = raw_input().split() l[i].append([float(s[1]), int(s[0])]) for i in range(3): l[i].sort() ans.append(l[i].pop(0)) ans.append(l[i].pop(0)) l = l[0] + l[1] + l[2] l.sort() ans.append(l.pop(0)) ans.append(l.pop(0)) for n in ans: print str...
s832415639
s549811190
p00138
python
Runtime Error
n = int)input()) xs = [] for i in range(n): xs.append(input()) m = int(input()) flag = 1 for i in range(m): s = input() if s in l: print("Opened" if flag == 1 else "Closed", "by", s) flag ^= 1 else: print("Unknown", s)
n = int(input()) xs = [] for i in range(n): xs.append(input()) m = int(input()) flag = 1 for i in range(m): s = input() if s in xs: print("Opened" if flag == 1 else "Closed", "by", s) flag ^= 1 else: print("Unknown", s)
s687964027
s096565138
p01554
python
Runtime Error
n = int)input()) xs = [] for i in range(n): xs.append(input()) m = int(input()) flag = 1 for i in range(m): s = input() if s in xs: print("Opened" if flag == 1 else "Closed", "by", s) flag ^= 1 else: print("Unknown", s)
n = int(input()) xs = [] for i in range(n): xs.append(input()) m = int(input()) flag = 1 for i in range(m): s = input() if s in xs: print("Opened" if flag == 1 else "Closed", "by", s) flag ^= 1 else: print("Unknown", s)
s808999802
s096565138
p01554
python
Runtime Error
list = [] for i in range(10): hill = int(input()) list.append(hill) sorted(list) h1 = a[9] h2 = a[8] h3 = a[7] print(h1) print(h2) print(h3)
array = [] for i in range(10): num = int(input()) array.append(num) list = sorted(array) print(list[9]) print(list[8]) print(list[7])
s795603556
s900917627
p00001
python
Runtime Error
def main(): number = [] for i in range(10): num = int(input()) number.append(num) numbers = number.sorted(number) print(numbers[9]) print(numbers[8]) print(numbers[7]) if __name__=='__main__': main()
array = [] for i in range(10): num = int(input()) array.append(num) list = sorted(array) print(list[9]) print(list[8]) print(list[7])
s112626230
s900917627
p00001
python
Runtime Error
import math while True: try: num = input().split(" ") num1 = int(num[0]) num2 = int(num[1]) sum_number = num1 + num2 ans = int(math.log10(sum_number) + 1) print(ans) except: break
import math while True: try: num1, num2 = map(int, input().split()) sum_number = num1 + num2 ans = int(math.log10(sum_number) + 1) print(ans) except: break
s598649492
s196398000
p00002
python
Runtime Error
def main(): numbers = input().split() a, b = map(int, numbers) d = a // b r = a % b f = a / b if d == 1: print(d) else: print('{0} {1} {2}'.format(d, r, f)) if __name__=="__main__": main()
def main(): numbers = input().split() a, b, c = map(int, numbers) a_to_b = list(range(a, b + 1)) #a to b result = [x for x in a_to_b if c % x == 0] #約数検索 count = int(len(result)) print(count) if __name__=="__main__": main()
s275309756
s396694659
p02398
python
Runtime Error
def main(): numbers = input().split() a, b = map(int, numbers) d = a // b r = a % b f = a / b if d == 1: print(d) else: print('{0} {1} {2}'.format(d, r, f)) if __name__=="__main__": main()
def main(): numbers = input().split() a, b, c = map(int, numbers) a_to_b = list(range(a, b + 1)) #a to b result = [x for x in a_to_b if c % x == 0] #約数検索 count = int(len(result)) print(count) if __name__=="__main__": main()
s046927744
s396694659
p02398
python
Runtime Error
num = [] while True: l = map(int, raw_input().split()) if l[0] == l[1] == l[2] == -1: break sum = l[0] + l[1] if sum >= 80: num.append("A") elif sum >= 65: num.append("B") elif sum >= 50: num.append("C") elif sum >= 30: if l[2] >= 50: num.append("C") else :...
num = [] while True: l = map(int, raw_input().split()) if l[0] == l[1] == l[2] == -1: break if l[0]*l[1] < 0: num.append("F") else: sum = l[0] + l[1] if sum >= 80: num.append("A") elif sum >= 65: num.append("B") elif sum >= 50: ...
s913814672
s010221213
p02411
python
Runtime Error
n = int(input()) s = m = int(input()) for i in range(n): in_car, out_car = map(int, input().split()) m += in_car - out_car if m < 0: s = 0 break else: s = max(s, m) print(s)
n = int(input()) s = m = int(input()) for i in range(n): in_car, out_car = map(int, input().split()) m += in_car - out_car if m < 0: s = 0 break else: s = max(s, m) print(s)
s014486991
s998180162
p00510
python
Runtime Error
x = input() str_list = list(x) dict_ = { } for a in str_list: if ord(a) - 3 < 65: print(chr(90 - 65 - ord(a) - 3) ,end = "") else: print(chr(ord(a) - 3) ,end = "") print()
x = input() str_list = list(x) dict_ = { "D":"A", "E":"B", "F":"C", "G":"D", "H":"E", "I":"F", "J":"G", "K":"H", "L":"I", "M":"J", "N":"K", "O":"L", "P":"M", "Q":"N", "R":"O", "S":"P", "T":"Q", "U":"R", "V":"S", "W":"T", "X":"U", "Y":"V", "Z":"W", "A":"X", "B":"Y", "C":"Z" } for a in str_list: print(dict_...
s079789536
s971614031
p00435
python
Runtime Error
import math val = str(input()).split() numList = list(map(int, list(val))) print(math.sqrt(((numList[2]-numList[0]) ** 2) + ((numList[3]-numList[1]) ** 2)))
import math val = str(input()).split() numList = list(map(float, list(val))) print(math.sqrt(((numList[2]-numList[0]) ** 2) + ((numList[3]-numList[1]) ** 2)))
s792153449
s325768130
p02379
python
Runtime Error
import math val = str(input()).split() numList = list(map(int, list(val))) print(math.sqrt(((numList[2]-numList[0]) ** 2) + ((numList[3]-numList[1]) ** 2)))
import math val = str(input()).split() numList = list(map(float, list(val))) print(math.sqrt(((numList[2]-numList[0]) ** 2) + ((numList[3]-numList[1]) ** 2)))
s531950533
s325768130
p02379
python
Runtime Error
n = int(input()) for i in range(0, n) : a, b = list(map(int, input().split())) sum = a + b if str(sum).length() > 80 : print("overflow") else : print(sum)
n = int(input()) for i in range(0, n) : a = int(input()) b = int(input()) sum = a + b if len(str(sum)) > 80 : print("overflow") else : print(sum)
s973864594
s601923873
p00015
python
Runtime Error
import math def pi(n): m = int(math.sqrt(n)) keys = [n / i for i in range(1, m + 1)] keys += range(keys[-1] - 1, 0, -1) h = {i : i - 1 for i in keys} for i in range(2, m + 1): if h[i] > h[i - 1]: hp = h[i - 1] i2 = i * i for j in keys: if ...
import math import sys def pi(n): m = int(math.sqrt(n)) keys = [n / i for i in range(1, m + 1)] keys += range(keys[-1] - 1, 0, -1) h = {i : i - 1 for i in keys} for i in range(2, m + 1): if h[i] > h[i - 1]: hp = h[i - 1] i2 = i * i for j in keys: ...
s570103225
s990827278
p00009
python
Runtime Error
while 1: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp):#????????¢?????? for j in range(0,temp):#????????¢?????? a[i][temp] += a[i][j] for k in range(0,temp+1):#????????...
import sys try: while 1: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp): for j in range(0,temp): a[i][temp] += a[i][j] for k in range(0,temp+1): for l in rang...
s413494434
s420115077
p00102
python
Runtime Error
import sys while 1: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp):#行に関して for j in range(0,temp):#列に関して a[i][temp] += a[i][j] for k in range(0,temp+1):#列に関して for l in ...
import sys try: while 1: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp): for j in range(0,temp): a[i][temp] += a[i][j] for k in range(0,temp+1): for l in rang...
s002759662
s420115077
p00102
python
Runtime Error
import sys while 1: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp):#行に関して for j in range(0,temp):#列に関して a[i][temp] += a[i][j] for k in...
import sys try: while 1: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp): for j in range(0,temp): a[i][temp] += a[i][j] for k in range(0,temp+1): for l in rang...
s897981281
s420115077
p00102
python
Runtime Error
import sys while 1: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp):#行に関して for j in range(0,temp):#列に関して a[i][temp] += a[i][j] for k in...
import sys try: while 1: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp): for j in range(0,temp): a[i][temp] += a[i][j] for k in range(0,temp+1): for l in rang...
s176487845
s420115077
p00102
python
Runtime Error
import sys while 1: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp):#行に関して for j in range(0,temp):#列に関して a[i][temp] += a[i][j] for k in...
import sys try: while 1: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp): for j in range(0,temp): a[i][temp] += a[i][j] for k in range(0,temp+1): for l in rang...
s007741269
s420115077
p00102
python
Runtime Error
import sys while 1: try: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp):#????????¢?????? for j in range(0,temp):#????????¢?????? a[i][temp] += a[i][j] for k in...
import sys try: while 1: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp): for j in range(0,temp): a[i][temp] += a[i][j] for k in range(0,temp+1): for l in rang...
s277924191
s420115077
p00102
python
Runtime Error
import sys while 1: try: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp):#行に関して for j in range(0,temp):#列に関して a[i][temp] += a[i][j] ...
import sys try: while 1: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp): for j in range(0,temp): a[i][temp] += a[i][j] for k in range(0,temp+1): for l in rang...
s565998126
s420115077
p00102
python
Runtime Error
import sys while 1: try: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp):#行に関して for j in range(0,temp):#列に関して a[i][temp] += a[i][j] for k in range(0,temp+1):#列に...
import sys try: while 1: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp): for j in range(0,temp): a[i][temp] += a[i][j] for k in range(0,temp+1): for l in rang...
s380667688
s420115077
p00102
python
Runtime Error
import sys while 1: try: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp):#行に関して ...
import sys try: while 1: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp): for j in range(0,temp): a[i][temp] += a[i][j] for k in range(0,temp+1): for l in rang...
s869435598
s420115077
p00102
python
Runtime Error
import sys while 1: try: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp):#行に関して for j in range...
import sys try: while 1: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp): for j in range(0,temp): a[i][temp] += a[i][j] for k in range(0,temp+1): for l in rang...
s717286997
s420115077
p00102
python
Runtime Error
import sys while 1: try: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp):#????????¢?????? for ...
import sys try: while 1: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp): for j in range(0,temp): a[i][temp] += a[i][j] for k in range(0,temp+1): for l in rang...
s013102266
s420115077
p00102
python
Runtime Error
import sys while 1: try: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp):#????????¢?????? for ...
import sys try: while 1: temp = input() if (temp==0): break N = temp a = [] for i in range(N): a.append(map(int, raw_input().split())+[0]) a.append([0 for i in range(0,temp+1)]) for i in range(0,temp): for j in range(0,temp): a[i][temp] += a[i][j] for k in range(0,temp+1): for l in rang...
s962651164
s420115077
p00102
python
Runtime Error