Help me in solving SLOWSOLN problem

My issue

My code

# cook your dish here
import math
size=int(input())
for _ in range(size):
            x,y,z=map(int,input().split())
            

Problem Link: SLOWSOLN Problem - CodeChef