結果
| 問題 | No.1450 nahco314's First Problem |
| コンテスト | |
| ユーザー |
koheijkt
|
| 提出日時 | 2025-11-12 22:44:47 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 63 ms / 2,000 ms |
| + 660µs | |
| コード長 | 178 bytes |
| 記録 | |
| コンパイル時間 | 251 ms |
| コンパイル使用メモリ | 96,368 KB |
| 実行使用メモリ | 79,232 KB |
| 最終ジャッジ日時 | 2026-07-16 11:30:31 |
| 合計ジャッジ時間 | 5,019 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 37 |
ソースコード
X = int(input())
if X == 0:
exit(print(1))
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