結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー YOSHIYOSHI
提出日時 2021-03-05 21:05:33
言語 Java21
(openjdk 21)
結果
AC  
実行時間 63 ms / 1,000 ms
コード長 489 bytes
コンパイル時間 3,525 ms
コンパイル使用メモリ 79,892 KB
実行使用メモリ 50,660 KB
最終ジャッジ日時 2024-04-16 08:27:26
合計ジャッジ時間 6,258 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
50,400 KB
testcase_01 AC 60 ms
50,460 KB
testcase_02 AC 61 ms
50,260 KB
testcase_03 AC 60 ms
50,432 KB
testcase_04 AC 60 ms
50,660 KB
testcase_05 AC 62 ms
50,316 KB
testcase_06 AC 60 ms
50,436 KB
testcase_07 AC 61 ms
50,512 KB
testcase_08 AC 61 ms
50,328 KB
testcase_09 AC 60 ms
50,592 KB
testcase_10 AC 62 ms
50,272 KB
testcase_11 AC 62 ms
50,424 KB
testcase_12 AC 60 ms
50,560 KB
testcase_13 AC 61 ms
50,356 KB
testcase_14 AC 60 ms
50,440 KB
testcase_15 AC 61 ms
50,060 KB
testcase_16 AC 60 ms
50,580 KB
testcase_17 AC 62 ms
50,604 KB
testcase_18 AC 63 ms
50,576 KB
testcase_19 AC 60 ms
50,544 KB
testcase_20 AC 61 ms
50,548 KB
testcase_21 AC 60 ms
50,300 KB
testcase_22 AC 62 ms
50,396 KB
testcase_23 AC 60 ms
50,544 KB
testcase_24 AC 61 ms
50,568 KB
testcase_25 AC 60 ms
50,564 KB
testcase_26 AC 62 ms
50,100 KB
testcase_27 AC 60 ms
50,336 KB
testcase_28 AC 60 ms
50,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No00000203_Main2 {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] holidayArr = (br.readLine() + br.readLine()).split("x+");

		int max = 0;
		for(String holiday : holidayArr) {
			if(holiday.length() > max) {
				max = holiday.length();
			}
		}
		System.out.println(max);;
	}
}
0