fork download
  1. lockers = list([True]) * 100
  2.  
  3. for i in range(1, 101):
  4. for j in range(1, 101):
  5. if j % i == 0:
  6. lockers[j-1] = not lockers[j-1]
  7.  
  8. print lockers.count(True)
Success #stdin #stdout 0.08s 8840KB
stdin
Standard input is empty
stdout
90