結果
| 問題 |
No.1395 Less Sweet Alchemy
|
| コンテスト | |
| ユーザー |
yuruhiya
|
| 提出日時 | 2021-02-14 21:22:47 |
| 言語 | Crystal (1.14.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 282 bytes |
| コンパイル時間 | 14,644 ms |
| コンパイル使用メモリ | 295,780 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-22 08:36:18 |
| 合計ジャッジ時間 | 12,583 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
lib C
fun strtoll(s : UInt8*, p : UInt8**, b : Int32) : Int64
end
class String
def to_i64
C.strtoll(self, nil, 10)
end
end
n, x = read_line.split.map(&.to_i)
a = read_line.split.map(&.to_i)
puts a.any?(x) || (a.any? { |i| i > x } && a.any? { |i| i < x }) ? "Yes" : "No"
yuruhiya