璟雯院

珺璟如晔,雯华若锦

用户工具

站点工具


icpc:problems:755a_mathematical_addition
problems
名称Mathematical Addition
题目编号755A
题目链接codeforces.com/…
来源CodeForces
算法分类数学
难易程度容易

Mathematical Addition

想法

公式推导一下就好了

注意long long int

代码实现

#include<cstdio>//uncle-lu
 
int main()
{
	int t;
	scanf("%d", &t);
	for(int i=1; i<=t; ++i)
	{
		long long int u,v;
		scanf("%lld %lld", &u, &v);
		printf("%lld %lld\n", -u*u,v*v);
	}
 
	return 0;
}
/app/www/public/data/pages/icpc/problems/755a_mathematical_addition.txt · 最后更改: 2023/09/30 14:07 由 温婕莺