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

Problem_ID: F
Result: Accepted
Time: 9ms
Memory: 1092kB
Author: 2018212212066
In contest: 1271

#include<stdio.h>
int main(void){
	int i,j,k;
	int a[101];
	int n;
	for(i=1;i<=6;i++){
		scanf("%d",&a[i]);
	}
	int s=0;
	for(i=1;i<=6;i=i+2){
			s=s+a[i];
	}
	int s1=0;
	for(i=2;i<=6;i=i+2){
		s1=s1+a[i];
	}
	k=(s1+2*s)/3;
	printf("%d",k*k-a[1]*a[1]-a[3]*a[3]-a[5]*a[5]);
}