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 971 (Div. 4) 2009C. The Legend of Freya the Frog Solution

  Problem Link    https://codeforces.com/contest/2009/problem/C S olution in C++: /// Author : AH_Tonmoy #include < bits / stdc ++. h &g...

Powered by Blogger.