結果

問題 No.486 3 Straight Win(3連勝)
コンテスト
ユーザー Michae'Gon
提出日時 2017-02-28 21:41:59
言語 F#
(F# 10.0)
コンパイル:
fsharp_c _filename_
実行:
/usr/bin/dotnet_wrap
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 281 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 11,486 ms
コンパイル使用メモリ 210,472 KB
実行使用メモリ 30,156 KB
最終ジャッジ日時 2026-03-12 17:42:12
合計ジャッジ時間 11,974 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 28
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (181 ミリ秒)。
  main -> /home/judge/data/code/bin/Release/net10.0/main.dll
  main -> /home/judge/data/code/bin/Release/net10.0/publish/

ソースコード

diff #
raw source code

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