結果
| 問題 | No.341 沈黙の期間 |
| コンテスト | |
| ユーザー |
ぴろず
|
| 提出日時 | 2016-02-12 22:22:03 |
| 言語 | Java (openjdk 27.0.1.0.3 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 136 ms / 5,000 ms |
| + 435µs | |
| コード長 | 423 bytes |
| 記録 | |
| コンパイル時間 | 1,789 ms |
| コンパイル使用メモリ | 95,468 KB |
| 実行使用メモリ | 48,204 KB |
| 最終ジャッジ日時 | 2026-11-10 17:47:27 |
| 合計ジャッジ時間 | 5,621 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge7_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 |
ソースコード
package no341;
import java.util.Scanner;
public class Main {
public static final char dots = '…';
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
int max = 0;
int len = 0;
for(int i=0;i<s.length();i++) {
char c = s.charAt(i);
if (c == dots) {
len++;
max = Math.max(max, len);
}else{
len = 0;
}
}
System.out.println(max);
}
}
ぴろず