結果
| 問題 | No.1450 nahco314's First Problem |
| コンテスト | |
| ユーザー |
koheijkt
|
| 提出日時 | 2025-11-12 22:43:15 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 146 bytes |
| 記録 | |
| コンパイル時間 | 1,082 ms |
| コンパイル使用メモリ | 95,848 KB |
| 実行使用メモリ | 79,232 KB |
| 最終ジャッジ日時 | 2026-07-16 11:30:25 |
| 合計ジャッジ時間 | 5,136 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 36 WA * 1 |
ソースコード
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)
koheijkt