結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー roiti46roiti46
提出日時 2014-12-17 01:28:59
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 102 bytes
コンパイル時間 217 ms
コンパイル使用メモリ 6,668 KB
実行使用メモリ 6,144 KB
最終ジャッジ日時 2023-09-02 16:10:46
合計ジャッジ時間 1,638 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,756 KB
testcase_01 AC 11 ms
5,884 KB
testcase_02 AC 11 ms
5,968 KB
testcase_03 AC 10 ms
5,872 KB
testcase_04 AC 10 ms
5,788 KB
testcase_05 WA -
testcase_06 AC 10 ms
6,012 KB
testcase_07 AC 11 ms
5,824 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 11 ms
5,824 KB
testcase_11 AC 11 ms
5,896 KB
testcase_12 AC 10 ms
5,896 KB
testcase_13 AC 11 ms
5,844 KB
testcase_14 AC 11 ms
6,004 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 11 ms
5,756 KB
testcase_18 AC 11 ms
5,844 KB
testcase_19 AC 10 ms
5,852 KB
testcase_20 AC 11 ms
6,024 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(raw_input())
bit = format(N,"b")
ans = len(bit)-1+int(bit[-1])+("1" in bit[1:-1])
print ans
0