1 solutions

  • 0
    @ 2025-3-3 16:33:40

    Python :

    n = int(input())
    y = []
    for i in range(1, n // 2 + 1):
        x = (n - (i * 2)) * (n - (i * 2)) * i
        y.append(x)
    print(max(y))
    
    • 1

    Information

    ID
    10659
    Time
    1000ms
    Memory
    16MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By