結果

問題 No.427 テレビ
ユーザー gemmarogemmaro
提出日時 2020-04-11 07:48:08
言語 Elixir
(1.16.2)
結果
AC  
実行時間 595 ms / 2,000 ms
コード長 284 bytes
コンパイル時間 968 ms
コンパイル使用メモリ 55,416 KB
実行使用メモリ 50,052 KB
最終ジャッジ日時 2023-08-30 00:06:32
合計ジャッジ時間 8,145 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 579 ms
50,052 KB
testcase_01 AC 582 ms
49,724 KB
testcase_02 AC 585 ms
49,564 KB
testcase_03 AC 592 ms
49,776 KB
testcase_04 AC 583 ms
49,268 KB
testcase_05 AC 585 ms
49,236 KB
testcase_06 AC 585 ms
49,988 KB
testcase_07 AC 590 ms
50,024 KB
testcase_08 AC 575 ms
49,136 KB
testcase_09 AC 595 ms
49,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    IO.read(:line)
    |> String.trim()
    |> String.split()
    |> Enum.map(&String.to_integer(&1))
    |> (fn [h, w] ->
          cond do
            h < w -> "YOKO"
            true -> "TATE"
          end
        end).()
    |> IO.puts()
  end
end
0