結果

問題 No.486 3 Straight Win(3連勝)
ユーザー Crowea
提出日時 2019-01-24 11:44:45
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 538 bytes
コンパイル時間 2,000 ms
コンパイル使用メモリ 102,400 KB
実行使用メモリ 17,408 KB
最終ジャッジ日時 2024-09-16 04:35:50
合計ジャッジ時間 2,291 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22 WA * 6
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.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