Submission #19418914


Source Code Expand

Copy
defmodule Main do
  def main do
    IO.read(:line)
    an = IO.read(:line) |> String.trim() |> String.split(" ") |> Enum.map(&String.to_integer/1)
    bn = IO.read(:line) |> String.trim() |> String.split(" ") |> Enum.map(&String.to_integer/1)
    :lists.zipwith(&(&1 * &2), an, bn)
    |> Enum.sum()
    |> case do
      0 -> "Yes"
      _ -> "No"
    end
    |> IO.puts()
  end
end

Submission Info

Submission Time
Task B - Orthogonality
User akht
Language Elixir (1.10.2)
Score 200
Code Size 397 Byte
Status AC
Exec Time 466 ms
Memory 60992 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 18
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All extreme_00.txt, extreme_01.txt, extreme_02.txt, handmade_00.txt, handmade_01.txt, handmade_02.txt, handmade_03.txt, handmade_04.txt, handmade_05.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
extreme_00.txt AC 466 ms 60832 KB
extreme_01.txt AC 442 ms 60752 KB
extreme_02.txt AC 390 ms 30420 KB
handmade_00.txt AC 397 ms 30384 KB
handmade_01.txt AC 399 ms 30436 KB
handmade_02.txt AC 388 ms 30512 KB
handmade_03.txt AC 404 ms 30556 KB
handmade_04.txt AC 398 ms 30496 KB
handmade_05.txt AC 397 ms 30436 KB
random_00.txt AC 447 ms 60992 KB
random_01.txt AC 441 ms 60956 KB
random_02.txt AC 395 ms 31944 KB
random_03.txt AC 440 ms 57212 KB
random_04.txt AC 416 ms 32784 KB
random_05.txt AC 427 ms 48012 KB
sample_01.txt AC 394 ms 30460 KB
sample_02.txt AC 393 ms 30544 KB
sample_03.txt AC 398 ms 30560 KB