Skip to content

Instantly share code, notes, and snippets.

@abidkhan484
Created January 21, 2019 09:32
Show Gist options
  • Select an option

  • Save abidkhan484/5175c0c5c97320ee39262153e15d023a to your computer and use it in GitHub Desktop.

Select an option

Save abidkhan484/5175c0c5c97320ee39262153e15d023a to your computer and use it in GitHub Desktop.
for _ in range(int(input().strip())):
total = 0
for __ in range(int(input().strip())):
a,b,c = map(int,input().split())
total += (a*c)
print(total)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment