結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 60 ms
21,180 KB
testcase_04 AC 59 ms
21,148 KB
testcase_05 AC 59 ms
21,140 KB
testcase_06 WA -
testcase_07 AC 55 ms
21,212 KB
testcase_08 WA -
testcase_09 AC 57 ms
21,240 KB
testcase_10 AC 57 ms
21,128 KB
testcase_11 AC 58 ms
21,272 KB
testcase_12 AC 60 ms
21,156 KB
testcase_13 WA -
testcase_14 AC 65 ms
21,428 KB
testcase_15 WA -
testcase_16 AC 61 ms
23,216 KB
testcase_17 AC 61 ms
21,280 KB
testcase_18 AC 63 ms
21,284 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 55 ms
21,088 KB
testcase_22 AC 57 ms
23,132 KB
testcase_23 AC 57 ms
23,168 KB
testcase_24 AC 57 ms
21,184 KB
testcase_25 AC 63 ms
21,456 KB
testcase_26 AC 63 ms
23,356 KB
testcase_27 AC 66 ms
23,332 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 w = marubatsu.IndexOf("XXX");
                int e = marubatsu.IndexOf("OOO");

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