結果

問題 No.378 名声値を稼ごう
ユーザー りあんりあん
提出日時 2016-06-18 00:00:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 77 bytes
コンパイル時間 261 ms
コンパイル使用メモリ 87,040 KB
実行使用メモリ 71,428 KB
最終ジャッジ日時 2023-09-12 00:52:20
合計ジャッジ時間 1,498 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,360 KB
testcase_01 AC 68 ms
71,404 KB
testcase_02 AC 70 ms
71,428 KB
testcase_03 AC 72 ms
71,240 KB
testcase_04 AC 68 ms
71,356 KB
testcase_05 AC 69 ms
71,136 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ans = 0
while n > 0:
    ans += n % 2
    n >>= 1
print(ans)
0