結果

問題 No.418 ミンミンゼミ
ユーザー GrenacheGrenache
提出日時 2016-09-09 22:23:02
言語 Java
(openjdk 23)
結果
AC  
実行時間 124 ms / 1,000 ms
コード長 611 bytes
コンパイル時間 3,295 ms
コンパイル使用メモリ 75,472 KB
実行使用メモリ 54,316 KB
最終ジャッジ日時 2024-07-16 01:12:10
合計ジャッジ時間 6,950 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;


public class Main_yukicoder418 {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		char[] s = sc.next().toCharArray();

		int ret = 0;
		for (char c : s) {
			if (c == 'n') {
				ret++;
			}
		}

		pr.println(ret);
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
}
0