結果

問題 No.341 沈黙の期間
ユーザー TatsuDXTatsuDX
提出日時 2016-09-03 15:01:38
言語 Java21
(openjdk 21)
結果
AC  
実行時間 139 ms / 5,000 ms
コード長 263 bytes
コンパイル時間 3,705 ms
コンパイル使用メモリ 76,224 KB
実行使用メモリ 54,340 KB
最終ジャッジ日時 2024-04-27 15:21:35
合計ジャッジ時間 6,465 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
54,128 KB
testcase_01 AC 137 ms
53,888 KB
testcase_02 AC 138 ms
54,300 KB
testcase_03 AC 139 ms
54,164 KB
testcase_04 AC 123 ms
53,132 KB
testcase_05 AC 134 ms
54,024 KB
testcase_06 AC 133 ms
54,004 KB
testcase_07 AC 132 ms
53,972 KB
testcase_08 AC 131 ms
54,224 KB
testcase_09 AC 132 ms
54,052 KB
testcase_10 AC 134 ms
53,976 KB
testcase_11 AC 129 ms
53,932 KB
testcase_12 AC 134 ms
54,340 KB
testcase_13 AC 130 ms
53,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Test {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String s = sc.next(), t = "…";
		int n = 0;
		while (s.indexOf(t) >= 0) {
			n++;
			t += "…";
		}
		System.out.println(n);
	}
}
0