結果

問題 No.1450 nahco314's First Problem
コンテスト
ユーザー 学ぶマン
提出日時 2025-11-12 22:43:15
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 146 bytes
コンパイル時間 561 ms
コンパイル使用メモリ 82,324 KB
実行使用メモリ 53,692 KB
最終ジャッジ日時 2025-11-12 22:43:20
合計ジャッジ時間 4,524 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 36 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

X = int(input())
limit = 2*10**18

for m in range(0, 62):
    n = m^X
    if n <= limit and n.bit_count() == m:
        exit(print(n))

print(-1)
0