結果
問題 | No.712 赤旗 |
ユーザー | yui556 |
提出日時 | 2018-08-24 16:52:53 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 157 ms / 2,000 ms |
コード長 | 380 bytes |
コンパイル時間 | 5,806 ms |
コンパイル使用メモリ | 71,800 KB |
実行使用メモリ | 56,248 KB |
最終ジャッジ日時 | 2023-09-04 15:33:08 |
合計ジャッジ時間 | 4,845 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 126 ms
55,712 KB |
testcase_01 | AC | 128 ms
55,576 KB |
testcase_02 | AC | 127 ms
55,692 KB |
testcase_03 | AC | 129 ms
55,340 KB |
testcase_04 | AC | 157 ms
56,248 KB |
ソースコード
import java.util.Scanner; public class No_712 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); final int N = sc.nextInt(); final int Y = sc.nextInt(); int count = 0; for(int i = 0 ; i < N ; i++) { String[] s = sc.next().split(""); for(String ss :s) { if("W".equals(ss)) count++; } } System.out.println(count); } }