# 七言對聯 ``` c #include <iostream> using namespace std; int main() { int n,g=0; cin>>n; for(int i=0;i<n;++i){ int a[2][7]; for(int j=0;j<2;++j){ for(int k=0;k<7;++k){ cin>>a[j][k]; } } if(a[0][1]==a[0][3]||a[0][1]!=a[0][5]||a[1][1]==a[1][3]||a[1][1]!=a[1][5]){ cout<<"A"; g=1; } if(a[0][6]!=1||a[1][6]!=0){ cout<<"B"; g=1; } if(a[0][1]==a[1][1]||a[0][3]==a[1][3]||a[0][5]==a[1][5]){ cout <<"C"; g=1; } if(g==0){ cout <<"None"; } cout <<endl; g=0; } return 0; } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up