結果

問題 No.712 赤旗
ユーザー NoNo
提出日時 2018-07-13 22:26:04
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 414 bytes
コンパイル時間 2,252 ms
コンパイル使用メモリ 106,776 KB
実行使用メモリ 21,508 KB
最終ジャッジ日時 2023-07-30 09:45:05
合計ジャッジ時間 3,206 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
19,484 KB
testcase_01 AC 59 ms
21,504 KB
testcase_02 AC 60 ms
21,416 KB
testcase_03 AC 60 ms
21,384 KB
testcase_04 AC 60 ms
21,508 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;

namespace y
{
    class Program
    {
        static void Main(string[] args)
        {
            var ss = Console.ReadLine().Split();
            var h = int.Parse(ss[0]);

            var a = 0;
            for (int i = 0; i < h; i++)
            {
                a += Console.ReadLine().Count(x => x == 'W');
            }
            Console.WriteLine(a);
        }
    }
}
0