On Wed, May 22, 2013 at 9:45 AM, emmy foramlakh...@gmail.com wrote:
problem : http://www.spoj.com/problems/FARIDA/
what is wrong with this code? The algorithm is pretty straight forward
Is it ?
1000 1 1 1000
Your code gives 1001 as output. Desired output should be 2000.
--
You received
problem : http://www.spoj.com/problems/FARIDA/
what is wrong with this code? The algorithm is pretty straight forward
#includestdio.h
#includestdlib.h
int main(void)
{
int t,n,i;
scanf(%d,t);
long long int s1,s2,s=0,a,temp;
int c=1;
while(t--)
{
scanf(%d,n);