UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#151363#1221. 阴影面积(1)yangzibin1000ms1200kbC++164b2022-07-27 15:30:592022-07-27 15:31:01

answer

#include<cmath>
#include<cstdio>
#include<iostream>
using namespace std;
int a,b,s=0;
int main()
{
	cin>>a>>b;
	s=a*(a-b)+b*(a-b);
	cout<<s;
	return 0;
}

详细

小提示:点击横条可展开更详细的信息

Test #1:

score: 50
Accepted
time: 0ms
memory: 1200kb

input:

5 3

output:

16

result:

ok single line: '16'

Test #2:

score: 50
Accepted
time: 0ms
memory: 1196kb

input:

15 13

output:

56

result:

ok single line: '56'