• + 0 comments

    Given n. find x and y such that:

    1. x+y=n
    2. x*y is maximum for all x and y

    This is still not the spoiler!

    Do use long long int. Else, TC 6+ would fail!

    Reference: Code