結果
| 問題 | No.341 沈黙の期間 |
| コンテスト | |
| ユーザー |
chiyoda
|
| 提出日時 | 2016-06-22 12:27:16 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 70 ms / 5,000 ms |
| + 597µs | |
| コード長 | 417 bytes |
| 記録 | |
| コンパイル時間 | 1,605 ms |
| コンパイル使用メモリ | 86,172 KB |
| 実行使用メモリ | 43,232 KB |
| 最終ジャッジ日時 | 2026-09-14 04:40:38 |
| 合計ジャッジ時間 | 4,287 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
int cnt = 0;
int max = 0;
for (int i = 0; i < s.length(); i++) {
if (s.charAt(i) == '…') {
cnt++;
max = Math.max(cnt, max);
} else {
cnt = 0;
}
}
System.out.println(max);
}
}
chiyoda