Month: October 2012

Uva 11650 – Mirror Clock

Problem Link

Solution :-

 

Posted by Shipu Ahamed in Programming, Uva, 0 comments

Uva 382 – Perfection

Problem Link

Solution :-

 

Posted by Shipu Ahamed in Programming, Uva, 7 comments

Uva 11185 – Ternary

Problem Link

Solution :-

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 in Programming, Uva, 0 comments

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 in Programming, Uva, 0 comments

Uva 299 – Train Swapping

Problem Link

Solution :-


 

Posted by Shipu Ahamed in Programming, Uva, 0 comments

Uva 458 – The Decoder

Problem Link

Solution :-

Posted by Shipu Ahamed in Programming, Uva, 2 comments

Uva 11461 – Square Numbers

Problem Link

Solution :-

 

Posted by Shipu Ahamed in Programming, Uva, 2 comments

Uva 12372 – Packing for Holiday

Problem Link:- 

Solution :-

Posted by Shipu Ahamed in Programming, Uva, 0 comments

Uva 12468 – Zapping

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

Solution :-

#include<stdio.h>
#include<stdlib.h>
int main()
{
 int a,b,i,c;
 while(scanf(“%d%d”,&a,&b)==2&& a>=0&&b>=0)
 {
     c=abs(a-b);
     if(c>=50)
     c=100-c;

   printf(“%dn”,c);
 }
 return 0;
}
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 in Programming, Uva, 0 comments

Uva 11984 – A Change in Thermal Unit

Problem Link

Solution :-

 

Posted by Shipu Ahamed in Programming, Uva, 2 comments