about summary refs log tree commit diff
path: root/others/volume1/050.pas
blob: cae9eb40ebd873ebf4e25d95bb8f134fd6bd9a24 (plain) (blame)
1
2
3
4
5
6
7
8
9
uses math, strutils;

var
  n: int64;

begin
  readln(n);
  writeln(inttobin(n, trunc(log2(n)) + 1))
end.