|
|
back to boardwhy is my code not accepted? Visual C Posted by Niloy 30 Jun 2013 01:09 i am doing (n%k)+(n/k) after putting restriction on k(k<=1000) and n(n>=1). but my answer is said to be wrong.please help. Edited by author 30.06.2013 01:11 Re: why is my code not accepted? Visual C Posted by Azad 6 Aug 2018 21:53 14%4 +14/4=2+3=5 but ans is 4. every pancake has 2 sides so 13 pancake has 26 sides.pan fry can fry 4 pancakes at one minute one side. so, IF(2*13%4>=1) sum=((2*n)/k)+1; else{ sum=(2*n)/k; } calculate it . |
|
|