結果

問題 No.486 3 Straight Win(3連勝)
ユーザー Michae'GonMichae'Gon
提出日時 2017-02-28 21:41:59
言語 F#
(F# 4.0)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 281 bytes
コンパイル時間 5,360 ms
コンパイル使用メモリ 161,044 KB
実行使用メモリ 24,132 KB
最終ジャッジ日時 2023-09-08 10:52:53
合計ジャッジ時間 6,156 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
24,044 KB
testcase_01 AC 55 ms
21,992 KB
testcase_02 AC 54 ms
22,032 KB
testcase_03 AC 54 ms
21,984 KB
testcase_04 AC 54 ms
21,868 KB
testcase_05 AC 53 ms
22,004 KB
testcase_06 AC 54 ms
24,032 KB
testcase_07 AC 54 ms
21,896 KB
testcase_08 AC 56 ms
21,920 KB
testcase_09 AC 57 ms
23,960 KB
testcase_10 AC 54 ms
19,932 KB
testcase_11 AC 54 ms
22,016 KB
testcase_12 AC 54 ms
24,132 KB
testcase_13 AC 55 ms
19,800 KB
testcase_14 AC 54 ms
21,932 KB
testcase_15 AC 54 ms
21,864 KB
testcase_16 AC 55 ms
24,032 KB
testcase_17 AC 55 ms
23,900 KB
testcase_18 AC 55 ms
21,924 KB
testcase_19 AC 53 ms
21,908 KB
testcase_20 AC 53 ms
21,940 KB
testcase_21 AC 54 ms
21,972 KB
testcase_22 AC 53 ms
22,040 KB
testcase_23 AC 54 ms
22,004 KB
testcase_24 AC 55 ms
21,996 KB
testcase_25 AC 53 ms
21,976 KB
testcase_26 AC 53 ms
19,920 KB
testcase_27 AC 54 ms
21,900 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

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