結果
問題 | No.418 ミンミンゼミ |
ユーザー |
|
提出日時 | 2021-03-16 22:06:00 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 54 ms / 1,000 ms |
コード長 | 419 bytes |
コンパイル時間 | 3,431 ms |
コンパイル使用メモリ | 72,724 KB |
実行使用メモリ | 37,160 KB |
最終ジャッジ日時 | 2024-11-08 16:59:17 |
合計ジャッジ時間 | 5,905 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 25 |
ソースコード
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No00000418_Main { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); public static void main(String[] args) throws IOException { String s = br.readLine(); int cnt = 0; for(int i = 0; i < s.length(); i++) { if(s.charAt(i) == 'm') cnt++; } System.out.println(cnt); } }