結果
| 問題 |
No.1452 XOR×OR
|
| コンテスト | |
| ユーザー |
AEn
|
| 提出日時 | 2022-05-29 23:35:42 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 41 ms / 2,000 ms |
| コード長 | 220 bytes |
| コンパイル時間 | 326 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 57,984 KB |
| 最終ジャッジ日時 | 2024-09-21 00:43:16 |
| 合計ジャッジ時間 | 3,473 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 36 |
ソースコード
N = int(input())
res = 0
for i in range(1, N+1):
if i*i > N:
break
if N%i == 0:
a, b = i, N//i
if a & b != a:
continue
res += 2**(bin(a)[2:].count('1') - 1)
print(res)
AEn