結果

問題 No.1543 [Cherry 2nd Tune A] これがプログラミングなのね
ユーザー DieGoDieGo
提出日時 2021-07-22 12:26:07
言語 Elixir
(1.16.2)
結果
AC  
実行時間 597 ms / 2,000 ms
コード長 378 bytes
コンパイル時間 1,132 ms
コンパイル使用メモリ 55,432 KB
実行使用メモリ 51,052 KB
最終ジャッジ日時 2023-09-24 13:52:40
合計ジャッジ時間 22,916 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 566 ms
49,328 KB
testcase_01 AC 559 ms
49,084 KB
testcase_02 AC 564 ms
50,084 KB
testcase_03 AC 564 ms
49,740 KB
testcase_04 AC 564 ms
51,052 KB
testcase_05 AC 565 ms
49,320 KB
testcase_06 AC 570 ms
49,160 KB
testcase_07 AC 567 ms
49,224 KB
testcase_08 AC 567 ms
49,084 KB
testcase_09 AC 567 ms
49,420 KB
testcase_10 AC 576 ms
49,872 KB
testcase_11 AC 573 ms
49,312 KB
testcase_12 AC 562 ms
49,136 KB
testcase_13 AC 565 ms
49,676 KB
testcase_14 AC 560 ms
49,716 KB
testcase_15 AC 573 ms
49,732 KB
testcase_16 AC 573 ms
49,216 KB
testcase_17 AC 563 ms
49,144 KB
testcase_18 AC 566 ms
49,840 KB
testcase_19 AC 567 ms
49,196 KB
testcase_20 AC 568 ms
49,240 KB
testcase_21 AC 575 ms
49,292 KB
testcase_22 AC 566 ms
49,424 KB
testcase_23 AC 597 ms
49,148 KB
testcase_24 AC 568 ms
49,848 KB
testcase_25 AC 583 ms
49,356 KB
testcase_26 AC 578 ms
49,432 KB
testcase_27 AC 575 ms
49,712 KB
testcase_28 AC 580 ms
49,240 KB
testcase_29 AC 577 ms
49,064 KB
testcase_30 AC 580 ms
49,200 KB
testcase_31 AC 588 ms
49,196 KB
testcase_32 AC 581 ms
49,728 KB
testcase_33 AC 587 ms
49,236 KB
testcase_34 AC 582 ms
49,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    [s, t, c] = IO.read(:line) |> String.trim() |> String.split(" ");
    si = String.to_integer(s); ti = String.to_integer(t);

    case {si, ti, c} do
      {si, ti, "<"} when si < ti -> IO.puts "YES"
      {si, ti, ">"} when si > ti -> IO.puts "YES"
      {si, ti, "="} when si == ti -> IO.puts "YES"
      _ -> IO.puts "NO"
    end
  end
end
0