結果
| 問題 | No.1450 nahco314's First Problem |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-31 20:38:57 |
| 言語 | Crystal (1.19.1) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 226 bytes |
| 記録 | |
| コンパイル時間 | 17,735 ms |
| コンパイル使用メモリ | 338,752 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-08 17:42:21 |
| 合計ジャッジ時間 | 16,255 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 37 |
ソースコード
lib C
fun strtoll(s : UInt8*, p : UInt8**, b : Int32) : Int64
end
class String
def to_i64
C.strtoll(self, nil, 10)
end
end
x = read_line.to_i64
y = (1..100).find { |k|
(x ^ k).popcount == k
}
puts y ? x ^ y : -1