結果

問題 No.486 3 Straight Win(3連勝)
ユーザー 14番14番
提出日時 2017-03-02 14:57:39
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 1,407 bytes
コンパイル時間 3,998 ms
コンパイル使用メモリ 102,976 KB
実行使用メモリ 22,632 KB
最終ジャッジ日時 2023-09-03 20:35:54
合計ジャッジ時間 6,908 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
18,316 KB
testcase_01 AC 48 ms
20,420 KB
testcase_02 AC 50 ms
20,572 KB
testcase_03 AC 47 ms
20,472 KB
testcase_04 AC 47 ms
22,352 KB
testcase_05 AC 47 ms
20,476 KB
testcase_06 AC 47 ms
20,460 KB
testcase_07 AC 47 ms
20,412 KB
testcase_08 AC 47 ms
20,412 KB
testcase_09 AC 47 ms
20,476 KB
testcase_10 AC 48 ms
20,668 KB
testcase_11 AC 48 ms
20,480 KB
testcase_12 AC 47 ms
20,356 KB
testcase_13 AC 47 ms
20,384 KB
testcase_14 AC 47 ms
20,460 KB
testcase_15 WA -
testcase_16 AC 47 ms
20,296 KB
testcase_17 AC 47 ms
18,432 KB
testcase_18 AC 47 ms
20,528 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 48 ms
22,528 KB
testcase_22 AC 49 ms
20,340 KB
testcase_23 AC 50 ms
20,412 KB
testcase_24 AC 48 ms
20,628 KB
testcase_25 AC 48 ms
20,580 KB
testcase_26 AC 47 ms
20,504 KB
testcase_27 AC 48 ms
20,540 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

    using System;
    using System.Linq;
    using System.Collections.Generic;
    using System.Text.RegularExpressions;
    using System.Text;
     
    public class Program
    {
        public void Proc() {
            Reader.IsDebug = false;
            string inpt = Reader.ReadLine();
            for(int i=0; i<inpt.Length-3;i++) {
                if(inpt.Substring(i, 3).Equals("OOO")) {
                    Console.WriteLine("East");
                    return;
                } else if(inpt.Substring(i,3).Equals("XXX")) {
                    Console.WriteLine("West");
                    return;
                }
            }
            Console.WriteLine("NA");
        }

        public class Reader {
            public static bool IsDebug = true;
            private static System.IO.StringReader SReader;
            private static string InitText = @"



OXOOXXX



";
            public static string ReadLine() {
                if(IsDebug) {
                    if(SReader == null) {
                        SReader = new System.IO.StringReader(InitText.Trim());
                    }
                    return SReader.ReadLine();
                } else {
                    return Console.ReadLine();
                }
            }
        }
        public static void Main(string[] args)
        {
            Program prg = new Program();
            prg.Proc();
        }
    }
0