結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 68 ms
21,200 KB
testcase_04 AC 68 ms
21,208 KB
testcase_05 AC 68 ms
21,244 KB
testcase_06 WA -
testcase_07 AC 68 ms
23,108 KB
testcase_08 WA -
testcase_09 AC 68 ms
21,108 KB
testcase_10 AC 68 ms
23,224 KB
testcase_11 AC 69 ms
21,140 KB
testcase_12 AC 67 ms
19,144 KB
testcase_13 WA -
testcase_14 AC 73 ms
21,464 KB
testcase_15 WA -
testcase_16 AC 68 ms
21,064 KB
testcase_17 AC 69 ms
21,116 KB
testcase_18 AC 72 ms
21,296 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 69 ms
21,156 KB
testcase_22 AC 70 ms
21,124 KB
testcase_23 AC 69 ms
23,156 KB
testcase_24 AC 69 ms
21,304 KB
testcase_25 AC 75 ms
23,312 KB
testcase_26 AC 75 ms
21,452 KB
testcase_27 AC 74 ms
21,344 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