結果
問題 | No.892 タピオカ |
ユーザー |
![]() |
提出日時 | 2024-11-07 06:10:45 |
言語 | Elixir (1.18.1) |
結果 |
AC
|
実行時間 | 672 ms / 1,000 ms |
コード長 | 397 bytes |
コンパイル時間 | 1,908 ms |
コンパイル使用メモリ | 61,884 KB |
実行使用メモリ | 54,396 KB |
最終ジャッジ日時 | 2024-11-07 06:10:55 |
合計ジャッジ時間 | 9,146 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
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[a1, _b1, a2, _b2, a3, _b3] = li()x = rem(a1, 2) + rem(a2, 2) + rem(a3, 2)IO.puts if rem(x, 2) == 0, do: ":-)", else: ":-("endend