結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
21,068 KB
testcase_01 WA -
testcase_02 AC 69 ms
23,176 KB
testcase_03 AC 69 ms
21,248 KB
testcase_04 AC 70 ms
19,164 KB
testcase_05 AC 70 ms
23,280 KB
testcase_06 AC 69 ms
23,220 KB
testcase_07 AC 70 ms
23,216 KB
testcase_08 WA -
testcase_09 AC 69 ms
21,284 KB
testcase_10 AC 69 ms
21,144 KB
testcase_11 AC 69 ms
21,164 KB
testcase_12 AC 70 ms
21,340 KB
testcase_13 AC 69 ms
21,220 KB
testcase_14 AC 75 ms
21,324 KB
testcase_15 AC 70 ms
23,204 KB
testcase_16 AC 69 ms
23,168 KB
testcase_17 AC 68 ms
21,184 KB
testcase_18 AC 73 ms
23,536 KB
testcase_19 WA -
testcase_20 AC 68 ms
21,172 KB
testcase_21 AC 69 ms
23,168 KB
testcase_22 AC 69 ms
21,064 KB
testcase_23 AC 70 ms
21,272 KB
testcase_24 AC 69 ms
19,300 KB
testcase_25 AC 76 ms
23,400 KB
testcase_26 AC 74 ms
21,448 KB
testcase_27 AC 76 ms
21,400 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<e&&e<w)?"East":"West");
    }
}
0