結果

問題 No.1452 XOR×OR
ユーザー あかりきあかりき
提出日時 2021-04-13 02:12:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 326 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 86,912 KB
実行使用メモリ 76,136 KB
最終ジャッジ日時 2023-09-15 12:22:51
合計ジャッジ時間 4,646 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,772 KB
testcase_01 AC 71 ms
71,180 KB
testcase_02 AC 74 ms
75,576 KB
testcase_03 AC 71 ms
70,968 KB
testcase_04 AC 73 ms
71,448 KB
testcase_05 AC 71 ms
71,456 KB
testcase_06 AC 75 ms
75,772 KB
testcase_07 AC 74 ms
75,904 KB
testcase_08 AC 74 ms
75,736 KB
testcase_09 AC 74 ms
76,056 KB
testcase_10 AC 79 ms
76,136 KB
testcase_11 AC 74 ms
75,876 KB
testcase_12 AC 76 ms
75,968 KB
testcase_13 AC 76 ms
75,872 KB
testcase_14 AC 75 ms
75,832 KB
testcase_15 AC 75 ms
75,840 KB
testcase_16 AC 75 ms
75,876 KB
testcase_17 AC 75 ms
75,576 KB
testcase_18 AC 75 ms
75,808 KB
testcase_19 AC 74 ms
75,572 KB
testcase_20 AC 74 ms
75,860 KB
testcase_21 AC 75 ms
75,872 KB
testcase_22 AC 75 ms
75,812 KB
testcase_23 AC 74 ms
75,876 KB
testcase_24 AC 75 ms
75,672 KB
testcase_25 AC 75 ms
75,812 KB
testcase_26 AC 75 ms
76,100 KB
testcase_27 AC 75 ms
75,736 KB
testcase_28 AC 75 ms
75,768 KB
testcase_29 AC 75 ms
75,852 KB
testcase_30 AC 75 ms
76,132 KB
testcase_31 AC 75 ms
76,076 KB
testcase_32 AC 76 ms
75,852 KB
testcase_33 AC 77 ms
75,820 KB
testcase_34 AC 75 ms
75,812 KB
testcase_35 AC 76 ms
75,836 KB
testcase_36 AC 75 ms
75,844 KB
testcase_37 AC 76 ms
75,772 KB
testcase_38 AC 75 ms
75,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
d=[]
for i in range(1,int(n**0.5)+2):
  if n%i==0:
    if i*i<=n:
      d.append(i)

ans=0
for i in range(len(d)):
  ct=1
  x=format(d[i],'032b')
  x2=format(n//d[i],'032b')
  for j in range(32):
    if x[j]=='1' and x2[j]=='1':
      ct*=2
    elif x[j]=='1' and x2[j]=='0':
      ct*=0
  ans+=ct
print(ans//2)
0