Competitions
PP1 Week 1 Introduction Part 2
Opposite number
Read one integer and print the opposite integer.
Input
One integer n, no more than 1018
by absolute value.
Output
Print the opposite integer.
Input example #1
10
Output example #1
-10
Read one integer and print the opposite integer.
One integer n, no more than 1018
by absolute value.
Print the opposite integer.
10
-10