I have a question. To be able to convert the player's points to the match, I have to compare the points he scored and the time he played, then add it together and divide it over the entire duration of the match, i.e. by 48?
if you remove the word "extrapolate" from the description, the task becomes much easier.
if this confuses you, then just think that you can distribute points evenly throughout the player's time, and then you will guess.
Python 2 will perform floating point division if either the divisor or divident is floating point. Constants are floating point if you include a decimal point. 4 is an int. 4.0 a float. Or you could cast an int variable to float with a float().
I have a question. To be able to convert the player's points to the match, I have to compare the points he scored and the time he played, then add it together and divide it over the entire duration of the match, i.e. by 48?
From basic tests I found out it should cut off all decimal places after hundredths, and only after do the rounding.
If it's a static test just hardcode it. If it's a random one then just re-submit
All tests passed except 21.1, i got 21.2 after JS rounding.
This isn't fair.
Ruby translation kumited :) please review and approve ~~
Ruby translation kumited :) Please check and approve ~~
if you remove the word "extrapolate" from the description, the task becomes much easier.
if this confuses you, then just think that you can distribute points evenly throughout the player's time, and then you will guess.
Thank you for creating this fun Kata!
APPROVED SOME TIME AGO
R Translation added. Please review and take care :).
Simple but great. Really practical kata.
Python 2 will perform floating point division if either the divisor or divident is floating point. Constants are floating point if you include a decimal point. 4 is an int. 4.0 a float. Or you could cast an int variable to float with a float().
loops!
Loading more items...