#include #include using namespace std; void fel() { int n; char s[100]; int i; cin>>n; cin.clear(); cin.sync(); cin.ignore(1000,'\n'); for(i=0;i2) { cout<<"Incorrect!\n"; cout.flush(); jo=0; } if(jo) { elso=strlen(p)==1; if(elso&&p[0]!='B'){ cout<<"Incorrect!\n"; cout.flush(); jo=0; } for(int j=0;j='a'&&p[j]<='z')||(p[j]>='A'&&p[j]<='Z'))) { cout<<"Incorrect!\n"; cout.flush(); jo=0; } if(jo) { p=strtok(NULL," "); if(p==NULL||strlen(p)>3||(strlen(p)==3&&!elso)) { cout<<"Incorrect!\n"; cout.flush(); jo=0; } if(jo) { for(int j=0;j='0'&&p[j]<='9')) { cout<<"Incorrect!\n"; cout.flush(); jo=0; } if(jo) { p=strtok(NULL," "); if(p==NULL||strlen(p)!=3) { cout<<"Incorrect!\n"; cout.flush(); jo=0; } if(jo) { for(int j=0;j='a'&&p[j]<='z')||(p[j]>='A'&&p[j]<='Z'))) { cout<<"Incorrect!\n"; cout.flush(); jo=0; } if(jo) { cout<<"Correct!\n"; cout.flush(); jo=0; } } } } } } } } int main() { fel(); return 0; }