Skip to main content
2 of 7
added 114 characters in body
Noodle9
  • 20.4k
  • 3
  • 23
  • 47

Python 3, 72 65 bytes

Saved 7 bytes thanks to the man himself Arnauld!!!

f=lambda l:l.sort()or l and l[0]<=1/len(l)and l.pop(0)**0+f(l)or 0 

Try it online!

Noodle9
  • 20.4k
  • 3
  • 23
  • 47