結果

問題 No.1452 XOR×OR
ユーザー googol_S0googol_S0
提出日時 2021-03-31 14:07:44
言語 PyPy3
(7.3.15)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 313 bytes
コンパイル時間 2,182 ms
コンパイル使用メモリ 85,508 KB
実行使用メモリ 76,020 KB
最終ジャッジ日時 2023-09-15 12:15:23
合計ジャッジ時間 4,781 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
71,540 KB
testcase_01 AC 72 ms
71,776 KB
testcase_02 AC 75 ms
75,924 KB
testcase_03 AC 75 ms
71,340 KB
testcase_04 AC 72 ms
71,988 KB
testcase_05 AC 71 ms
71,824 KB
testcase_06 AC 75 ms
75,708 KB
testcase_07 AC 76 ms
75,968 KB
testcase_08 AC 75 ms
75,376 KB
testcase_09 AC 78 ms
75,636 KB
testcase_10 AC 74 ms
75,644 KB
testcase_11 AC 74 ms
75,952 KB
testcase_12 AC 75 ms
75,644 KB
testcase_13 AC 74 ms
75,644 KB
testcase_14 AC 74 ms
75,916 KB
testcase_15 AC 73 ms
75,668 KB
testcase_16 AC 74 ms
75,484 KB
testcase_17 AC 75 ms
75,916 KB
testcase_18 AC 75 ms
75,928 KB
testcase_19 AC 76 ms
75,696 KB
testcase_20 AC 74 ms
75,640 KB
testcase_21 AC 74 ms
75,676 KB
testcase_22 AC 74 ms
75,380 KB
testcase_23 AC 75 ms
75,764 KB
testcase_24 AC 76 ms
75,496 KB
testcase_25 AC 75 ms
75,700 KB
testcase_26 AC 73 ms
76,020 KB
testcase_27 AC 75 ms
75,612 KB
testcase_28 AC 76 ms
75,640 KB
testcase_29 AC 75 ms
75,920 KB
testcase_30 AC 75 ms
75,680 KB
testcase_31 AC 76 ms
75,772 KB
testcase_32 AC 77 ms
75,556 KB
testcase_33 AC 79 ms
75,680 KB
testcase_34 AC 74 ms
75,964 KB
testcase_35 AC 75 ms
75,764 KB
testcase_36 AC 74 ms
75,520 KB
testcase_37 AC 76 ms
75,680 KB
testcase_38 WA -
権限があれば一括ダウンロードができます

ソースコード

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
  if a==b:
    ANS+=1
  else:
    ANS+=(1<<(bin(b).count('1')-1))
print(ANS)
0