結果

問題 No.341 沈黙の期間
ユーザー takubokudori
提出日時 2017-09-04 20:41:04
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 306 bytes
コンパイル時間 3,190 ms
コンパイル使用メモリ 74,448 KB
実行使用メモリ 41,732 KB
最終ジャッジ日時 2024-11-06 20:55:55
合計ジャッジ時間 5,723 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class test{
	public static void main(String[] args){
		Scanner in=new Scanner(System.in);
		String s=in.next();
		int c=0;
		int m=0;
		System.out.println(s);
		for(int i=0;i<s.length();i++){
			if(s.charAt(i)=='…')c++;
			else c=0;
			m=(c>m?c:m);
		}
		System.out.println(m);
	}
}
0