結果

問題 No.418 ミンミンゼミ
ユーザー btkbtk
提出日時 2017-10-17 15:20:06
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 1,000 ms
コード長 397 bytes
コンパイル時間 1,983 ms
コンパイル使用メモリ 71,976 KB
実行使用メモリ 56,288 KB
最終ジャッジ日時 2023-09-23 02:01:47
合計ジャッジ時間 6,230 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,964 KB
testcase_01 AC 116 ms
55,968 KB
testcase_02 AC 116 ms
56,096 KB
testcase_03 AC 116 ms
56,132 KB
testcase_04 AC 116 ms
56,200 KB
testcase_05 AC 115 ms
55,708 KB
testcase_06 AC 115 ms
55,724 KB
testcase_07 AC 115 ms
55,616 KB
testcase_08 AC 116 ms
55,696 KB
testcase_09 AC 116 ms
56,288 KB
testcase_10 AC 115 ms
55,380 KB
testcase_11 AC 116 ms
56,284 KB
testcase_12 AC 117 ms
55,380 KB
testcase_13 AC 117 ms
55,856 KB
testcase_14 AC 115 ms
55,924 KB
testcase_15 AC 117 ms
55,920 KB
testcase_16 AC 120 ms
55,372 KB
testcase_17 AC 117 ms
55,624 KB
testcase_18 AC 116 ms
55,524 KB
testcase_19 AC 117 ms
55,656 KB
testcase_20 AC 117 ms
56,084 KB
testcase_21 AC 116 ms
55,752 KB
testcase_22 AC 116 ms
55,648 KB
testcase_23 AC 121 ms
55,772 KB
testcase_24 AC 117 ms
55,744 KB
testcase_25 AC 116 ms
55,524 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        //ここから処理開始
        String s=sc.next();
        int ret = 0;
        for (int i = 0; i < s.length(); i++) {
            if(s.charAt(i)=='i')ret++;
        }
        System.out.println(ret);
        //ここまで
        sc.close();
    }
}
0