結果

問題 No.486 3 Straight Win(3連勝)
ユーザー Michae'Gon
提出日時 2017-02-28 21:41:59
言語 F#
(F# 4.0)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 281 bytes
コンパイル時間 11,810 ms
コンパイル使用メモリ 193,276 KB
実行使用メモリ 28,672 KB
最終ジャッジ日時 2024-06-26 04:11:32
合計ジャッジ時間 11,583 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 28
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (297 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

module Main
open System

let s = [ for c in Console.ReadLine() -> c]

let rec calc = function
    | w :: x :: y :: zs when w = x && x = y && y = 'O' -> "East"
    | w :: x :: y :: zs when w = x && x = y -> "West"
    | _ :: zs -> calc zs
    | _ -> "NA"

Console.WriteLine(calc s)
0