fork(4) download
  1. def parse(inFile):
  2. inFile.getInt()
  3. return inFile.getInts()
  4.  
  5. def solve(data):
  6. print data
  7. return "%.6f" % len([k for k in xrange(len(data)) if data[k] != k + 1])
  8.  
  9. if __name__ == "__main__":
  10. from GCJ import GCJ
  11. GCJ(parse, solve, "/Users/lpebody/gcj/2011_q/", "d").run()
  12.  
  13.  
  14.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty