結果

問題 No.1517 Party Location
ユーザー DieGo
提出日時 2021-07-22 14:49:51
言語 Elixir
(1.18.1)
結果
WA  
実行時間 -
コード長 243 bytes
コンパイル時間 1,924 ms
コンパイル使用メモリ 61,744 KB
実行使用メモリ 56,860 KB
最終ジャッジ日時 2024-07-17 14:46:15
合計ジャッジ時間 11,589 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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