結果
| 問題 | No.712 赤旗 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-20 16:12:32 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 55 ms / 2,000 ms |
| コード長 | 591 bytes |
| 記録 | |
| コンパイル時間 | 1,434 ms |
| コンパイル使用メモリ | 82,092 KB |
| 実行使用メモリ | 42,100 KB |
| 最終ジャッジ日時 | 2026-04-30 22:25:40 |
| 合計ジャッジ時間 | 2,415 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 |
ソースコード
import java.util.*;
// yukicoder No.712 赤旗
public class Main {
public static void main(String[] args) throws Exception {
Scanner in = new Scanner(System.in);
int N = in.nextInt();
int M = in.nextInt();
final int total = N * M;
int count = 0;
for(int i=0; i<N; i++){
String L = in.next();
char[] arr = L.toCharArray();
for(char c : arr){
if(c == 'W') {
count++;
}
}
}
System.out.println(count);
}
}