結果

問題 No.486 3 Straight Win(3連勝)
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-06-15 01:37:00
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 334 bytes
コンパイル時間 1,960 ms
コンパイル使用メモリ 98,840 KB
実行使用メモリ 23,216 KB
最終ジャッジ日時 2023-09-13 04:27:36
合計ジャッジ時間 5,209 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
23,216 KB
testcase_01 AC 68 ms
19,216 KB
testcase_02 AC 69 ms
21,260 KB
testcase_03 AC 70 ms
21,272 KB
testcase_04 AC 69 ms
21,132 KB
testcase_05 AC 68 ms
21,108 KB
testcase_06 AC 70 ms
23,080 KB
testcase_07 AC 70 ms
21,100 KB
testcase_08 AC 70 ms
21,160 KB
testcase_09 AC 69 ms
21,152 KB
testcase_10 AC 70 ms
21,208 KB
testcase_11 AC 69 ms
23,184 KB
testcase_12 AC 68 ms
21,016 KB
testcase_13 AC 69 ms
23,204 KB
testcase_14 AC 74 ms
21,384 KB
testcase_15 AC 69 ms
19,100 KB
testcase_16 AC 70 ms
21,244 KB
testcase_17 AC 68 ms
21,160 KB
testcase_18 AC 74 ms
21,380 KB
testcase_19 AC 68 ms
21,140 KB
testcase_20 AC 69 ms
21,160 KB
testcase_21 AC 67 ms
19,116 KB
testcase_22 AC 69 ms
23,188 KB
testcase_23 AC 69 ms
21,184 KB
testcase_24 AC 69 ms
21,148 KB
testcase_25 AC 74 ms
21,492 KB
testcase_26 AC 73 ms
21,500 KB
testcase_27 AC 73 ms
21,368 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");
        string a;
        if(e==w) a="NA";
        else if(e==-1||w==-1) a=(w==-1)?"East":"West";
        else a=(e<w)?"East":"West";
        Console.WriteLine(a);
    }
}
0