Problem 35 - wrong output

Back to General discussions forum

trodrigueza     2021-12-22 19:22:08

Hi, I think there's a wrong output for input '50 1250 1', expected answer is '325' but my code and some other user code I tried give '324'. (I tried with 2 other inputs and the solution indeed was correct and 'cause of this I could try with other user's solution).

gardengnome     2021-12-22 20:17:12
User avatar

I checked with both java and python, and I get 325. Might be a rounding issue. Below are my results every 25 years before the rounding down.

25: 64.0037
50: 81.9312
75: 104.90870000000001
100: 134.3805
125: 172.19490000000002
150: 220.66479999999999
175: 282.8505
200: 362.61019999999996
225: 464.8727
250: 596.0212
275: 764.2064
300: 979.9323
325: 1256.5511
Please login and solve 5 problems to be able to post at forum