結果

問題 No.486 3 Straight Win(3連勝)
ユーザー nattoumarunattoumaru
提出日時 2018-02-17 19:54:34
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 734 bytes
コンパイル時間 731 ms
コンパイル使用メモリ 61,040 KB
実行使用メモリ 25,284 KB
最終ジャッジ日時 2023-09-06 17:53:13
合計ジャッジ時間 3,845 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 57 ms
23,180 KB
testcase_04 AC 58 ms
23,212 KB
testcase_05 AC 57 ms
23,308 KB
testcase_06 WA -
testcase_07 AC 58 ms
21,128 KB
testcase_08 WA -
testcase_09 AC 54 ms
21,220 KB
testcase_10 AC 54 ms
21,092 KB
testcase_11 AC 55 ms
21,200 KB
testcase_12 AC 55 ms
21,224 KB
testcase_13 WA -
testcase_14 AC 60 ms
23,360 KB
testcase_15 WA -
testcase_16 AC 57 ms
21,216 KB
testcase_17 AC 58 ms
21,192 KB
testcase_18 AC 59 ms
23,336 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 55 ms
19,196 KB
testcase_22 AC 56 ms
23,120 KB
testcase_23 AC 55 ms
21,184 KB
testcase_24 AC 56 ms
21,076 KB
testcase_25 AC 62 ms
23,416 KB
testcase_26 AC 61 ms
21,316 KB
testcase_27 AC 61 ms
21,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace programPractice
{
    class Program
    {
        static void Main(string[] args)
        {
                string marubatsu = Console.ReadLine();

                int e = marubatsu.IndexOf("XXX");
                int w = marubatsu.IndexOf("OOO");

                if (w == e)
                {
                    Console.WriteLine("NA");
                }
                else if (w < e)
                {
                    Console.WriteLine("East");
                }
                else
                {
                    Console.WriteLine("West");
                }
            
        }
    }
}
0