#include "iostream" #include "string.h" using namespace std; int main() { string s1, s2; int t; cin >> t; while(t--) { cin >> s1 >> s2; if(s1[0] == 'b' || s2[0] == 'b') { if(s1[1] == 'b' || s2[1] == 'b') { if(s1[2] == 'o' || s2[2] == 'o') cout << "yes" << endl; else cout << "no" << endl; } else if(s1[1] == 'o' || s2[1] == 'o') { if(s1[2] == 'b' || s2[2] == 'b') cout << "yes" << endl; else cout << "no" << endl; } else cout << "no" << endl; } else if(s1[0] == 'o' || s2[0] == 'o') { if(s1[1] == 'b' || s2[1] == 'b') { if(s1[2] == 'b' || s2[2] == 'b') cout << "yes" << endl; else cout << "no" << endl; } else cout << "no" << endl; } else cout << "no" << endl; } return 0; } ```
Have U read the rules and regulations before doing the contest??
100% u are gonna get suspended…
Best of luck…
You are not allowed to ask for hints in ongoing competitions not just on codechef on any site be careful next time
Sorry i’m totally new so i didn’t know about this and now i can’t edit this either
Please do not post your answer here it’s against the rules.
well your program fails for many inputs like
A=bob
B=obb
your Output:
no and
Expected Output:
yes
well you are also going to be suspended.