Help me in solving CCHOCOLATES problem

My issue

can you help me to correct this code

My code

T=int(input())
for i in range(T):
  X=int(input())
  Y=int(input())
  Z=int(input())
  total=5*X+10*Y
  c=int(total/Z)
  print(c)

Problem Link: Chef and Chocolates Practice Coding Problem - CodeChef

X, Y and Z are given in the same line of input

T=int(input())
for i in range(T):
    X,Y,Z = [int(_) for _ in input().split()]
    total=5*X+10*Y
    c=int(total//Z)
    print(c)
1 Like

Hi Shivang, I am trying to solve below problem for a month.
Please provide hints for this question.

Bruce Saves Water