The United Pingdom (UP) is a mysterious country that exists on the Internet only. In the UP, the
two subdomains kate.royal.gov.up and william.royal.gov.up shall be united to couple.royal.gov.up.
However, according to the strict rules of the domain administration center UPNIC, two subdomains
may get “married” only if their popularity values are not too different. The popularity value of a
subdomain is an integer number.
Given the popularity values of two subdomains, compute their popularity difference, which is the
absolute difference between the popularity values.
The first and only input line contains the two popularity values N and M.
-2.1000000000 ≦ N ≦ 2.1000000000
-2.1000000000 ≦ M ≦ 2.1000000000
The first and only output line must contain the popularity difference |N - M|.
-2 5
7
Migrated from old NTUJ.
BOI2011 Practice Day
No. | Testdata Range | Score |
---|