Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Colorful Disks by tokiojapan55
def count_discs(discs: tuple[int, ...]) -> int:
return sum(discs[i] > max(discs[i + 1:]) for i in range(len(discs) - 1)) + 1
Feb. 20, 2024
Comments: