#R2026B. 平方和

平方和

题目描述

给定两个整数 aa 和 bb,求它们的平方和。

输入格式

输入包含两个整数 aa 和 bb(−109≤a,b≤109-10^9 \le a,b \le 10^9)。

输出格式

输出一个整数 a2+b2a^2+b^2。

样例

2 3
13

提示

答案可能超出 3232 位有符号整数的表示范围,请使用 6464 位整数类型。

参考实现

#include <bits/stdc++.h>
#define pb push_back
#define fi first
#define sc second
#define ll long long
using namespace std;
signed main(){
	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	ll a, b;
	cin >> a >> b;
	cout << a * a + b * b;
	return 0;
}