Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
Do you mean "new year"? I can replace, for example, with "weekends".
Yes, the medium tests are needed to check if the rounding is correct.
This comment is hidden because it contains spoiler information about the solution
Added a block of tests that solve this problem.
Yes, you're right, it's because you're only rounding up the amount for those who left the house, and those who didn't also spent that money, and you don't take that into account in your decision. I did not think about such a problem when I wrote the tests.
Corrected, thanks.
Сorrected
yep, i spelled the condition wrong, as @dfhwze said, it should be: "rent paid every time someone leaves the house" turns out to be rounded every time someone leaves the house
I showed a friend, I only wanted to take tests, I accidentally pressed