結果

問題 No.1452 XOR×OR
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2021-05-03 15:34:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 192 bytes
コンパイル時間 1,736 ms
コンパイル使用メモリ 86,992 KB
実行使用メモリ 76,352 KB
最終ジャッジ日時 2023-09-29 11:49:56
合計ジャッジ時間 6,267 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,644 KB
testcase_01 AC 69 ms
71,716 KB
testcase_02 AC 75 ms
75,920 KB
testcase_03 AC 67 ms
71,000 KB
testcase_04 AC 68 ms
71,628 KB
testcase_05 AC 69 ms
71,548 KB
testcase_06 AC 70 ms
75,900 KB
testcase_07 AC 73 ms
76,152 KB
testcase_08 AC 72 ms
76,072 KB
testcase_09 AC 72 ms
76,352 KB
testcase_10 AC 72 ms
76,252 KB
testcase_11 AC 72 ms
76,124 KB
testcase_12 AC 71 ms
76,044 KB
testcase_13 AC 72 ms
76,136 KB
testcase_14 AC 70 ms
76,232 KB
testcase_15 AC 71 ms
76,144 KB
testcase_16 AC 72 ms
76,208 KB
testcase_17 AC 71 ms
76,044 KB
testcase_18 AC 72 ms
76,048 KB
testcase_19 AC 72 ms
76,044 KB
testcase_20 AC 72 ms
76,044 KB
testcase_21 AC 71 ms
76,216 KB
testcase_22 AC 72 ms
76,060 KB
testcase_23 AC 71 ms
75,956 KB
testcase_24 AC 71 ms
76,052 KB
testcase_25 AC 72 ms
76,028 KB
testcase_26 AC 73 ms
76,016 KB
testcase_27 AC 74 ms
76,204 KB
testcase_28 AC 72 ms
76,148 KB
testcase_29 AC 73 ms
76,020 KB
testcase_30 AC 72 ms
76,244 KB
testcase_31 AC 72 ms
76,152 KB
testcase_32 AC 73 ms
75,892 KB
testcase_33 AC 72 ms
76,028 KB
testcase_34 AC 72 ms
76,232 KB
testcase_35 AC 72 ms
75,892 KB
testcase_36 AC 73 ms
76,216 KB
testcase_37 AC 72 ms
76,024 KB
testcase_38 AC 72 ms
75,916 KB
権限があれば一括ダウンロードができます

ソースコード

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