You are viewing a single comment's thread. Return to all comments →
Mine:
n=int(input()) for _ in range(n): st=[str(x) for x in input().strip()] diff=[abs(ord(a)-ord(b)) for a,b in zip(st,st[1:])] print("Funny" if (diff==diff[::-1]) else "Not Funny")
Seems like cookies are disabled on this browser, please enable them to open this website
Funny String
You are viewing a single comment's thread. Return to all comments →
Mine: