Weird Symbol
Time limit2sMemory limit256 MB
Given two integers A and B, compute (A+B)*(A-B) and print the result.
- Level
Easy1 of 10
- Topics
- Math, Implementation
- Solved
- No attempts yet
Problem
Hyo-jin, a student at Busan Science High School, is a math prodigy. There was even a school legend that she could solve any problem within a minute, but even Hyo-jin had a concern. Most problems contained a repeated operation. That operation was so long that Hyo-jin, who solved problems on paper, found it too painful, so she decided to invent a new operator herself.
The operator's symbol is @, defined as A@B = (A+B)×(A-B).
However, when large numbers actually came up, Hyo-jin found calculating them too annoying.
Help Hyo-jin by writing a program that computes A@B given integers A and B!
Input
The first line gives A and B. (1 ≤ A, B ≤ 100,000)
Output
Output the result of A@B on the first line.