結果

問題 No.418 ミンミンゼミ
ユーザー jimanojimano
提出日時 2018-01-13 22:26:01
言語 Java21
(openjdk 21)
結果
AC  
実行時間 45 ms / 1,000 ms
コード長 503 bytes
コンパイル時間 3,292 ms
コンパイル使用メモリ 71,356 KB
実行使用メモリ 43,640 KB
最終ジャッジ日時 2023-09-23 02:04:27
合計ジャッジ時間 5,471 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
41,592 KB
testcase_01 AC 43 ms
43,152 KB
testcase_02 AC 43 ms
43,052 KB
testcase_03 AC 43 ms
43,192 KB
testcase_04 AC 43 ms
43,228 KB
testcase_05 AC 44 ms
43,452 KB
testcase_06 AC 44 ms
43,104 KB
testcase_07 AC 44 ms
43,640 KB
testcase_08 AC 43 ms
43,128 KB
testcase_09 AC 43 ms
43,164 KB
testcase_10 AC 45 ms
43,628 KB
testcase_11 AC 45 ms
43,548 KB
testcase_12 AC 43 ms
43,236 KB
testcase_13 AC 43 ms
43,240 KB
testcase_14 AC 44 ms
43,124 KB
testcase_15 AC 43 ms
43,172 KB
testcase_16 AC 43 ms
43,052 KB
testcase_17 AC 43 ms
43,468 KB
testcase_18 AC 43 ms
43,056 KB
testcase_19 AC 42 ms
43,292 KB
testcase_20 AC 43 ms
43,208 KB
testcase_21 AC 42 ms
43,084 KB
testcase_22 AC 42 ms
43,180 KB
testcase_23 AC 42 ms
43,248 KB
testcase_24 AC 44 ms
43,468 KB
testcase_25 AC 44 ms
43,124 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package me.yukicoder.lv1;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * ミンミンゼミ
 */
public class No0418_2 {
	public static void main(String[] args) {
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String[] str = br.readLine().split("n");
			System.out.println(str.length);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
0