Hello friends can someone tell me how to approach this problem ? I am getting WA.
Here is my latest submission. If it’s too messy, here is the approach I used :
for __ in range(readInt()): n = readInt() arr = readInts() brr = readInts() last,f,count = -1,1,0 for i in range(n): if arr*==1 and last==-1: last = brr* elif arr*==1: if last<=brr*: last = brr* else: count+=1 if count>1: f = 0 break if f: print "#laughing_arjun" else: print "#itsnot_arjun"