結果

問題 No.418 ミンミンゼミ
ユーザー GrenacheGrenache
提出日時 2016-09-09 22:23:02
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 1,000 ms
コード長 611 bytes
コンパイル時間 3,496 ms
コンパイル使用メモリ 71,648 KB
実行使用メモリ 57,396 KB
最終ジャッジ日時 2023-09-23 00:43:43
合計ジャッジ時間 7,715 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
56,248 KB
testcase_01 AC 125 ms
55,740 KB
testcase_02 AC 122 ms
53,808 KB
testcase_03 AC 124 ms
55,496 KB
testcase_04 AC 121 ms
56,080 KB
testcase_05 AC 121 ms
55,740 KB
testcase_06 AC 122 ms
55,692 KB
testcase_07 AC 121 ms
55,888 KB
testcase_08 AC 121 ms
55,756 KB
testcase_09 AC 121 ms
53,888 KB
testcase_10 AC 121 ms
54,124 KB
testcase_11 AC 120 ms
55,500 KB
testcase_12 AC 123 ms
56,072 KB
testcase_13 AC 121 ms
55,840 KB
testcase_14 AC 123 ms
56,152 KB
testcase_15 AC 121 ms
55,632 KB
testcase_16 AC 121 ms
55,652 KB
testcase_17 AC 122 ms
57,396 KB
testcase_18 AC 122 ms
55,928 KB
testcase_19 AC 122 ms
55,852 KB
testcase_20 AC 118 ms
55,456 KB
testcase_21 AC 121 ms
55,916 KB
testcase_22 AC 120 ms
55,900 KB
testcase_23 AC 120 ms
55,704 KB
testcase_24 AC 121 ms
55,616 KB
testcase_25 AC 120 ms
56,000 KB
権限があれば一括ダウンロードができます

ソースコード

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