Submission #18800908


Source Code Expand

Copy
defmodule Main do
  def main do
    [a, b] =
      IO.read(:line) |> String.trim() |> String.split(" ") |> Enum.map(&String.to_integer/1)

    solve(a, b)
    |> IO.puts()
  end

  def solve(a, b) when rem(a * b, 2) == 0, do: "Even"
  def solve(_, _), do: "Odd"
end

Submission Info

Submission Time
Task A - Product
User akht
Language Elixir (1.10.2)
Score 100
Code Size 276 Byte
Status AC
Exec Time 416 ms
Memory 30488 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 7
Set Name Test Cases
Sample 0_000.txt, 0_001.txt
All 0_000.txt, 0_001.txt, 1_002.txt, 1_003.txt, 1_004.txt, 1_005.txt, 1_006.txt
Case Name Status Exec Time Memory
0_000.txt AC 398 ms 30368 KB
0_001.txt AC 382 ms 30396 KB
1_002.txt AC 384 ms 30464 KB
1_003.txt AC 416 ms 30488 KB
1_004.txt AC 383 ms 30428 KB
1_005.txt AC 387 ms 30452 KB
1_006.txt AC 390 ms 30440 KB