ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#151363 | #1221. 阴影面积(1) | yangzibin | 100 | 0ms | 1200kb | C++ | 164b | 2022-07-27 15:30:59 | 2022-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;
}
Details
小提示:点击横条可展开更详细的信息
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'