CodechefJul 11, 2025

Biryani classes

Hazrat Ali

Codechef

According to a recent survey, Biryani is the most ordered food. Chef wants to learn how to make world-class Biryani from a MasterChef. Chef will be required to attend the MasterChef's classes for X weeks, and the cost of classes per week is YY coins. What is the total amount of money that Chef will have to pay?

Input Format

  • The first line of input will contain an integer T — the number of test cases. The description of TT test cases follows.
  • The first and only line of each test case contains two space-separated integers X and Y, as described in the problem statement.

Output Format

For each test case, output on a new line the total amount of money that Chef will have to pay.

Constraints

  • 1≤T≤10
  • 1≤X,Y≤100

Sample 1:

Input
4
1 10
1 15
2 10
2 15

Output
 
10
15
20
30

Solution

cases = int(input())
x = []
y = []

for _ in range(cases):
    a, b = map(int, input().split())
    x.append(a)
    y.append(b)

for i in range(cases):
    print(x[i] * y[i])




Comments

Biryani classes