Can anyone please tell why am i getting nzec error in the Charges question ?
Pasting my sol link-
https://www.codechef.com/viewsolution/47231142
In Java string is immutable so I have taken an array.
Can anyone please tell why am i getting nzec error in the Charges question ?
Pasting my sol link-
https://www.codechef.com/viewsolution/47231142
In Java string is immutable so I have taken an array.
Just rearrange the code to get AC . Place lines 31- 43 after line 22
P.S : You can tag me in a comment under official editorial of the problem (that way relevant discussions remain at one place), no need to create a new Discuss post !!
Thanks a lot !!