Type: Default 1000ms 256MiB

小R的新运算

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

小R的新运算

问题描述

小R定义了一种新运算,运算符为“田”,运算规则如下:
对于任意整数 ( a ) 和 ( b ),有 ( a \text{田} b = (a+b)^2 - (a-b)^2 )。
例如:( 4 \text{田} 3 = (4+3)^2 - (4-3)^2 = 49 - 1 = 48 )。

输入描述

一行,两个整数 ( a ) 和 ( b )(用空格分隔)。

输出描述

一行,新运算“田”的结果(整数)。

输入样例1

4 3

输出样例1

48

数据范围

对于 100% 的数据,( -10^5 \leq a, b \leq 10^5 ),且运算结果为整数。

初中组冲刺

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
8
Start at
2025-5-22 16:15
End at
2025-5-24 8:15
Duration
40 hour(s)
Host
Partic.
37