結果

問題 No.418 ミンミンゼミ
ユーザー bellbell
提出日時 2021-02-18 21:20:14
言語 Java19
(openjdk 21)
結果
AC  
実行時間 121 ms / 1,000 ms
コード長 279 bytes
コンパイル時間 2,415 ms
コンパイル使用メモリ 71,792 KB
実行使用メモリ 56,328 KB
最終ジャッジ日時 2023-10-13 04:48:35
合計ジャッジ時間 6,947 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,852 KB
testcase_01 AC 119 ms
55,792 KB
testcase_02 AC 119 ms
56,012 KB
testcase_03 AC 119 ms
55,572 KB
testcase_04 AC 118 ms
56,024 KB
testcase_05 AC 118 ms
55,640 KB
testcase_06 AC 118 ms
56,068 KB
testcase_07 AC 116 ms
55,852 KB
testcase_08 AC 118 ms
56,172 KB
testcase_09 AC 119 ms
56,012 KB
testcase_10 AC 118 ms
55,824 KB
testcase_11 AC 118 ms
56,328 KB
testcase_12 AC 118 ms
56,060 KB
testcase_13 AC 121 ms
55,712 KB
testcase_14 AC 120 ms
56,096 KB
testcase_15 AC 121 ms
55,924 KB
testcase_16 AC 120 ms
56,044 KB
testcase_17 AC 119 ms
55,960 KB
testcase_18 AC 119 ms
55,604 KB
testcase_19 AC 117 ms
55,796 KB
testcase_20 AC 121 ms
55,732 KB
testcase_21 AC 120 ms
55,748 KB
testcase_22 AC 118 ms
55,408 KB
testcase_23 AC 118 ms
56,120 KB
testcase_24 AC 117 ms
55,752 KB
testcase_25 AC 116 ms
55,404 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s=sc.next();
		sc.close();
		int count=0;
		for(char c : s.toCharArray()){
			if(c=='m'){
				count++;
			}
		}
		System.out.println(count);
		}
	}
0