本文共 3924 字,大约阅读时间需要 13 分钟。
int a,b,c,d,ee,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x;int main(){ int T; cin>>T; while(T--) { cin>>a>>b>>c>>d>>ee>>f>>g>>h>>i>>j>>k>>l>>m>>n>>o>>p>>q>>r>>s>>t>>u>>v>>w>>x; int flag=0; if(u==v&&v==w&&w==x && q==r&&r==s&&s==t && m==o&&o==b&&b==d && n==p&&p==i&&i==k && j==l&&l==ee&&ee==g && f==h&&h==a&&a==c)flag=1; if(u==v&&u==w&&u==x && q==r&&r==s&&r==t && a==c&&a==n&&a==p && m==o&&o==j&&j==l && i==k&&i==f&&i==h && ee==g&&g==b&&g==d)flag=1; if(a==b&&a==c&&a==d && i==j&&i==k&&i==l && q==s&&q==ee&&q==f && g==h&&h==u&&h==w && x==v&&x==p&&x==o && m==n&&m==r&&m==t)flag=1; if(a==b&&a==c&&a==d && i==j&&i==k&&i==l && q==s&&s==o&&s==p && m==n&&m==u&&m==w && v==x&&x==ee&&x==f && g==h&&g==r&&g==t)flag=1; if(m==n&&m==o&&m==p && ee==f&&f==g&&f==h && s==t&&s==k&&s==l && i==j&&i==u&&i==v && w==x&&x==a&&x==b && c==d&&c==q&&c==r)flag=1; if(m==n&&m==o&&m==p && ee==f&&f==g&&f==h && s==t&&s==a&&s==b && c==d&&c==u&&c==v && w==x&&x==k&&x==l && i==j&&i==q&&i==r)flag=1; if(a==b&&b==c&&c==d && ee==f&&f==g&&g==h && i==j&&j==k&&k==l && m==n&&n==o&&o==p && q==r&&r==s&&s==t && u==v&&v==w&&w==x)flag=1; if(flag)cout<<"YES"<
+ - + - + - + - + - + - +| q | r | a | b | u | v |+ - + - + - + - + - + - +| s | t | c | d | w | x |+ - + - + - + - + - + - + | e | f | + - + - + | g | h | + - + - + | i | j | + - + - + | k | l | + - + - + | m | n | + - + - + | o | p | + - + - +
41 1 1 12 2 2 23 3 3 34 4 4 45 5 5 56 6 6 66 6 6 61 1 1 12 2 2 23 3 3 35 5 5 54 4 4 41 4 1 42 1 2 13 2 3 24 3 4 35 5 5 56 6 6 61 3 1 32 4 2 43 1 3 14 2 4 25 5 5 56 6 6 6
YESYESYESNO
转载地址:http://oeali.baihongyu.com/