結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー gemmarogemmaro
提出日時 2020-04-07 16:26:47
言語 Elixir
(1.16.2)
結果
AC  
実行時間 629 ms / 1,000 ms
コード長 271 bytes
コンパイル時間 995 ms
コンパイル使用メモリ 54,760 KB
実行使用メモリ 50,556 KB
最終ジャッジ日時 2023-08-29 23:58:52
合計ジャッジ時間 21,188 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 620 ms
49,160 KB
testcase_01 AC 620 ms
49,968 KB
testcase_02 AC 618 ms
49,180 KB
testcase_03 AC 619 ms
49,036 KB
testcase_04 AC 625 ms
49,380 KB
testcase_05 AC 622 ms
49,296 KB
testcase_06 AC 626 ms
49,260 KB
testcase_07 AC 614 ms
49,180 KB
testcase_08 AC 616 ms
49,232 KB
testcase_09 AC 621 ms
49,272 KB
testcase_10 AC 621 ms
49,656 KB
testcase_11 AC 617 ms
49,160 KB
testcase_12 AC 622 ms
49,296 KB
testcase_13 AC 625 ms
49,376 KB
testcase_14 AC 621 ms
49,324 KB
testcase_15 AC 629 ms
49,184 KB
testcase_16 AC 614 ms
49,100 KB
testcase_17 AC 623 ms
49,272 KB
testcase_18 AC 617 ms
49,408 KB
testcase_19 AC 620 ms
50,556 KB
testcase_20 AC 628 ms
49,224 KB
testcase_21 AC 613 ms
48,992 KB
testcase_22 AC 618 ms
49,348 KB
testcase_23 AC 622 ms
49,336 KB
testcase_24 AC 616 ms
49,400 KB
testcase_25 AC 616 ms
49,288 KB
testcase_26 AC 615 ms
49,196 KB
testcase_27 AC 618 ms
49,156 KB
testcase_28 AC 616 ms
49,392 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    c =
      IO.gets("")
      |> String.trim()

    d =
      IO.gets("")
      |> String.trim()

    (c <> d)
    |> String.split("x")
    |> Enum.map(fn i -> String.length(i) end)
    |> Enum.max(fn -> 0 end)
    |> IO.puts()
  end
end
0