結果
問題 |
No.712 赤旗
|
ユーザー |
![]() |
提出日時 | 2019-03-15 16:41:35 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 28 ms / 2,000 ms |
コード長 | 511 bytes |
コンパイル時間 | 884 ms |
コンパイル使用メモリ | 106,624 KB |
実行使用メモリ | 19,072 KB |
最終ジャッジ日時 | 2024-07-01 19:56:18 |
合計ジャッジ時間 | 1,694 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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.Text.RegularExpressions; using System.Linq; class Program { public void Solve() { int[] NM = Console.ReadLine().Split(' ').Select(X => int.Parse(X)).ToArray(); int fill = 0; for (int i = 1; i <= NM[0]; i++) { var A = Console.ReadLine(); fill += A.Replace("R", "").Length; } Console.WriteLine(fill); } static void Main() { var solver = new Program(); solver.Solve(); } }