結果
問題 | No.418 ミンミンゼミ |
ユーザー |
|
提出日時 | 2017-10-20 23:47:33 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 50 ms / 1,000 ms |
コード長 | 378 bytes |
コンパイル時間 | 3,627 ms |
コンパイル使用メモリ | 74,948 KB |
実行使用メモリ | 37,188 KB |
最終ジャッジ日時 | 2024-07-16 02:29:09 |
合計ジャッジ時間 | 5,104 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 25 |
ソースコード
import java.io.*;public class No418{public static void main(String[] args) throws IOException{String cry = new BufferedReader(new InputStreamReader(System.in)).readLine();char[] chr = cry.toCharArray();int ans = 0;for(int i=0; i< chr.length; i++){if(chr[i] == 'n') ans++;}System.out.println(ans);}}