結果

問題 No.1517 Party Location
ユーザー DieGoDieGo
提出日時 2021-07-22 14:49:51
言語 Elixir
(1.16.2)
結果
WA  
実行時間 -
コード長 243 bytes
コンパイル時間 1,113 ms
コンパイル使用メモリ 55,344 KB
実行使用メモリ 50,172 KB
最終ジャッジ日時 2023-09-24 14:00:02
合計ジャッジ時間 10,218 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 527 ms
49,296 KB
testcase_01 AC 536 ms
49,956 KB
testcase_02 AC 533 ms
49,872 KB
testcase_03 WA -
testcase_04 AC 524 ms
49,300 KB
testcase_05 AC 546 ms
49,268 KB
testcase_06 WA -
testcase_07 AC 535 ms
49,780 KB
testcase_08 WA -
testcase_09 AC 533 ms
49,208 KB
testcase_10 AC 531 ms
49,324 KB
testcase_11 WA -
testcase_12 AC 542 ms
49,220 KB
testcase_13 AC 545 ms
49,668 KB
testcase_14 AC 554 ms
49,864 KB
権限があれば一括ダウンロードができます

ソースコード

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