結果

問題 No.418 ミンミンゼミ
ユーザー 37zigen37zigen
提出日時 2016-09-10 01:30:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 1,000 ms
コード長 357 bytes
コンパイル時間 3,451 ms
コンパイル使用メモリ 72,652 KB
実行使用メモリ 56,600 KB
最終ジャッジ日時 2023-09-23 00:51:12
合計ジャッジ時間 7,341 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
55,796 KB
testcase_01 AC 113 ms
55,864 KB
testcase_02 AC 114 ms
55,880 KB
testcase_03 AC 116 ms
55,984 KB
testcase_04 AC 117 ms
56,452 KB
testcase_05 AC 113 ms
55,540 KB
testcase_06 AC 114 ms
55,432 KB
testcase_07 AC 114 ms
55,852 KB
testcase_08 AC 116 ms
55,948 KB
testcase_09 AC 113 ms
56,296 KB
testcase_10 AC 114 ms
55,800 KB
testcase_11 AC 114 ms
56,124 KB
testcase_12 AC 115 ms
55,868 KB
testcase_13 AC 114 ms
56,120 KB
testcase_14 AC 120 ms
55,944 KB
testcase_15 AC 114 ms
55,460 KB
testcase_16 AC 116 ms
55,624 KB
testcase_17 AC 117 ms
55,684 KB
testcase_18 AC 114 ms
56,600 KB
testcase_19 AC 114 ms
55,688 KB
testcase_20 AC 113 ms
55,708 KB
testcase_21 AC 112 ms
55,728 KB
testcase_22 AC 114 ms
55,692 KB
testcase_23 AC 115 ms
56,252 KB
testcase_24 AC 113 ms
55,688 KB
testcase_25 AC 113 ms
55,960 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package No400番台;

import java.util.Scanner;

public class Q418 {
	public static void main(String[] args) {
		new Q418().solver();
	}

	void solver() {
		Scanner sc = new Scanner(System.in);
		char[] c = sc.next().toCharArray();
		int ans = 0;
		for (int i = 0; i < c.length; i++) {
			if (c[i] - 'm' == 0)
				ans++;
		}
		System.out.println(ans);
	}
}
0