diff options
Diffstat (limited to 'others/volume1/050.pas')
-rw-r--r-- | others/volume1/050.pas | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/others/volume1/050.pas b/others/volume1/050.pas new file mode 100644 index 0000000..cae9eb4 --- /dev/null +++ b/others/volume1/050.pas @@ -0,0 +1,9 @@ +uses math, strutils; + +var + n: int64; + +begin + readln(n); + writeln(inttobin(n, trunc(log2(n)) + 1)) +end. |