PROBLEM LINK:
Author: Akash Kumar Bhagat
Tester: Arnab Chanda
Editorialist: Akash Kumar Bhagat
DIFFICULTY:
Cakewalk
EXPLANATION:
Given the row R and column C of the assembly, one has to return the number of Students present.
Answer=R*C
SOLUTIONS:
Python 3.7
for i in range(int(input())):
r,c=map(int,input().split())
print(r*c)
C++
#include <bits/stdc++.h>
using namespace std;
#define ios ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define lop ios; ll t; cin>>t; while(t--)
#define pb push_back
#define vi vector<ll>
#define vivi vector<vector<ll>>
#define vipa vector<pair<ll,ll>>
#define F first
#define S second
#define M 1000000007
#define kl "\n"
typedef long long ll;
ll lcm(ll x, ll y){ll k=x*y; k/=(__gcd(x,y)); return k;}
ll power(ll x,ll y){ ll r= 1;x = x % M;if(x==0) return 0; while(y>0) {if(y&1) r=(r*x)%M; y=y>>1; x=(x*x)%M;} return r;}
void solve()
{
ll r,c;
cin>>r>>c;
cout<<(r*c)<<kl;
}
int main()
{
lop
solve();
return 0;
}
JAVA
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
try{
Scanner sc = new Scanner(System.in);
int t= sc.nextInt();
while(t-->0)
{
long r=sc.nextLong();
long c=sc.nextLong();
long ans=r*c;
System.out.println(ans);
}
}
catch(java.lang.Exception e){}
}
}