fork(3) download
  1. def parse(inFile):
  2. return tuple(inFile.getInts())
  3.  
  4. def solve((N,K)):
  5. return "OFF" if ((K + 1) & ((1 << N) - 1)) else "ON"
  6.  
  7. if __name__ == "__main__":
  8. from GCJ import GCJ
  9. GCJ(parse, solve, "/Users/lpebody/gcj/2010_q/", "a").run()
  10.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty