結果

問題 No.418 ミンミンゼミ
ユーザー samplelpmassamplelpmas
提出日時 2017-01-10 16:44:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 113 ms / 1,000 ms
コード長 428 bytes
コンパイル時間 2,799 ms
コンパイル使用メモリ 71,460 KB
実行使用メモリ 56,752 KB
最終ジャッジ日時 2023-09-23 01:45:51
合計ジャッジ時間 5,804 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
55,896 KB
testcase_01 AC 107 ms
55,804 KB
testcase_02 AC 112 ms
56,752 KB
testcase_03 AC 106 ms
55,632 KB
testcase_04 AC 111 ms
54,488 KB
testcase_05 AC 112 ms
56,420 KB
testcase_06 AC 109 ms
55,520 KB
testcase_07 AC 110 ms
55,260 KB
testcase_08 AC 109 ms
56,144 KB
testcase_09 AC 112 ms
55,684 KB
testcase_10 AC 113 ms
56,456 KB
testcase_11 AC 110 ms
56,112 KB
testcase_12 AC 109 ms
55,924 KB
testcase_13 AC 108 ms
56,244 KB
testcase_14 AC 112 ms
55,628 KB
testcase_15 AC 110 ms
55,400 KB
testcase_16 AC 111 ms
55,924 KB
testcase_17 AC 112 ms
55,632 KB
testcase_18 AC 112 ms
56,292 KB
testcase_19 AC 111 ms
55,876 KB
testcase_20 AC 112 ms
55,704 KB
testcase_21 AC 108 ms
53,668 KB
testcase_22 AC 112 ms
54,088 KB
testcase_23 AC 110 ms
55,784 KB
testcase_24 AC 110 ms
55,312 KB
testcase_25 AC 109 ms
55,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        String minminString = sc.next();

        int minminCount = 0;

        for (int i = 0; i < minminString.length(); i++) {

            if (minminString.charAt(i) == 'n') {
                minminCount++;
            }

        }

        System.out.println(minminCount);

    }

}
0