---
# System prepended metadata

title: '題解 zerojudge e283: APCS 類似題 - 小崴的特殊編碼'
tags: [APCS, c++]

---

###### 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";
	}
}


```