結果

問題 No.642 Two Operations No.1
ユーザー memmemmi
提出日時 2018-11-27 15:11:10
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 109 bytes
コンパイル時間 197 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-06-23 16:29:58
合計ジャッジ時間 1,263 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
t=n

k=0

while t != 0:
    k += 1
    t = t // 2
if n==1: print(0)
else: print(k+pow(2, k)-n)
0