結果

問題 No.486 3 Straight Win(3連勝)
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-06-15 01:32:28
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 277 bytes
コンパイル時間 1,937 ms
コンパイル使用メモリ 100,856 KB
実行使用メモリ 23,276 KB
最終ジャッジ日時 2023-09-13 04:27:21
合計ジャッジ時間 5,130 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
21,256 KB
testcase_01 WA -
testcase_02 AC 69 ms
21,228 KB
testcase_03 AC 69 ms
21,124 KB
testcase_04 AC 69 ms
21,188 KB
testcase_05 AC 69 ms
21,176 KB
testcase_06 AC 70 ms
23,112 KB
testcase_07 AC 70 ms
23,184 KB
testcase_08 WA -
testcase_09 AC 69 ms
21,148 KB
testcase_10 AC 68 ms
21,136 KB
testcase_11 AC 69 ms
21,072 KB
testcase_12 AC 69 ms
21,124 KB
testcase_13 AC 69 ms
21,252 KB
testcase_14 AC 75 ms
21,376 KB
testcase_15 AC 69 ms
23,276 KB
testcase_16 AC 69 ms
21,056 KB
testcase_17 AC 70 ms
21,240 KB
testcase_18 AC 74 ms
21,400 KB
testcase_19 WA -
testcase_20 AC 69 ms
21,096 KB
testcase_21 AC 69 ms
21,148 KB
testcase_22 AC 70 ms
21,104 KB
testcase_23 AC 70 ms
23,144 KB
testcase_24 AC 70 ms
21,068 KB
testcase_25 AC 73 ms
21,356 KB
testcase_26 AC 74 ms
21,288 KB
testcase_27 AC 74 ms
21,500 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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