You are viewing a single comment's thread. Return to all comments →
Reduced
for _ in range(int(input())): s = input() print(['Not Funny','Funny'][all([abs(ord(s[i]) - ord(s[i-1])) == abs(ord(s[-i]) - ord(s[-i-1])) for i in range(1, len(s)//2+1)])])
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 →
Reduced