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