fork download
  1. import math
  2. def scORe(n): return 2**math.ceil( math.log2(n) ) - 1
  3.  
  4. print( scORe(123) )
Success #stdin #stdout 0.02s 9936KB
stdin
Standard input is empty
stdout
127