結果
| 問題 | No.1452 XOR×OR |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-05-03 15:34:09 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
AC
|
| 実行時間 | 58 ms / 2,000 ms |
| + 347µs | |
| コード長 | 192 bytes |
| 記録 | |
| コンパイル時間 | 257 ms |
| コンパイル使用メモリ | 96,112 KB |
| 実行使用メモリ | 83,392 KB |
| 最終ジャッジ日時 | 2026-08-23 00:51:43 |
| 合計ジャッジ時間 | 4,582 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 36 |
ソースコード
n = int(input())
ans = 0
for i in range(1,int(n**0.5)+1):
if n%i:
continue
j = n//i
if i|j != j:
continue
x = bin(i).count("1")
ans += pow(2,x-1)
print(ans)