fork download
  1. def f(x):
  2. while"1'"in`map(bin,x)`:x.pop()
  3.  
  4. for x in [14, 42, 2324, 97090, 4080622, 171480372], [42, 14, 42, 2324], [7,14,42], [], [171480372, 13, 14, 42], [42, 14, 42, 43, 41, 4080622, 171480372]:
  5. f(x);print x
Success #stdin #stdout 0.01s 8968KB
stdin
Standard input is empty
stdout
[14, 42, 2324, 97090, 4080622, 171480372]
[42, 14, 42, 2324]
[]
[]
[171480372]
[42, 14, 42]