結果

問題 No.418 ミンミンゼミ
ユーザー imcgsknimcgskn
提出日時 2017-12-12 17:22:39
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 1,000 ms
コード長 405 bytes
コンパイル時間 1,984 ms
コンパイル使用メモリ 71,816 KB
実行使用メモリ 56,132 KB
最終ジャッジ日時 2023-09-23 02:03:17
合計ジャッジ時間 6,255 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
56,024 KB
testcase_01 AC 117 ms
55,772 KB
testcase_02 AC 117 ms
55,684 KB
testcase_03 AC 117 ms
55,644 KB
testcase_04 AC 118 ms
56,024 KB
testcase_05 AC 120 ms
55,704 KB
testcase_06 AC 117 ms
56,092 KB
testcase_07 AC 118 ms
53,580 KB
testcase_08 AC 117 ms
55,872 KB
testcase_09 AC 117 ms
56,112 KB
testcase_10 AC 118 ms
55,740 KB
testcase_11 AC 119 ms
55,872 KB
testcase_12 AC 118 ms
55,888 KB
testcase_13 AC 116 ms
55,568 KB
testcase_14 AC 119 ms
55,916 KB
testcase_15 AC 117 ms
56,040 KB
testcase_16 AC 118 ms
56,056 KB
testcase_17 AC 118 ms
55,980 KB
testcase_18 AC 118 ms
56,132 KB
testcase_19 AC 119 ms
55,756 KB
testcase_20 AC 118 ms
55,692 KB
testcase_21 AC 117 ms
55,468 KB
testcase_22 AC 118 ms
55,724 KB
testcase_23 AC 118 ms
55,532 KB
testcase_24 AC 115 ms
55,884 KB
testcase_25 AC 117 ms
55,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Minzemi {
    public static void main(String args[]) {
        Scanner stdIn = new Scanner(System.in);

        String min = stdIn.next(); //文字列
        char pur = 'm';
        int count = 0; //カウント

        for(char x: min.toCharArray()){
            if(x == pur){
                count++;
            }
        }
        System.out.println(count);
    }
}
0