結果

問題 No.1452 XOR×OR
ユーザー aaaaaaaaaa2230
提出日時 2021-05-03 15:34:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 192 bytes
コンパイル時間 690 ms
コンパイル使用メモリ 82,192 KB
実行使用メモリ 59,752 KB
最終ジャッジ日時 2024-07-22 06:13:21
合計ジャッジ時間 3,236 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 36
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ans = 0
for i in range(1,int(n**0.5)+1):
    if n%i:
        continue
    j = n//i
    if i|j != j:
        continue
    x = bin(i).count("1")
    ans += pow(2,x-1)
print(ans)
0