結果

問題 No.1223 I hate Golf
コンテスト
ユーザー penqen
提出日時 2020-12-15 15:22:26
言語 Elixir
(1.19.5)
コンパイル:
elixirc _filename_
実行:
elixir -e Main.main
結果
AC  
実行時間 327 ms / 2,000 ms
コード長 466 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 615 ms
コンパイル使用メモリ 71,824 KB
実行使用メモリ 63,320 KB
最終ジャッジ日時 2026-06-04 16:14:35
合計ジャッジ時間 6,837 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

defmodule Main do
  def main do
    [n, k, t] = IO.read(:line) |> String.trim() |> String.split(" ") |> Enum.map(&String.to_integer/1)

    solve(n, k, t) |> IO.puts
  end
  
  def solve(n, k, t) when - 1_000_000_000 <= n and n <= 1_000_000_000
    and n not in [2004, 2006]
    and 1 <= k and k <= 1_000_000_000
    and 1 <= t and t <= 1_000_000_000
  do
    if abs(n) <= k * t do
      "Yes"
    else
      "No"
    end
  end

  def solve(_n, _k, _t), do: "No"
end
0