結果

問題 No.418 ミンミンゼミ
ユーザー TwinkleStar74TwinkleStar74
提出日時 2017-10-20 23:47:33
言語 Java21
(openjdk 21)
結果
AC  
実行時間 41 ms / 1,000 ms
コード長 378 bytes
コンパイル時間 3,885 ms
コンパイル使用メモリ 71,776 KB
実行使用メモリ 49,824 KB
最終ジャッジ日時 2023-09-23 02:01:41
合計ジャッジ時間 5,080 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
47,168 KB
testcase_01 AC 40 ms
49,824 KB
testcase_02 AC 39 ms
49,304 KB
testcase_03 AC 40 ms
47,344 KB
testcase_04 AC 41 ms
49,228 KB
testcase_05 AC 40 ms
49,164 KB
testcase_06 AC 40 ms
49,676 KB
testcase_07 AC 40 ms
49,532 KB
testcase_08 AC 40 ms
49,376 KB
testcase_09 AC 41 ms
49,316 KB
testcase_10 AC 40 ms
49,420 KB
testcase_11 AC 39 ms
49,156 KB
testcase_12 AC 39 ms
49,120 KB
testcase_13 AC 39 ms
49,220 KB
testcase_14 AC 40 ms
49,480 KB
testcase_15 AC 40 ms
49,380 KB
testcase_16 AC 40 ms
49,484 KB
testcase_17 AC 40 ms
49,128 KB
testcase_18 AC 40 ms
49,308 KB
testcase_19 AC 40 ms
49,304 KB
testcase_20 AC 40 ms
49,380 KB
testcase_21 AC 39 ms
49,280 KB
testcase_22 AC 40 ms
49,684 KB
testcase_23 AC 40 ms
49,112 KB
testcase_24 AC 40 ms
49,672 KB
testcase_25 AC 41 ms
49,372 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;

public class No418{
    public static void main(String[] args) throws IOException{
        String cry = new BufferedReader(new InputStreamReader(System.in)).readLine();
        char[] chr = cry.toCharArray();
        int ans = 0;
        for(int i=0; i< chr.length; i++){
            if(chr[i] == 'n') ans++;
        }
        System.out.println(ans);
    }
}
0