結果

問題 No.486 3 Straight Win(3連勝)
ユーザー CroweaCrowea
提出日時 2019-01-24 11:44:45
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 538 bytes
コンパイル時間 1,454 ms
コンパイル使用メモリ 68,836 KB
実行使用メモリ 22,672 KB
最終ジャッジ日時 2023-10-14 09:36:56
合計ジャッジ時間 3,793 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
18,552 KB
testcase_01 AC 50 ms
22,584 KB
testcase_02 AC 51 ms
20,456 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 50 ms
22,536 KB
testcase_06 AC 50 ms
20,612 KB
testcase_07 WA -
testcase_08 AC 50 ms
18,484 KB
testcase_09 WA -
testcase_10 AC 49 ms
20,624 KB
testcase_11 AC 50 ms
22,500 KB
testcase_12 WA -
testcase_13 AC 52 ms
20,608 KB
testcase_14 AC 51 ms
20,548 KB
testcase_15 AC 50 ms
18,548 KB
testcase_16 AC 51 ms
22,496 KB
testcase_17 AC 50 ms
22,484 KB
testcase_18 AC 51 ms
22,472 KB
testcase_19 AC 50 ms
22,604 KB
testcase_20 AC 50 ms
20,592 KB
testcase_21 AC 51 ms
20,452 KB
testcase_22 AC 50 ms
22,584 KB
testcase_23 WA -
testcase_24 AC 50 ms
20,552 KB
testcase_25 AC 49 ms
20,484 KB
testcase_26 AC 49 ms
20,432 KB
testcase_27 AC 50 ms
20,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
    class Program
    {
        const string WIN = "OOO";
        const string LOSE = "XXX";
        const string E = "East";
        const string W = "West";
        const string N = "NA";
        static void Main(string[] args)
        {
            var line = Console.ReadLine();           
            if (line.Contains(WIN)) Console.WriteLine(E);
            else if (line.Contains(LOSE)) Console.WriteLine(W);
            else Console.WriteLine(N);
        }
    }
0