TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

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.

Input Format

The first and only input line contains the two popularity values N and M.


-2.1000000000 ≦ N ≦ 2.1000000000

-2.1000000000 ≦ M ≦ 2.1000000000

Output Format

The first and only output line must contain the popularity difference |N - M|.

Sample Input 1

-2 5

Sample Output 1

7

Hints

Problem Source

Migrated from old NTUJ.

BOI2011 Practice Day

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 5000 65536 200