Safari World
Time limit1sMemory limit128 MB
Read two integers and print the absolute value of their difference.
- Level
Easy1 of 10
- Topics
- Math, Implementation
- Solved
- No attempts yet
Problem
Safari World is a mysterious country that exists only on the internet. It has two subdomains, seunghwan.royal.gov.sw and kyuhyun.royal.gov.sw. We want to compare the popularity of the two subdomains and find the difference between their popularity values.
Each subdomain's popularity is given as an integer. Given two popularity values N and M, write a program that prints the absolute difference between them.
Input
The first line contains two integers N and M, the popularity values of the two subdomains, separated by a space.
-2,000,000,000 <= N, M <= 2,000,000,000
Output
Print |N - M|, the difference between the two popularity values.