FEB LONG THEATRE

import numpy as np
t=int(input())
prof=0
for _ in range(t):
n=int(input())
theatre=np.zeros((4,4))
for __ in range(n):
movie,show= input().split()
show=int(show)
theatre[ord(movie)-65][(show//3)-1]=theatre[ord(movie)-65][(show//3)-1]+1
sum=0
k=100
for i in range(4):
res=np.where(theatre == np.amax(theatre))
#print(res[0],res[1])
m=theatre[res[0][0]][res[1][0]]
if m!=0:
sum=sum+int(m)*(k)
k=k-25
elif m==0:
sum=sum-100
theatre=np.delete(theatre,res[0][0], 0)
theatre=np.delete(theatre,res[1][0], 1)
print(sum)
prof=prof+sum
print(prof)

can anyone help, im getting WA for Subtask2

Firstly, Format your code., otherwise it’s not possible to debug your code.