1 solutions

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

    Python :

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

    Information

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