結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー cleantted
提出日時 2016-08-30 02:50:01
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 103 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-14 06:57:55
合計ジャッジ時間 1,646 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

N = format(int(input()), 'b')
L =len(N) - 1
hit = L + int(N[L])
if "1" in N[1:L-1]: hit += 1
print(hit)
0