Back to task

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


Leave a comment

Parsed as Markdown

Login to leave a comment