Back to task

91 symbols python2
Thu Oct 8 13:23:37 2015 BogdanShevchenko
t=input()
while t:t-=1;a,b=raw_input().split();print("false","true")[b in a+a and a in b+b]


Leave a comment

Parsed as Markdown

Login to leave a comment