You are not logged in. Please login at www.codechef.com to post your questions!

×

# include<cstring>

using namespace std;

int main()

{ int j=0,m=0,k=0,i=0;

char s={0},t={0};

cin>>k;

for( i=0;i<k;i++)

{

m=-1;

cin>>s>>t;

for(j=0;j<3;j++)

{

if(s[j]=='o'||t[j]=='o')

{

m=j;

break;

}

}
if(j==3)

{

cout<<"no\n";

}

else

{

for(j=0;j<3;j++)

{

if(s[j]=='b'||t[j]=='b'||j==m)

{

continue;

}

else

{

cout<<"no\n";

break;

}

}

if(j==3)

{

cout<<"yes\n";

}

}

}
return 0;


}

asked 14 Aug '18, 18:58 1
accept rate: 0%

 1 Hi I'm not sure what's wrong but i checked your code on various test cases, your code gave me a wrong answer on this one 1 bbo ooo Your output : no Hope this helps (: answered 14 Aug '18, 19:24 4★agron_x 11●1 accept rate: 0%
 toggle preview community wiki:
Preview

### Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×1,424
×72

question asked: 14 Aug '18, 18:58

question was seen: 97 times

last updated: 14 Aug '18, 19:24
{"ft_lang_label":"__label__en","ft_lang_prob":0.8840898,"math_prob":0.5725029,"size":313,"snap":"2019-13-2019-22","text_gpt3_token_len":103,"char_repetition_ratio":0.103559874,"word_repetition_ratio":0.0,"special_character_ratio":0.3514377,"punctuation_ratio":0.15789473,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9525543,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,null,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-03-18T21:53:28Z\",\"WARC-Record-ID\":\"<urn:uuid:a84edfd1-1371-48a2-aa06-f93711fed0c3>\",\"Content-Length\":\"34985\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:de15c0dd-5bfa-4c6c-87a4-37117a32d247>\",\"WARC-Concurrent-To\":\"<urn:uuid:2f44c2b9-44a5-4422-9ea9-095aff0fad73>\",\"WARC-IP-Address\":\"54.211.41.159\",\"WARC-Target-URI\":\"https://discuss.codechef.com/questions/133627/wrong-answer-on-spellbobwhy\",\"WARC-Payload-Digest\":\"sha1:IZNUI7YXHT6WRYGWP3A4XBYAKN5EW5EF\",\"WARC-Block-Digest\":\"sha1:2RSXSLALQBPRREP3HUGIYKMLAPPBVP7M\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-13/CC-MAIN-2019-13_segments_1552912201707.53_warc_CC-MAIN-20190318211849-20190318233849-00420.warc.gz\"}"}