結果

問題 No.341 沈黙の期間
ユーザー mizunomi32mizunomi32
提出日時 2016-02-28 22:42:17
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 444 bytes
コンパイル時間 3,098 ms
コンパイル使用メモリ 75,596 KB
実行使用メモリ 57,652 KB
最終ジャッジ日時 2023-10-24 18:54:32
合計ジャッジ時間 5,650 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
57,544 KB
testcase_01 WA -
testcase_02 AC 120 ms
57,564 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 121 ms
57,380 KB
testcase_12 AC 127 ms
57,396 KB
testcase_13 AC 121 ms
57,568 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();
        char[] chars = S.toCharArray();
        int lengths =S.length();
        int i=0;
        int count=0;

        for(;i<lengths;i++){
            if(chars[i]=='…'){
                count++;
            }
            
        }
        System.out.println(count);
    }
}
0