from decimal import *
myothercontext = Context(prec=200, rounding=ROUND_HALF_DOWN)
setcontext(myothercontext)
######1
for _ in range(int(input())):
    x1=999999999999999999999999999999999999
    k=0
    X3=input().split()
    for x in range(4):
        X3[x]=int(Decimal(X3[x])*Decimal(str(10**11)))
######2
for _ in range(int(input())):
    x1=999999999999999999999999999999999999
    k=0
    X3=list(map(float,input().split()))
    for x in range(4):
        X3[x]=int(Decimal(str(X3[x]))*Decimal(str(10**11)))

이거 1번이랑 2번이랑 무슨 차이가 있길래 다르게 나오는 경우가 있음??  입력 2->1로 바꾸니까 답 맞길래 뭔가 차이가 있는건 알겠는데 어떨 때 생기는지는 모르겠음 예시 들어줄 수 있나..