結果

問題 No.486 3 Straight Win(3連勝)
ユーザー swdamdrswdamdr
提出日時 2017-02-27 13:11:15
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 416 bytes
コンパイル時間 3,942 ms
コンパイル使用メモリ 97,940 KB
実行使用メモリ 22,660 KB
最終ジャッジ日時 2023-09-02 12:39:55
合計ジャッジ時間 4,780 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
22,476 KB
testcase_01 AC 51 ms
20,616 KB
testcase_02 AC 51 ms
18,564 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 50 ms
20,540 KB
testcase_06 AC 50 ms
20,468 KB
testcase_07 WA -
testcase_08 AC 50 ms
20,488 KB
testcase_09 WA -
testcase_10 AC 50 ms
22,424 KB
testcase_11 AC 51 ms
22,532 KB
testcase_12 WA -
testcase_13 AC 50 ms
20,436 KB
testcase_14 AC 51 ms
20,612 KB
testcase_15 AC 51 ms
20,424 KB
testcase_16 AC 51 ms
22,660 KB
testcase_17 AC 51 ms
22,404 KB
testcase_18 AC 51 ms
18,520 KB
testcase_19 AC 51 ms
20,544 KB
testcase_20 AC 51 ms
22,528 KB
testcase_21 AC 52 ms
20,664 KB
testcase_22 AC 51 ms
20,564 KB
testcase_23 WA -
testcase_24 AC 50 ms
18,404 KB
testcase_25 AC 50 ms
22,456 KB
testcase_26 AC 50 ms
22,448 KB
testcase_27 AC 50 ms
20,412 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;

class Program
{
    static void Main(string[] args)
    {
        string s = Console.ReadLine();
        string ans = "NA";

        if (s.Contains("OOO"))
        {
            ans = "East";
        }
        else if (s.Contains("XXX"))
        {
            ans = "West";
        }

        Console.WriteLine(ans);
        Console.Read();
    }
}
0