Light OJ Solution 1294 - Positive Negative Sign

Solve in C:

#include <bits/stdc++.h>
using namespace std;
int main()
{

    long long int i,a,r,n,m;
    scanf("%d",&a);
    for(i=1;i<=a;i++)
    {
        scanf("%lld%lld",&n,&m);
        r=(n*m)/2;
        printf("Case %lld: %lld\n",i,r);;
    }


}

No comments

Most View Post

Recent post

Codeforces Round 925 (Div. 3) 1931D. Divisible Pairs Solution

    Problem Link  :   https://codeforces.com/contest/1931/problem/D S olution in C++: /// Author : AH_Tonmoy #include < bits / stdc ++. ...

Powered by Blogger.