結果

問題 No.2960 Judgement
ユーザー 鳩でもわかるC#
提出日時 2025-01-19 00:55:19
言語 C#
(.NET 8.0.404)
結果
AC  
実行時間 60 ms / 777 ms
コード長 574 bytes
コンパイル時間 25,392 ms
コンパイル使用メモリ 172,032 KB
実行使用メモリ 184,836 KB
最終ジャッジ日時 2025-01-19 00:55:47
合計ジャッジ時間 19,896 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (135 ミリ秒)。
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;

class Program
{
    static string ReadLine()
    {
        return Console.ReadLine().Trim();
    }

    static void Main()
    {
        int score = 0;
        string[] vs = ReadLine().Split();
        foreach (string s in vs)
        {
            if (s == "AC" || s == "NoOut")
                score++;
        }
        if (score >= 6)
            Console.WriteLine("Win");
        else if (score == 5)
            Console.WriteLine("Draw");
        else
            Console.WriteLine("Lose");
    }
}

0