You are viewing a single comment's thread. Return to all comments →
This is the O(1) solution based on the pattern.
for _ in xrange(input()): print ["First","Second"][input()%7 in [0,1]]
Seems like cookies are disabled on this browser, please enable them to open this website
Game of Stones
You are viewing a single comment's thread. Return to all comments →
This is the O(1) solution based on the pattern.