結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 69 ms
21,116 KB
testcase_04 AC 69 ms
21,072 KB
testcase_05 AC 69 ms
21,268 KB
testcase_06 WA -
testcase_07 AC 70 ms
23,312 KB
testcase_08 WA -
testcase_09 AC 68 ms
21,136 KB
testcase_10 AC 69 ms
21,332 KB
testcase_11 AC 69 ms
21,132 KB
testcase_12 AC 69 ms
19,168 KB
testcase_13 WA -
testcase_14 AC 74 ms
21,388 KB
testcase_15 WA -
testcase_16 AC 69 ms
21,384 KB
testcase_17 AC 68 ms
21,388 KB
testcase_18 AC 74 ms
19,304 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 69 ms
21,240 KB
testcase_22 AC 70 ms
21,320 KB
testcase_23 AC 69 ms
21,256 KB
testcase_24 AC 69 ms
21,168 KB
testcase_25 AC 74 ms
21,356 KB
testcase_26 AC 75 ms
23,336 KB
testcase_27 AC 75 ms
23,460 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((e<w)?"East":"West");
    }
}
0