approximately 2

what is wrong in my submission?
here is my submission
http://www.codechef.com/viewsolution/4684437

Because you don’t use shifts :slight_smile:
If you want anybody to see this, shift it first.

I guess this is your bug :

if(value<min)
{
  min=value;
  count=count+1;
}
else
{
  add = add +1 ;
}

It should look like this :

if(value<min)
{
  min=value;
  count=1;
}
else
{
  count++;
}