fork(1) download
  1. class BearPlays():
  2. def pileSize(self, a, b, k):
  3. lol = a*pow(2, k, a+b)
  4. lol %= (a+b)
  5. return min(lol, a+b-lol)
Success #stdin #stdout 0.02s 9984KB
stdin
Standard input is empty
stdout
Standard output is empty