結果
| 問題 | No.712 赤旗 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-03 11:30:46 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
AC
|
| 実行時間 | 49 ms / 2,000 ms |
| コード長 | 492 bytes |
| 記録 | |
| コンパイル時間 | 7,839 ms |
| コンパイル使用メモリ | 168,264 KB |
| 実行使用メモリ | 185,896 KB |
| 最終ジャッジ日時 | 2025-12-03 11:30:55 |
| 合計ジャッジ時間 | 7,961 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (111 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
class Program
{
static void Main(string[] args)
{
string[] inputNum = Console.ReadLine()!.Split(' ');
int row = int.Parse(inputNum[0]);
int count = 0;
for (int i = 0; i < row; i++)
{
string input = Console.ReadLine()!;
foreach (char c in input)
{
if (c == 'W')
{
count++;
}
}
}
Console.WriteLine(count);
}
}