結果
問題 | No.1452 XOR×OR |
ユーザー |
![]() |
提出日時 | 2024-09-11 06:10:50 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 312 bytes |
コンパイル時間 | 314 ms |
コンパイル使用メモリ | 82,392 KB |
実行使用メモリ | 60,160 KB |
最終ジャッジ日時 | 2024-09-11 06:10:53 |
合計ジャッジ時間 | 3,319 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | AC * 4 WA * 32 |
ソースコード
n=int(input())g=0def solve(a,b):c=0for i in range(33):if (a>>i)&1==1 and (b>>i)&1==0:return 0if (a>>i)&1==1 and (b>>i)&1==1:c+=1if c>0:return (2**(c-1))+1else:return 1for i in range(1,10**5):if i*i>n:breakif n%i==0:a=ib=n//ig+=solve(a,b)g+=solve(b,a)print(g)