結果

問題 No.486 3 Straight Win(3連勝)
ユーザー ichibanshiboriichibanshibori
提出日時 2017-02-24 22:33:48
言語 F#
(F# 4.0)
結果
AC  
実行時間 98 ms / 2,000 ms
コード長 313 bytes
コンパイル時間 3,371 ms
コンパイル使用メモリ 149,508 KB
実行使用メモリ 25,276 KB
最終ジャッジ日時 2023-09-08 10:41:38
合計ジャッジ時間 7,196 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
23,056 KB
testcase_01 AC 92 ms
23,208 KB
testcase_02 AC 92 ms
25,236 KB
testcase_03 AC 93 ms
23,092 KB
testcase_04 AC 92 ms
23,244 KB
testcase_05 AC 90 ms
23,044 KB
testcase_06 AC 91 ms
23,040 KB
testcase_07 AC 92 ms
25,100 KB
testcase_08 AC 92 ms
25,060 KB
testcase_09 AC 91 ms
25,088 KB
testcase_10 AC 92 ms
25,108 KB
testcase_11 AC 92 ms
23,108 KB
testcase_12 AC 92 ms
23,148 KB
testcase_13 AC 91 ms
22,948 KB
testcase_14 AC 95 ms
25,268 KB
testcase_15 AC 90 ms
23,028 KB
testcase_16 AC 90 ms
23,216 KB
testcase_17 AC 91 ms
23,188 KB
testcase_18 AC 98 ms
23,268 KB
testcase_19 AC 91 ms
25,132 KB
testcase_20 AC 94 ms
25,276 KB
testcase_21 AC 91 ms
21,184 KB
testcase_22 AC 91 ms
23,116 KB
testcase_23 AC 93 ms
23,240 KB
testcase_24 AC 91 ms
23,312 KB
testcase_25 AC 98 ms
25,076 KB
testcase_26 AC 96 ms
23,108 KB
testcase_27 AC 97 ms
23,184 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let () =
    let s = stdin.ReadLine()
    let maru = s.IndexOf("OOO")
    let batu = s.IndexOf("XXX")

    let ans =
        if maru = -1 && batu = -1 then "NA"
        elif maru = -1 then "West"
        elif batu = -1 then "East"
        elif maru < batu then "East"
        else "West"
    
    printfn "%s" ans
0