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; }
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; }