Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

nuke getting wrong answer

$
0
0

this is my code...i am continuously getting wrong answer .......please help me out

 #include<stdio.h>
int main()
{
unsigned long A;
int N,K,i,j;
scanf("%d%d%d",&A,&N,&K);
int x[100];
for(i=0;i<k;i++)/>
  x[i]=0;
for(i=0;i<a;i++) {="" for(j="0;j&lt;K;j++)"/>
  {
   if(x[j]<n)/>
   { x[j]++; 
    break;
    }
    else
    {x[j]=0;
    }
   }
}
for(i=0;i<k;i++)/>
  printf("%d",x[i]);
  printf("\n");
return 0;
}

Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>