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

×

# what is wrong in my code?

 0 t=int(input()) while 1>t or t>20000: t=int(input("reenter constraints 0<=t<=20,000\n")) la={} lb={} for i in range(t): a=input().lower() while len(a)!=3: a=input("length exceed\n").lower() b=input().lower() while len(b)!=3: b=input("length exceed\n").lower() la[i]=list(a) lb[i]=list(b) acount=bcount=0 for i in range (t): for j in range (3): if la[i][j]=="b" or lb[i][j]=="b": acount+=1 elif la[i][j]=="o" or lb[i][j]=="o": bcount+=1 if acount==2 and bcount==1: print("yes") acount=0 bcount=0 else: print("no") acount=0 bcount=0 This question is marked "community wiki". asked 08 Aug '18, 01:47 1●1 accept rate: 0% Delete this question. If you don't want to get suspended from forum. (08 Aug '18, 02:18)

 0 t=int(input()) while 1>t or t>20000:  t=int(input("reenter constraints 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:

×856
×30
×7

question asked: 08 Aug '18, 01:47

question was seen: 39 times

last updated: 08 Aug '18, 02:18