結果

問題 No.418 ミンミンゼミ
ユーザー YOSHIYOSHI
提出日時 2021-03-16 22:06:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 55 ms / 1,000 ms
コード長 419 bytes
コンパイル時間 3,117 ms
コンパイル使用メモリ 74,260 KB
実行使用メモリ 37,208 KB
最終ジャッジ日時 2024-04-26 04:23:05
合計ジャッジ時間 5,413 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
36,976 KB
testcase_01 AC 50 ms
36,968 KB
testcase_02 AC 49 ms
36,880 KB
testcase_03 AC 55 ms
37,032 KB
testcase_04 AC 50 ms
36,708 KB
testcase_05 AC 49 ms
36,704 KB
testcase_06 AC 50 ms
36,980 KB
testcase_07 AC 49 ms
37,160 KB
testcase_08 AC 51 ms
37,096 KB
testcase_09 AC 49 ms
36,972 KB
testcase_10 AC 49 ms
36,708 KB
testcase_11 AC 50 ms
37,104 KB
testcase_12 AC 49 ms
37,108 KB
testcase_13 AC 49 ms
37,000 KB
testcase_14 AC 49 ms
36,892 KB
testcase_15 AC 51 ms
36,916 KB
testcase_16 AC 50 ms
37,160 KB
testcase_17 AC 49 ms
37,068 KB
testcase_18 AC 51 ms
37,148 KB
testcase_19 AC 52 ms
36,968 KB
testcase_20 AC 50 ms
36,808 KB
testcase_21 AC 50 ms
37,208 KB
testcase_22 AC 49 ms
36,916 KB
testcase_23 AC 49 ms
36,696 KB
testcase_24 AC 50 ms
37,208 KB
testcase_25 AC 48 ms
36,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No00000418_Main {
	static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	public static void main(String[] args) throws IOException {
		String s = br.readLine();
		int cnt = 0;
		for(int i = 0; i < s.length(); i++) {
			if(s.charAt(i) == 'm') cnt++;
		}
		System.out.println(cnt);
	}
}
0