結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
50,292 KB
testcase_01 AC 61 ms
50,456 KB
testcase_02 AC 61 ms
50,552 KB
testcase_03 AC 62 ms
50,424 KB
testcase_04 AC 61 ms
50,524 KB
testcase_05 AC 61 ms
50,404 KB
testcase_06 AC 62 ms
50,624 KB
testcase_07 AC 62 ms
50,288 KB
testcase_08 AC 61 ms
50,464 KB
testcase_09 AC 62 ms
50,056 KB
testcase_10 AC 63 ms
50,072 KB
testcase_11 AC 61 ms
50,544 KB
testcase_12 AC 61 ms
50,540 KB
testcase_13 AC 61 ms
50,060 KB
testcase_14 AC 63 ms
49,948 KB
testcase_15 AC 61 ms
50,112 KB
testcase_16 AC 61 ms
50,312 KB
testcase_17 AC 61 ms
50,156 KB
testcase_18 AC 61 ms
50,484 KB
testcase_19 AC 61 ms
50,456 KB
testcase_20 AC 61 ms
50,512 KB
testcase_21 AC 62 ms
50,284 KB
testcase_22 AC 63 ms
50,428 KB
testcase_23 AC 60 ms
50,384 KB
testcase_24 AC 63 ms
50,460 KB
testcase_25 AC 61 ms
50,572 KB
testcase_26 AC 62 ms
50,436 KB
testcase_27 AC 62 ms
50,008 KB
testcase_28 AC 61 ms
50,508 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;

public class No00000203_Main {

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

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

		List<String> holidayArr = Arrays.asList((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