###### tags: `APCS` `c++` # 題解 zerojudge e283: APCS 類似題 - 小崴的特殊編碼 ```cpp= #include<iostream> using namespace std; int main(){ ios_base::sync_with_stdio(0);cin.tie(0); int n,i; string s; while(cin>>n){ cin.ignore(); for(i=0;i<n;i++){ getline(cin,s); //cout<<s<<"\n"; if(s=="0 1 0 1") cout<<"A"; else if(s=="0 1 1 1") cout<<"B"; else if(s=="0 0 1 0") cout<<"C"; else if(s=="1 1 0 1") cout<<"D"; else if(s=="1 0 0 0") cout<<"E"; else if(s=="1 1 0 0") cout<<"F"; } cout<<"\n"; } } ```
×
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