Ad
  • Custom User Avatar

    Your solution fails due to precision loss and rounding errors. You need to keep your calculations precise, for example by avoiding double and using integers all the time.

  • Custom User Avatar

    Thank you, kind man.

  • Custom User Avatar

    In description said "population greater than or equal... " in fact population should be only greater, you will have 1 condition fail till leave only greater condition. It is descriprion of aaasigment or input data mistake.