Window

"Anas" is a good citizen lives in "Lateria". Lateria is a city full of naughty children, you can not sleep, eat nor relax! -poor Anas-. Anas is my friend and knows that I can get your help in solving problems so he asked me for this favor and I will not say no, here is Anas's problem: One of Lateria children broke Anas's rectangular window, Anas knew that naughty child and asked his parents to replace the broken window, and gave them the length and width of the broken window (X and Y in order), when the child's parent brought him the new one, he discovered that he told them the dimensions reversed Y X instead of X Y, what a bad luck! Now he asks you to tell him the area of the new window with the reversed dimensions!! eg: Anas will give you the dimensions X Y you should tell him the area formed by the rectangular window with dimensions Y X.

Input

the first line of input is an integer 0 < T < 100 then T lines, each line is a test case contains two integers 1  ≤  X,Y  ≤  100000 in order separated by a single space.

Output

for each test case, print one line contains a single integer represent the the rectangle area of dimensions Y and X.

Examples

Input

3
5 4
1 2
33 33

Output

20
2
1089

AC代码(水)

 

Select Code

#include <iostream>
#include <bits/stdc++.h>
using namespace std;

int main()
{
    int t;
    long long x, y;
    while(scanf("%d",&t)!=EOF)
    {
        while(t--)
        {
            scanf("%lld %lld",&x, &y);
        printf("%lld\n",x*y);
        }
    }
    return 0;
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值