#include <bits/stdc++.h>#define ll long longusingnamespacestd;intmain(){inta[9]={1,2,3,4,5,6,7,8,9};intres=0;do{intx1=a[0]+a[1]+a[2]+a[3];intx2=a[3]+a[4]+a[5]+a[6];intx3=a[6]+a[7]+a[8]+a[0];if(x1==x2&&x2==x3){res++;}}while(next_permutation(a,a+9));//全排列cout<<res/3/2<<endl;//翻转除以3,镜像除以2return0;}