fork download
  1. class RebelAllianceComm:
  2. def countFrequencies(_self_,A, k, m):
  3. a = set()
  4. while A not in a
  5. a.add(a)
  6. a=(a*k)%m
  7. return a.size()
  8.  
  9. countFrequencies(63456, 99997, 100000)
Runtime error #stdin #stdout 0.02s 5852KB
stdin
Standard input is empty
stdout
Standard output is empty