Jumping on the Clouds: Revisited

  • + 0 comments
    total,i,e=0,0,100
        for _ in range(17):
          e-=3 if c[(i+k)%n] else 1
          if (i+k)%n==0:
            break
          i+=k
        return e