結果
問題 |
No.712 赤旗
|
ユーザー |
|
提出日時 | 2019-02-13 10:39:16 |
言語 | Java (openjdk 23) |
結果 |
RE
|
実行時間 | - |
コード長 | 360 bytes |
コンパイル時間 | 2,282 ms |
コンパイル使用メモリ | 75,412 KB |
実行使用メモリ | 54,316 KB |
最終ジャッジ日時 | 2024-09-13 09:53:37 |
合計ジャッジ時間 | 3,452 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 2 RE * 1 |
ソースコード
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(i) == 'W') count++; } } System.out.println(count); } }