标签:
1 int main() { 2 int a[8]; 3 while(scanf("%d",&a[0]) != EOF) { 4 for(int i = 1 ; i < 6 ; i ++) scanf("%d",&a[i]); 5 printf("%d\n",(a[0]+a[1]+a[2])*(a[0]+a[1]+a[2])-a[0]*a[0]-a[2]*a[2]-a[4]*a[4]); 6 } 7 }
Codeforces Round #313 (Div. 2) C - Gerald's Hexagon
标签:
原文地址:http://www.cnblogs.com/zstu-jack/p/5360346.html