Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Reduction solution in Clear category for The Brick Factory Problem by StefanPochmann
def crosses(k: int, s: int = None) -> int:
if s is None:
return crosses(k, k-2) // 4
return (k//2) * ((k-1)//2) * (s//2) * ((s-1)//2)
May 8, 2024