結果

問題 No.341 沈黙の期間
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-05-20 20:11:47
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 348 bytes
コンパイル時間 2,171 ms
コンパイル使用メモリ 76,792 KB
実行使用メモリ 56,748 KB
最終ジャッジ日時 2023-09-11 00:07:45
合計ジャッジ時間 4,955 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
56,020 KB
testcase_01 AC 123 ms
55,804 KB
testcase_02 AC 124 ms
56,028 KB
testcase_03 AC 121 ms
55,708 KB
testcase_04 AC 123 ms
55,752 KB
testcase_05 AC 127 ms
55,856 KB
testcase_06 AC 126 ms
55,924 KB
testcase_07 AC 123 ms
55,876 KB
testcase_08 AC 125 ms
56,076 KB
testcase_09 AC 121 ms
55,904 KB
testcase_10 AC 124 ms
56,748 KB
testcase_11 RE -
testcase_12 AC 124 ms
56,504 KB
testcase_13 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import static java.lang.System.*;
import java.util.*;

public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		String s = sc.next();
		List<String> list = Arrays.asList(s.split("[^…]"));
		list.sort(Comparator.comparingInt(String::length).reversed());
		out.println(list.get(0).length());
	}
}
0