Problem p03035 (python)

Fixed submission:
import numpy as np
from sys import stdin
#sys.setrecursionlimit(10**6) 

def main():
    a, b = [int(x) for x in stdin.readline().rstrip().split()]
    if 6 <= a and a <= 12:
        v = b//2
    elif a <= 5:
        v = 0
    else:
        v = b
    print(v)

if __name__ == "__main__":
    main()

Buggy submission (verdict: Runtime Error):
import numpy as np
from sys import stdin

def main():
    nm = [int(x) for x in stdin.readline().rstrip().split()]
    gate = np.full([nm[1], nm[0]], False)
    
    for i in range(nm[1]):
        g = [int(x) for x in stdin.readline().rstrip().split()]
        for k in range(g[0]-1, g[1]):
            gate[i,k] = True

    count = 0
    for i in range(len(gate[0])):
        tmp = gate[:, i]
        if tmp.all():
            count += 1
        
    print(count)

if __name__ == "__main__":
    main()

Buggy submission (verdict: Runtime Error):
from sys import stdin
import numpy as np

def main(args):
    r = int(args[0])
    d = int(args[1])
    x = int(args[2])
    ar = np.zeros([10], dtype=int)

    ar[0] = r*x-d
    for i in range(1,len(ar)):
        ar[i] = r*ar[i-1]-d

    for i in ar:
        print(i)

if __name__ == "__main__":
    main(stdin.readline().rstrip().split())

Buggy submission (verdict: Runtime Error):
from sys import stdin
import numpy as np

def main(args):
    r = args[0]
    d = args[1]
    x = args[2]
    ar = np.zeros([10], dtype=int)

    ar[0] = r*x-d
    for i in range(1,len(ar)):
        ar[i] = r*ar[i-1]-d

    for i in ar:
        print(i)

if __name__ == "__main__":
    main([int(x) for x in stdin.readline().rstrip().split()])

Buggy submission (verdict: Runtime Error):
from sys import stdin
import numpy as np

def main(args):
    r = args[0]
    d = args[1]
    x = args[2]
    ar = np.zeros([10], dtype=int)

    ar[0] = r*x-d
    for i in range(1,len(ar)):
        ar[i] = r*ar[i-1]-d

    for i in ar:
        print(i)

if __name__ == "__main__":
    main([int(x) for x in stdin.readline().rstrip().split()])

Buggy submission (verdict: Runtime Error):
from sys import stdin 

def main(args):
    a, b = [int(x) for x in stdin.readline().rstrip().split()]
    if 6 <= a and a <= 12:
        v = b//2
    elif a <= 5:
        v = 0
    else:
        v = b
    print(v)

main()

Buggy submission (verdict: Runtime Error):
import numpy as np
from sys import stdin
sys.setrecursionlimit(10**6) 

def main(args):
    a, b = [int(x) for x in stdin.readline().rstrip().split()]
    if 6 <= a and a <= 12:
        v = b//2
    elif a <= 5:
        v = 0
    else:
        v = b
    print(v)

main()

Buggy submission (verdict: Runtime Error):
import numpy as np
from sys import stdin
sys.setrecursionlimit(10**6) 

def main(args):
    a = args[0]
    b = args[1]
    if 6 <= a and a <= 12:
        v = b//2
    elif a <= 5:
        v = 0
    else:
        v = b
    print(v)

main([stdin.readline().rstrip().split()])

Buggy submission (verdict: Runtime Error):
import numpy as np
from sys import stdin
sys.setrecursionlimit(10**6) 

def main(args):
    a = args[0]
    b = args[1]
    if 6 <= a and a <= 12:
        v = b//2
    elif a <= 5:
        v = 0
    else:
        v = b
    print(v)

main([int(x) for x in stdin.readline().rstrip().split()])

Buggy submission (verdict: Runtime Error):
import numpy as np
from sys import stdin
sys.setrecursionlimit(10**6) 

def main(args):
    a = args[0]
    b = args[1]
    if 6 <= a and a <= 12:
        v = b//2
    elif a <= 5:
        v = 0
    else:
        v = b
    print(v)

main([int(x) for x in stdin.readline().rstrip().split())

Buggy submission (verdict: Runtime Error):
import numpy as np
from sys import stdin
sys.setrecursionlimit(10**6) 

def main(args):
    a = int(args[0])
    b = int(args[1])
    if 6 <= a and a <= 12:
        v = b//2
    elif a <= 5:
        v = 0
    else:
        v = b
    print(v)

main(stdin.readline().rstrip().split())

Buggy submission (verdict: Runtime Error):
import numpy as np
from sys import stdin
sys.setrecursionlimit(10**6) 

def main(args):
    a = int(args[0])
    b = int(args[1])
    if 6 <= a and a <= 12:
        v = b//2
    elif a <= 5:
        v = 0
    else:
        v = b
    print(v)

main(stdin.readline().rstrip().split(" "))

Buggy submission (verdict: Runtime Error):
import numpy as np
from sys import stdin
sys.setrecursionlimit(10**6) 

def main(args):
    a = int(args[0])
    b = int(args[1])
    if 6 <= a and a <= 12:
        v = b//2
    elif a <= 5:
        v = 0
    else:
        v = b
    print(v)

main(stdin.readline().split(" "))

Buggy submission (verdict: Runtime Error):
import numpy as np
import sys
sys.setrecursionlimit(10**6) 

def main(args):
    a = int(args[0])
    b = int(args[1])
    if 6 <= a and a <= 12:
        v = b//2
    elif a <= 5:
        v = 0
    else:
        v = b
    print(v)

main(sys.argv[1:3])

Buggy submission (verdict: Runtime Error):
import numpy as np
import sys

def main(args):
    a = int(args[0])
    b = int(args[1])
    if 6 <= a and a <= 12:
        v = b//2
    elif a <= 5:
        v = 0
    else:
        v = b
    print(v)

main(sys.argv[1:3])

Buggy submission (verdict: Runtime Error):
import numpy as np
import sys

def main(args):
    a = int(args[0])
    b = int(args[1])
    if 6 <= a and a <= 12:
        v = b//2
    elif a <= 5:
        v = 0
    else:
        v = b
    print(v)

if __name__ == "__main__":
    main(sys.argv[0:2])

Buggy submission (verdict: Runtime Error):
import numpy as np
import sys

def main(args):
    a = int(args[0])
    b = int(args[1])
    if 6 <= a and a <= 12:
        v = b//2
    elif a <= 5:
        v = 0
    else:
        v = b
    print(v)

if __name__ == "__main__":
    main(sys.argv[1:3])