結果

問題 No.374 コイン
ユーザー yaoshimaxyaoshimax
提出日時 2017-05-17 21:46:12
言語 Elixir
(1.16.2)
結果
CE  
(最新)
AC  
(最初)
実行時間 -
コード長 191 bytes
コンパイル時間 973 ms
コンパイル使用メモリ 53,716 KB
最終ジャッジ日時 2023-08-29 22:41:36
合計ジャッジ時間 1,382 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
== Compilation error in file Main.exs ==
** (ArgumentError) errors were found at the given arguments:

  * 1st argument: not a binary

    (stdlib 4.3) :binary.split(:eof, [" ", " ", "
", "
", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", <<194, 133>>, " ", "\t", "\n", "\v", "\f", "\r"], [:global, :trim_all])
    (elixir 1.14.3) lib/elixir/unicode/unicode.ex:515: String.Break.split/1
    Main.exs:1: (file)

ソースコード

diff #

case IO.gets("")|> String.split |> Enum.map(&Integer.parse/1) |> Enum.map(&elem(&1,0)) do
    [a, b] ->
      if b > a do
        IO.puts "K" 
      else
        IO.puts "S" 
      end 
end 
0