Friday, April 4, 2014

UVa Solution 11044 - Searching for Nessy


#include<iostream>
#include<cstdio>
using namespace std;

int main()
{
    int test, n, m;
    scanf("%d", &test);
    while(test--)
    {
        scanf("%d%d",&n, &m);
        printf("%d\n", (n/3)*(m/3));
    }
    return 0;
}

No comments:

Post a Comment

Compare equality of two string in C

#include <stdio.h> #include<string.h> int main() {     char* country = "Bangladesh";     char* country2;     ...