結果

問題 No.712 赤旗
ユーザー curryudon08curryudon08
提出日時 2020-06-17 16:24:20
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 570 bytes
コンパイル時間 2,156 ms
コンパイル使用メモリ 102,640 KB
実行使用メモリ 22,964 KB
最終ジャッジ日時 2023-09-16 11:31:55
合計ジャッジ時間 3,071 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
22,712 KB
testcase_01 AC 56 ms
20,656 KB
testcase_02 AC 57 ms
22,704 KB
testcase_03 AC 57 ms
20,660 KB
testcase_04 AC 58 ms
22,964 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace _0712
{
    class Program
    {
        static void Main(string[] args)
        {
            var _ = Console.ReadLine().Split();
            var n = int.Parse(_[0]);
            var m = int.Parse(_[1]);

            var cnt = 0;
            for(var i = 0; i < n; i++){
                var s = Console.ReadLine().Trim();
                for(var j = 0; j < m; j++){
                    if(s[j] == 'W'){
                        cnt += 1;
                    }
                }
            }

            Console.WriteLine(cnt);
        }
    }
}
0