結果
問題 |
No.2922 Rose Garden
|
ユーザー |
![]() |
提出日時 | 2024-11-12 04:15:03 |
言語 | Elixir (1.18.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 498 bytes |
コンパイル時間 | 1,237 ms |
コンパイル使用メモリ | 62,616 KB |
実行使用メモリ | 286,932 KB |
最終ジャッジ日時 | 2024-11-12 04:16:24 |
合計ジャッジ時間 | 71,534 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 WA * 25 |
ソースコード
defmodule Main do def input, do: IO.read(:line) |> String.trim def ii, do: input() |> String.to_integer def li, do: input() |> String.split |> Enum.map(&String.to_integer/1) def yn(b), do: IO.puts (if b, do: "Yes", else: "No") def is_mma(a, a, b), do: a != b def is_mma(_, _, _), do: false def main do [_n, s, b] = li() h = li() h |> Enum.chunk_every(2, 1, :discard) |> Enum.any?(fn [x, y] -> x+s*b < y end) |> then(fn b -> not b end) |> yn() end end