結果
| 問題 |
No.341 沈黙の期間
|
| コンテスト | |
| ユーザー |
Tsukasa_Type
|
| 提出日時 | 2018-05-20 20:11:47 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 348 bytes |
| コンパイル時間 | 2,612 ms |
| コンパイル使用メモリ | 77,540 KB |
| 実行使用メモリ | 41,580 KB |
| 最終ジャッジ日時 | 2024-06-28 14:45:52 |
| 合計ジャッジ時間 | 5,174 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 RE * 2 |
ソースコード
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());
}
}
Tsukasa_Type