結果

問題 No.1452 XOR×OR
ユーザー ああいいああいい
提出日時 2022-01-08 19:23:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 181 bytes
コンパイル時間 153 ms
コンパイル使用メモリ 82,092 KB
実行使用メモリ 58,896 KB
最終ジャッジ日時 2024-04-26 19:27:56
合計ジャッジ時間 2,736 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,752 KB
testcase_01 AC 35 ms
52,948 KB
testcase_02 AC 38 ms
58,548 KB
testcase_03 AC 37 ms
52,124 KB
testcase_04 AC 37 ms
51,824 KB
testcase_05 AC 37 ms
52,972 KB
testcase_06 AC 41 ms
57,464 KB
testcase_07 AC 39 ms
58,556 KB
testcase_08 AC 40 ms
57,296 KB
testcase_09 AC 40 ms
57,276 KB
testcase_10 AC 39 ms
58,400 KB
testcase_11 AC 39 ms
57,860 KB
testcase_12 AC 40 ms
58,072 KB
testcase_13 AC 39 ms
57,960 KB
testcase_14 AC 38 ms
58,184 KB
testcase_15 AC 38 ms
57,772 KB
testcase_16 AC 38 ms
57,948 KB
testcase_17 AC 39 ms
57,392 KB
testcase_18 AC 39 ms
57,620 KB
testcase_19 AC 41 ms
58,600 KB
testcase_20 AC 40 ms
57,672 KB
testcase_21 AC 43 ms
58,212 KB
testcase_22 AC 40 ms
57,948 KB
testcase_23 AC 42 ms
58,896 KB
testcase_24 AC 41 ms
57,664 KB
testcase_25 AC 39 ms
57,184 KB
testcase_26 AC 41 ms
57,212 KB
testcase_27 AC 41 ms
58,328 KB
testcase_28 AC 39 ms
58,188 KB
testcase_29 AC 42 ms
58,172 KB
testcase_30 AC 40 ms
58,116 KB
testcase_31 AC 42 ms
58,112 KB
testcase_32 AC 39 ms
58,404 KB
testcase_33 AC 39 ms
57,604 KB
testcase_34 AC 40 ms
57,948 KB
testcase_35 AC 39 ms
57,944 KB
testcase_36 AC 39 ms
57,948 KB
testcase_37 AC 39 ms
58,216 KB
testcase_38 AC 40 ms
57,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

ans = 0
i = 1
while i * i <= N:
    if N % i == 0:
        j = N // i
        if i == j & i:
            ans += pow(2,bin(i).count('1'))
    i += 1
print(ans // 2)
0