結果
問題 |
No.341 沈黙の期間
|
ユーザー |
![]() |
提出日時 | 2020-12-07 13:59:30 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 122 ms / 5,000 ms |
コード長 | 435 bytes |
コンパイル時間 | 2,123 ms |
コンパイル使用メモリ | 75,032 KB |
実行使用メモリ | 41,472 KB |
最終ジャッジ日時 | 2024-09-17 13:53:03 |
合計ジャッジ時間 | 4,059 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int max = 0; int count = 0; for (char c : sc.nextLine().toCharArray()) { if (c == '…') { count++; } else { count = 0; } max = Math.max(max, count); } System.out.println(max); } }