https://hack.codingblocks.com/contests/c/512/90
my solution-https://ide.codingblocks.com/s/41402
only 1 out of 4 test cases is passing.
| Test Case Number | Result |
|---|---|
| #1 | Passed |
| #2 | wrong-answer |
| #3 | wrong-answer |
| #4 | wrong-answer |
https://hack.codingblocks.com/contests/c/512/90
my solution-https://ide.codingblocks.com/s/41402
only 1 out of 4 test cases is passing.
| Test Case Number | Result |
|---|---|
| #1 | Passed |
| #2 | wrong-answer |
| #3 | wrong-answer |
| #4 | wrong-answer |
Hey Aniket, check the constraints given in the problem carefully 1 <= N <= 10^5 instead of int take long long int for N .
still not working…i think there’s some other problem…
Hey Aniket, can you share your updated code.
Hey @aniketL
The link that you have provided (https://ide.codingblocks.com/s/41460) does not belong to this question. Please save your code properly and then share the appropriate link here.