結果
問題 | No.486 3 Straight Win(3連勝) |
ユーザー |
|
提出日時 | 2017-02-24 22:33:48 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 84 ms / 2,000 ms |
コード長 | 313 bytes |
コンパイル時間 | 14,310 ms |
コンパイル使用メモリ | 185,972 KB |
実行使用メモリ | 35,448 KB |
最終ジャッジ日時 | 2024-06-26 04:01:53 |
合計ジャッジ時間 | 17,513 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 28 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (352 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/
ソースコード
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