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: 5ms
Memory: 1092kB
Author: 2018212212128
In contest: 1271

#include<cstdio>
int main()
{
    int a[10],len,sum;
    for(int i=1;i<=6;i++)
        scanf("%d",&a[i]);
    len=a[1]+a[2]+a[6];
    sum=len*len-a[2]*a[2]-(len-a[2]-a[3])*(len-a[2]-a[3])-a[6]*a[6];
    printf("%d\n",sum);
    return 0;
}