Re: [gcj] Re: Kick Start Round C 2020 Question 4 (Candies)

2020-06-02 Thread CS17B006 ARNAB DUTTA
Thank you very much. Should have taken care of that. Spent two days on this silly thing On Tue, Jun 2, 2020, 23:19 porker2008 wrote: > Your code has runtime error when* N *is *1* > > Removing the following two lines (and also change the start index of the > two loops from 2 to 1) should fix

[gcj] Re: Kick Start Round C 2020 Question 4 (Candies)

2020-06-02 Thread porker2008
Your code has runtime error when* N *is *1* Removing the following two lines (and also change the start index of the two loops from 2 to 1) should fix your problem: *a1[1]=-1*a[1];* *a2[1]=-2*a[1];* They will cause out of bound error when N is 1 A full passing solution is attached for your