結果
問題 | No.712 赤旗 |
ユーザー |
|
提出日時 | 2019-02-13 10:39:58 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 141 ms / 2,000 ms |
コード長 | 360 bytes |
コンパイル時間 | 2,051 ms |
コンパイル使用メモリ | 74,536 KB |
実行使用メモリ | 56,084 KB |
最終ジャッジ日時 | 2024-09-13 09:53:41 |
合計ジャッジ時間 | 3,186 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 |
ソースコード
import java.util.*;class Main {static Scanner sc = new Scanner(System.in);public static void main(String[] args) {int h = sc.nextInt(); int w = sc.nextInt();int count = 0;for (int i=0; i<h; i++) {String temp = sc.next();for (int j=0; j<w; j++) {if (temp.charAt(j) == 'W') count++;}}System.out.println(count);}}