Problem p03494 (python)

Fixed submission:
N = int(input())
B = False
kaisu = 0
array = list(map(int,input().split()))

def calc(n):
  return int(n) / 2
  
  
while not B:
  for i in range(N):
    if array[i] % 2 == 1:
      B = True
  if not B:
    array = list(map(calc, array))
    kaisu += 1
  else:
    break
        
print(kaisu)

Buggy submission (verdict: Runtime Error):
N = input()
B = False
kaisu = 0
array = list(map(int,input().split()))

def calc(n):
  return int(n) / 2
  
  
while not B:
  for i in range(N):
    if array[i]/2 == 1:
      B = True
  if not B:
    array = map(calc, array)
    kaisu += 1
  else:
    break
        
print(kaisu)

Buggy submission (verdict: Runtime Error):
import matplotlib
import matplotlib.pyplot as plt
import numpy as np

N = input()
B = False
kaisu = 0
array = map(int,input().split())

def calc(n):
  return int(n) / 2
  
  
while not B:
  for i in range(N):
    if array[i]/2 == 1:
      B = True
  if not B:
    array = map(calc, array)
    kaisu += 1
  else:
    break
        
print(kaisu)

Buggy submission (verdict: Runtime Error):
N = input()
B = False
kaisu = 0
array = map(int,input().split())

def calc(n):
  retuen n/2
  
  
while !B:
	for i in range(N):
  		if array[i]/2 == 1:
    		B = True
  	if !B:
    	array = map(calc, array)
    	kaisu += 1
  	else:
    	break
        
print(kaisu)

Buggy submission (verdict: Runtime Error):
N = input()
B = False
kaisu = 0
array = map(int,input().split())

def calc(n):
  retuen n/2
  
  
while !B:
	for i in range(N):
  		if array[i]/2 == 1:
    		B = True
  	if B == False:
    	array = map(calc, array)
    	kaisu += 1
  	else:
    	break
        
print(kaisu)

Buggy submission (verdict: Runtime Error):
N = input()
B = False
kaisu = 0
array = map(int,input().split())

def calc(n):
  retuen n/2
  
  
while B:
	for i in range(N):
  		if array[i]/2 == 1:
    	B = True
  	if B == False:
    	array = map(calc ,array)
    	kaisu += 1
  	else:
    	break
        
print(kaisu)

Buggy submission (verdict: Runtime Error):
N = input()
B = False
kaisu = 0
array = map(int,input().split())
while B:
	for i in range(N):
  		if array[i]/2 == 1:
    	B = True
  	if B == False:
    	array = map(calc ,array)
    	kaisu += 1
  	else:
    	break
        
print(kaisu)

def calc(n):
  retuen n/2

Buggy submission (verdict: Runtime Error):
N = input()
B = False
kaisu = 0
array = map(int,input().split())
while !B:
	for i in range(N):
  		if array[i]/2 == 1:
    	B = True
  	if B == False:
    	array = map(calc ,array)
    	kaisu++
  	else:
    	break
        
print(kaisu)

def calc(n):
  retuen n/2

Buggy submission (verdict: Runtime Error):
N = input()
B = False
kaisu = 0
array[] = map(int,input().split())
while !B:
	for i in range(N):
  		if array[i]/2 == 1:
    	B = True
  	if B == False:
    	array = map(calc ,array)
    	kaisu++
  	else:
    	break
        
print(kaisu)

def calc(n):
  retuen n/2

Buggy submission (verdict: Runtime Error):
N = input()
B = False
kaisu = 0
array[] = map(int,input().split())
while !B:
	for i in range(N):
  		if array[i]/2 == 1:
    	B = True
  	if B == False:
    	array[] = map(calc ,array[])
    	kaisu++
  	else:
    	break
        
print(kaisu)

def calc(n):
  retuen n/2

Buggy submission (verdict: Runtime Error):
N = input()
B = False
kaisu = 0
array[] = map(int,input().split())
while !B:
	for i in range(N):
  		if array[i]/2 == 1:
    	B = True
  	if B == False:
    	array[] = map(calc ,array[])
    	kaisu++
  	else:
    	break
        
print(kaisu)