atcoder#NIKKEI20192QUALA. Sum of Two Integers
Sum of Two Integers
Score : points
Problem Statement
How many ways are there to choose two distinct positive integers totaling , disregarding the order?
Constraints
- is an integer.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
4
1
There is only one way to choose two distinct integers totaling : to choose and . (Choosing and is not considered different from this.)
999999
499999