結果

問題 No.1223 I hate Golf
ユーザー penqenpenqen
提出日時 2020-12-15 15:22:26
言語 Elixir
(1.16.2)
結果
AC  
実行時間 628 ms / 2,000 ms
コード長 466 bytes
コンパイル時間 1,148 ms
コンパイル使用メモリ 54,676 KB
実行使用メモリ 50,072 KB
最終ジャッジ日時 2023-08-30 00:59:18
合計ジャッジ時間 12,357 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 612 ms
49,408 KB
testcase_01 AC 616 ms
49,048 KB
testcase_02 AC 625 ms
49,300 KB
testcase_03 AC 616 ms
49,340 KB
testcase_04 AC 616 ms
49,968 KB
testcase_05 AC 614 ms
49,456 KB
testcase_06 AC 621 ms
49,300 KB
testcase_07 AC 619 ms
49,044 KB
testcase_08 AC 614 ms
49,260 KB
testcase_09 AC 613 ms
49,084 KB
testcase_10 AC 626 ms
49,228 KB
testcase_11 AC 628 ms
49,940 KB
testcase_12 AC 617 ms
49,712 KB
testcase_13 AC 614 ms
50,072 KB
testcase_14 AC 626 ms
50,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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