結果

問題 No.737 PopCount
ユーザー sjiki
提出日時 2024-08-05 14:37:17
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 318 bytes
コンパイル時間 308 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 54,612 KB
最終ジャッジ日時 2024-08-05 14:37:19
合計ジャッジ時間 2,120 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other AC * 1 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

def bit_count(x):
    return bin(x).count('1')

def beauty_of_number(N):
    MOD = 1000000007
    return bit_count(N) % MOD

def main():
    import sys
    input = sys.stdin.read
    data = input().strip()
    
    N = int(data)
    result = beauty_of_number(N)
    print(result)

if __name__ == "__main__":
    main()
0