Project Euler 493 - Under the rainbow
Project Euler 493 - Under the rainbow
Official link: https://projecteuler.net/problem=493
Official link: https://projecteuler.net/problem=493
The problem boils down to creating a, n choose m function, but this is very easy in Python.
Enter 3 integer's (colours, numpercolour, numofpickedballs)
Code will output the number of distinct colours in numofpickedballs, where there are colours and numpercolour of balls per colour