結果
| 問題 | No.1450 nahco314's First Problem |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-17 10:02:40 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 155 ms / 2,000 ms |
| コード長 | 135 bytes |
| 記録 | |
| コンパイル時間 | 584 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-05-08 17:47:46 |
| 合計ジャッジ時間 | 6,468 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 37 |
ソースコード
#yuki1450
x=int(input())
if x==0:
print(1)
exit()
for m in range(65):
n=x^m
if bin(n).count('1')==m:
print(n)
exit()
print(-1)