結果

問題 No.589 Counting Even
ユーザー koba-e964koba-e964
提出日時 2021-11-11 11:04:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 82 bytes
コンパイル時間 484 ms
コンパイル使用メモリ 86,720 KB
実行使用メモリ 71,544 KB
最終ジャッジ日時 2023-08-14 14:56:17
合計ジャッジ時間 3,435 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
71,308 KB
testcase_01 AC 60 ms
71,448 KB
testcase_02 AC 61 ms
71,392 KB
testcase_03 AC 62 ms
71,312 KB
testcase_04 AC 63 ms
71,140 KB
testcase_05 AC 60 ms
71,104 KB
testcase_06 AC 59 ms
71,112 KB
testcase_07 AC 65 ms
71,508 KB
testcase_08 AC 63 ms
71,544 KB
testcase_09 AC 60 ms
71,164 KB
testcase_10 AC 60 ms
71,044 KB
testcase_11 AC 63 ms
71,336 KB
testcase_12 AC 58 ms
71,252 KB
testcase_13 AC 59 ms
71,160 KB
testcase_14 AC 60 ms
71,104 KB
testcase_15 AC 60 ms
71,036 KB
testcase_16 AC 60 ms
71,188 KB
testcase_17 AC 74 ms
71,212 KB
testcase_18 AC 61 ms
71,028 KB
testcase_19 AC 61 ms
71,264 KB
testcase_20 AC 60 ms
70,948 KB
testcase_21 AC 64 ms
71,032 KB
testcase_22 AC 65 ms
71,352 KB
testcase_23 AC 65 ms
71,472 KB
testcase_24 AC 62 ms
71,312 KB
testcase_25 AC 60 ms
71,452 KB
testcase_26 AC 61 ms
71,480 KB
testcase_27 AC 61 ms
71,444 KB
testcase_28 AC 59 ms
71,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3

n = int(input())
print(n + 1 - pow(2, bin(n).count('1')))
0