A - 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.
#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; }