結果

問題 No.1452 XOR×OR
ユーザー googol_S0googol_S0
提出日時 2021-04-16 18:33:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 282 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 87,116 KB
実行使用メモリ 75,896 KB
最終ジャッジ日時 2023-09-15 16:24:20
合計ジャッジ時間 5,198 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,508 KB
testcase_01 AC 72 ms
71,908 KB
testcase_02 AC 75 ms
75,344 KB
testcase_03 AC 72 ms
71,148 KB
testcase_04 AC 71 ms
71,640 KB
testcase_05 AC 72 ms
71,668 KB
testcase_06 AC 75 ms
75,668 KB
testcase_07 AC 76 ms
75,708 KB
testcase_08 AC 76 ms
75,592 KB
testcase_09 AC 74 ms
75,732 KB
testcase_10 AC 76 ms
75,344 KB
testcase_11 AC 76 ms
75,464 KB
testcase_12 AC 75 ms
75,656 KB
testcase_13 AC 76 ms
75,632 KB
testcase_14 AC 75 ms
75,696 KB
testcase_15 AC 74 ms
75,592 KB
testcase_16 AC 73 ms
75,428 KB
testcase_17 AC 74 ms
75,640 KB
testcase_18 AC 75 ms
75,896 KB
testcase_19 AC 76 ms
75,496 KB
testcase_20 AC 74 ms
75,708 KB
testcase_21 AC 73 ms
75,708 KB
testcase_22 AC 74 ms
75,652 KB
testcase_23 AC 73 ms
75,740 KB
testcase_24 AC 73 ms
75,744 KB
testcase_25 AC 75 ms
75,640 KB
testcase_26 AC 73 ms
75,740 KB
testcase_27 AC 75 ms
75,692 KB
testcase_28 AC 76 ms
75,632 KB
testcase_29 AC 76 ms
75,756 KB
testcase_30 AC 75 ms
75,340 KB
testcase_31 AC 76 ms
75,708 KB
testcase_32 AC 74 ms
75,592 KB
testcase_33 AC 75 ms
75,736 KB
testcase_34 AC 75 ms
75,792 KB
testcase_35 AC 74 ms
75,656 KB
testcase_36 AC 76 ms
75,732 KB
testcase_37 AC 77 ms
75,428 KB
testcase_38 AC 75 ms
75,428 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
def f(x):
  r=[]
  for i in range(1,int(x**0.5)+1):
    if x%i==0:
      y=x//i
      r.append((i,y))
      if i!=y:
        r.append((y,i))
  return r

D=f(N)
ANS=0
for d in D:
  a,b=d[0],d[1]
  if (a&b)!=b:
    continue
  ANS+=(1<<(bin(b).count('1')))
print(ANS>>1)
0