fork(3) download
  1. def parse(inFile):
  2. inFile.getInt()
  3. return inFile.getInts()
  4.  
  5. from operator import xor
  6.  
  7. def solve(values):
  8. if reduce(xor, values) != 0:
  9. return "NO"
  10. return sum(values)-min(values)
  11.  
  12. if __name__ == "__main__":
  13. from GCJ import GCJ
  14. GCJ(parse, solve, "/Users/lpebody/gcj/2011_q/", "c").run()
  15.  
  16.  
  17.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty