Coding Games and Programming Challenges to Code Better
Send your feedback or ask for help here!
Created by @Rafarafa,validated by @cedricdd,@aabzac and @Timinator.
If you have any issues, feel free to ping them.
Coding Games and Programming Challenges to Code Better
Send your feedback or ask for help here!
Created by @Rafarafa,validated by @cedricdd,@aabzac and @Timinator.
If you have any issues, feel free to ping them.
Is there a way to solve this mathematically somehow (instead of using a simulation)?
I think that linear algebra is a good idea.
If you are in the CodinGame discord you can check this conversation: Discord
Alternatively, you can solve it in python and look at my solution