Start: Jun, 05, 2019 15:00:00
2019春ACM通识课考试(第二场)
End: Jun, 05, 2019 18:00:00
Contest has ended!
Time elapsed: 03:00:00
Time remaining: 00:00:00

Problem_ID: F
Result: Accepted
Time: 8ms
Memory: 1092kB
Author: 2018212212228
In contest: 1271

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include<stdio.h>
int main ()
{
    int a,b,c,d,e,f;
	int sum;
    scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f);
	sum=a+f+b;
	sum*=sum;
	sum=sum-b*b-d*d-f*f;
	printf("%d",sum);
   
	
	return 0;

}