結果

問題 No.418 ミンミンゼミ
ユーザー manini
提出日時 2016-09-11 01:04:55
言語 Java
(openjdk 23)
結果
AC  
実行時間 125 ms / 1,000 ms
コード長 291 bytes
コンパイル時間 2,278 ms
コンパイル使用メモリ 75,740 KB
実行使用メモリ 41,592 KB
最終ジャッジ日時 2024-07-16 01:22:03
合計ジャッジ時間 7,012 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

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