結果

問題 No.418 ミンミンゼミ
ユーザー maninimanini
提出日時 2016-09-11 01:04:55
言語 Java19
(openjdk 21)
結果
AC  
実行時間 123 ms / 1,000 ms
コード長 291 bytes
コンパイル時間 2,520 ms
コンパイル使用メモリ 72,628 KB
実行使用メモリ 56,724 KB
最終ジャッジ日時 2023-09-23 00:55:20
合計ジャッジ時間 5,976 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
56,724 KB
testcase_01 AC 116 ms
56,160 KB
testcase_02 AC 115 ms
55,524 KB
testcase_03 AC 115 ms
56,064 KB
testcase_04 AC 116 ms
55,912 KB
testcase_05 AC 116 ms
56,172 KB
testcase_06 AC 116 ms
56,436 KB
testcase_07 AC 115 ms
55,400 KB
testcase_08 AC 115 ms
55,512 KB
testcase_09 AC 117 ms
55,516 KB
testcase_10 AC 123 ms
55,536 KB
testcase_11 AC 113 ms
56,196 KB
testcase_12 AC 113 ms
55,808 KB
testcase_13 AC 114 ms
56,044 KB
testcase_14 AC 113 ms
55,800 KB
testcase_15 AC 114 ms
55,488 KB
testcase_16 AC 114 ms
55,972 KB
testcase_17 AC 111 ms
55,792 KB
testcase_18 AC 115 ms
55,780 KB
testcase_19 AC 112 ms
56,620 KB
testcase_20 AC 112 ms
55,580 KB
testcase_21 AC 112 ms
55,772 KB
testcase_22 AC 115 ms
56,432 KB
testcase_23 AC 110 ms
55,872 KB
testcase_24 AC 114 ms
55,900 KB
testcase_25 AC 112 ms
55,828 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
 
public class Main {
 
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String str=s.next();
		
		int count=0;
		for(int i=0;i<str.length();i++){
			if(str.charAt(i)=='n'){
				count++;
			}
		}
		
		System.out.println(count);
	}
}
0