結果

問題 No.418 ミンミンゼミ
ユーザー aim_cpoaim_cpo
提出日時 2019-04-18 16:14:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 1,000 ms
コード長 332 bytes
コンパイル時間 5,649 ms
コンパイル使用メモリ 75,104 KB
実行使用メモリ 57,628 KB
最終ジャッジ日時 2023-10-22 08:19:17
合計ジャッジ時間 8,673 ms
ジャッジサーバーID
(参考情報)
judge9 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
57,340 KB
testcase_01 AC 128 ms
57,592 KB
testcase_02 AC 126 ms
57,156 KB
testcase_03 AC 126 ms
57,396 KB
testcase_04 AC 125 ms
57,340 KB
testcase_05 AC 126 ms
57,420 KB
testcase_06 AC 128 ms
57,400 KB
testcase_07 AC 130 ms
57,628 KB
testcase_08 AC 129 ms
57,468 KB
testcase_09 AC 134 ms
57,436 KB
testcase_10 AC 128 ms
57,372 KB
testcase_11 AC 129 ms
57,444 KB
testcase_12 AC 126 ms
57,444 KB
testcase_13 AC 125 ms
57,440 KB
testcase_14 AC 128 ms
57,444 KB
testcase_15 AC 127 ms
57,596 KB
testcase_16 AC 130 ms
57,400 KB
testcase_17 AC 127 ms
57,464 KB
testcase_18 AC 127 ms
57,440 KB
testcase_19 AC 126 ms
57,344 KB
testcase_20 AC 127 ms
57,356 KB
testcase_21 AC 125 ms
57,052 KB
testcase_22 AC 128 ms
57,452 KB
testcase_23 AC 133 ms
57,456 KB
testcase_24 AC 126 ms
57,160 KB
testcase_25 AC 124 ms
57,432 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class TaskJ {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        String s = cin.next();
        int ans = 0;
        for (int i = 0; i < s.length(); ++i) {
            if (s.charAt(i) == 'm') ans++;
        }
        System.out.println(ans);
    }
}
0