BECCA · 2014-12-03 23:34:46
Hello.
Can you explain about the soulotion you are using for accepting this question?
Thanks.
AMiR · 2014-12-04 06:42:51
This is kind of an ad-hoc problem.
You need to know in which intervals of N, the answer differs. You can write a code for that.