結果
問題 |
No.47 ポケットを叩くとビスケットが2倍
|
ユーザー |
|
提出日時 | 2018-03-11 23:25:23 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 196 bytes |
コンパイル時間 | 208 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-10-15 00:56:58 |
合計ジャッジ時間 | 1,782 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 WA * 7 |
ソースコード
N=int(input()) count=-1 tmp=N while tmp>=1: count+=1 tmp=tmp/2 tmp=N-2**count if tmp%2==0 and tmp==0: print(count) elif tmp%2==0 or tmp==1: print(count+1) else: print(count+2)