Summer Individualt- 18 - A - Window

朋友Anas的窗户被顽皮的孩子打破,更换时尺寸被错误地颠倒。本篇介绍了一个简单的程序,用于计算长宽颠倒后的窗户面积。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

A - Window

 Gym - 101020A

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.

#include<bits/stdc++.h>
using namespace std;
int main()
{
    long long  t,n,m;
    cin>>t;
    while(t--)
    {
        cin>>n>>m;
        cout<<n*m<<endl;
    }
    return 0;
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值