結果

問題 No.138 化石のバージョン
ユーザー gemmarogemmaro
提出日時 2020-04-19 08:39:46
言語 Elixir
(1.16.2)
結果
AC  
実行時間 573 ms / 5,000 ms
コード長 375 bytes
コンパイル時間 1,184 ms
コンパイル使用メモリ 54,928 KB
実行使用メモリ 50,236 KB
最終ジャッジ日時 2023-08-30 00:27:47
合計ジャッジ時間 23,930 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 570 ms
49,712 KB
testcase_01 AC 562 ms
49,672 KB
testcase_02 AC 560 ms
49,892 KB
testcase_03 AC 557 ms
49,244 KB
testcase_04 AC 561 ms
50,016 KB
testcase_05 AC 563 ms
49,112 KB
testcase_06 AC 555 ms
49,220 KB
testcase_07 AC 565 ms
49,908 KB
testcase_08 AC 553 ms
49,180 KB
testcase_09 AC 556 ms
49,112 KB
testcase_10 AC 545 ms
49,280 KB
testcase_11 AC 553 ms
49,832 KB
testcase_12 AC 560 ms
49,140 KB
testcase_13 AC 553 ms
49,516 KB
testcase_14 AC 573 ms
49,900 KB
testcase_15 AC 562 ms
50,236 KB
testcase_16 AC 554 ms
49,188 KB
testcase_17 AC 566 ms
49,384 KB
testcase_18 AC 570 ms
49,152 KB
testcase_19 AC 564 ms
49,692 KB
testcase_20 AC 560 ms
49,448 KB
testcase_21 AC 560 ms
49,804 KB
testcase_22 AC 563 ms
49,864 KB
testcase_23 AC 560 ms
49,356 KB
testcase_24 AC 556 ms
49,268 KB
testcase_25 AC 559 ms
49,128 KB
testcase_26 AC 557 ms
49,200 KB
testcase_27 AC 573 ms
49,132 KB
testcase_28 AC 561 ms
49,700 KB
testcase_29 AC 560 ms
49,804 KB
testcase_30 AC 561 ms
50,044 KB
testcase_31 AC 560 ms
49,208 KB
testcase_32 AC 560 ms
49,236 KB
testcase_33 AC 549 ms
49,400 KB
testcase_34 AC 562 ms
49,176 KB
testcase_35 AC 573 ms
49,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    1..2
    |> Enum.map(fn _ ->
      IO.read(:line)
      |> String.trim()
      |> String.split(".")
      |> Enum.map(&String.to_integer/1)
    end)
    |> solve
    |> IO.puts()
  end

  def solve([[a, b, c], [x, y, z]]) do
    cond do
      a > x || (a == x && (b > y || (b == y && c >= z))) -> "YES"
      true -> "NO"
    end
  end
end
0