結果
問題 |
No.712 赤旗
|
ユーザー |
![]() |
提出日時 | 2018-07-13 22:26:04 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 26 ms / 2,000 ms |
コード長 | 414 bytes |
コンパイル時間 | 837 ms |
コンパイル使用メモリ | 113,696 KB |
実行使用メモリ | 24,944 KB |
最終ジャッジ日時 | 2024-10-09 05:15:56 |
合計ジャッジ時間 | 1,393 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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); } } }