結果

問題 No.486 3 Straight Win(3連勝)
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-06-15 01:32:28
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 277 bytes
コンパイル時間 809 ms
コンパイル使用メモリ 108,800 KB
実行使用メモリ 26,452 KB
最終ジャッジ日時 2024-06-30 14:39:05
合計ジャッジ時間 2,235 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 25 WA * 3
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class No486{
    static void Main(string[] args){
        var s=Console.ReadLine();
        var e=s.IndexOf("OOO");
        var w=s.IndexOf("XXX");
        if(e==w) Console.WriteLine("NA");
        else Console.WriteLine((-1<w&&-1<e&&e<w)?"East":"West");
    }
}
0