結果

問題 No.1517 Party Location
ユーザー DieGo
提出日時 2021-07-22 15:20:07
言語 Elixir
(1.18.1)
結果
WA  
実行時間 -
コード長 246 bytes
コンパイル時間 947 ms
コンパイル使用メモリ 63,512 KB
実行使用メモリ 55,180 KB
最終ジャッジ日時 2024-07-17 14:49:05
合計ジャッジ時間 9,969 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    d = IO.read(:line) |> String.trim |> String.to_integer;
    [a, b] = IO.read(:line) |> String.trim |> String.split(" ") |> Enum.map(&String.to_integer/1)
    x = d;
    IO.puts x * a + (d - x) * b ;

  end
end
0