結果

問題 No.486 3 Straight Win(3連勝)
ユーザー gemmarogemmaro
提出日時 2020-04-09 11:28:13
言語 Elixir
(1.16.2)
結果
AC  
実行時間 637 ms / 2,000 ms
コード長 247 bytes
コンパイル時間 1,171 ms
コンパイル使用メモリ 56,376 KB
実行使用メモリ 49,936 KB
最終ジャッジ日時 2023-08-30 00:03:19
合計ジャッジ時間 21,151 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 608 ms
49,192 KB
testcase_01 AC 625 ms
49,252 KB
testcase_02 AC 631 ms
49,284 KB
testcase_03 AC 628 ms
49,240 KB
testcase_04 AC 622 ms
49,768 KB
testcase_05 AC 614 ms
49,404 KB
testcase_06 AC 623 ms
49,252 KB
testcase_07 AC 629 ms
49,224 KB
testcase_08 AC 621 ms
49,752 KB
testcase_09 AC 626 ms
49,220 KB
testcase_10 AC 621 ms
49,204 KB
testcase_11 AC 630 ms
49,272 KB
testcase_12 AC 629 ms
49,936 KB
testcase_13 AC 627 ms
49,012 KB
testcase_14 AC 623 ms
49,760 KB
testcase_15 AC 623 ms
49,212 KB
testcase_16 AC 616 ms
49,860 KB
testcase_17 AC 626 ms
49,276 KB
testcase_18 AC 626 ms
49,228 KB
testcase_19 AC 621 ms
49,736 KB
testcase_20 AC 612 ms
49,200 KB
testcase_21 AC 608 ms
49,692 KB
testcase_22 AC 612 ms
49,112 KB
testcase_23 AC 614 ms
49,172 KB
testcase_24 AC 629 ms
49,676 KB
testcase_25 AC 637 ms
49,340 KB
testcase_26 AC 635 ms
49,148 KB
testcase_27 AC 624 ms
49,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    IO.gets("")
    |> (fn s ->
          case Regex.run(~r/(OOO|XXX)/, s) do
            nil -> "NA"
            ["OOO", _] -> "East"
            _ -> "West"
          end
        end).()
    |> IO.puts()
  end
end
0