Uva 11044 – Searching for Nessy

Problem:- http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=1985

Solution :-

#include<stdio.h>
 int main()
 {
    int t,n,m;
   scanf(“%d”,&t);
   while(t–)
   {
      scanf(“%d %d”,&n,&m);
      printf(“%dn”,(n/3)*(m/3));
    }
 }
At First you can try to solve this problem if you can’t than see this code & find what’s your problem . If you copy paste this code you could not improve yourself in programming .

Posted by Shipu Ahamed

Leave a Reply