結果
| 問題 |
No.1450 nahco314's First Problem
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-31 17:35:52 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 2,000 ms |
| コード長 | 181 bytes |
| コンパイル時間 | 232 ms |
| コンパイル使用メモリ | 82,424 KB |
| 実行使用メモリ | 53,968 KB |
| 最終ジャッジ日時 | 2025-03-31 17:36:33 |
| 合計ジャッジ時間 | 3,727 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 37 |
ソースコード
X = int(input())
found = -1
for m in range(1, 61):
n = X ^ m
if 1 <= n <= 2 * 10**18:
if bin(n).count('1') == m:
found = n
break
print(found)
lam6er