結果
問題 | No.2208 Linear Function |
ユーザー |
![]() |
提出日時 | 2024-11-22 00:27:00 |
言語 | Elixir (1.18.1) |
結果 |
AC
|
実行時間 | 782 ms / 2,000 ms |
コード長 | 449 bytes |
コンパイル時間 | 5,493 ms |
コンパイル使用メモリ | 61,248 KB |
実行使用メモリ | 54,144 KB |
最終ジャッジ日時 | 2024-11-22 00:27:10 |
合計ジャッジ時間 | 9,406 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 3 |
ソースコード
defmoduleMain do@spec input() :: binary()def input, do: IO.read(:line) |> String.trimdef ii, do: input() |> String.to_integerdef li, do: input() |> String.split |> Enum.map(&String.to_integer/1)def yn(b), do: IO.puts (if b, do: "Yes", else: "No")def main dot = ii()for _ <- 1..t do[l, r, a, b] = li()if a >= 0 doa * r + belsea * l + bend|> IO.putsendendend