結果
問題 | No.1450 nahco314's First Problem |
ユーザー |
👑 ![]() |
提出日時 | 2021-04-19 16:30:14 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 46 ms / 2,000 ms |
コード長 | 156 bytes |
コンパイル時間 | 477 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 52,352 KB |
最終ジャッジ日時 | 2024-11-08 14:28:40 |
合計ジャッジ時間 | 3,586 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 37 |
ソースコード
def popcount(x): return bin(x).count("1") X=int(input()) N=-1 for M in range(65): if 1<=X^M<=2*10**18 and popcount(X^M)==M: N=X^M print(N)