I would like to know why my code didnt work for FFL
for _ in range(int(input())):
for i in range(len(r)):
n could be 1 also
if there is only one value or one type of player then this code will give WA
Your error is to enclose this whole thing in a
try-except block. When one of the arrays
forw is empty, your code will go into the
except block ( as min of an empty array is not defined ) instead and not print anything.
print("no") to your except block should give correct answer.
Thank you @psaini72 and @tannatsri.
Now Ive learned to use list properly. This mistake plummeted my rating. I’ll be back for sure.