結果
問題 | No.306 さいたま2008 |
ユーザー |
![]() |
提出日時 | 2024-08-07 09:49:23 |
言語 | Elixir (1.18.1) |
結果 |
AC
|
実行時間 | 601 ms / 2,000 ms |
コード長 | 438 bytes |
コンパイル時間 | 1,018 ms |
コンパイル使用メモリ | 77,528 KB |
実行使用メモリ | 69,688 KB |
最終ジャッジ日時 | 2025-02-14 12:19:12 |
合計ジャッジ時間 | 17,497 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 26 |
コンパイルメッセージ
warning: variable "x3" is unused (if the variable is not meant to be used, prefix it with an underscore) │ 11 │ [x3, y3] = [-x1, y1] │ ~~ │ └─ Main.exs:11:6: Main.main/0 warning: the result of evaluating operator '-'/1 is ignored (suppress the warning by assigning the expression to the _ variable) │ 11 │ [x3, y3] = [-x1, y1] │ ~ │ └─ Main.exs:11:17
ソースコード
defmoduleMain dodef 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 do[x1, y1] = li()[x2, y2] = li()[x3, y3] = [-x1, y1]a = x1b = x2# x = (x3 * b + x2 * a) / (x3 + x2)y = (y3 * b + y2 * a) / (a + b)IO.puts yendend