結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー fal_rndfal_rnd
提出日時 2017-08-08 18:12:28
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 1,000 ms
コード長 273 bytes
コンパイル時間 2,531 ms
コンパイル使用メモリ 76,328 KB
実行使用メモリ 55,864 KB
最終ジャッジ日時 2023-08-11 16:35:08
合計ジャッジ時間 7,714 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
55,724 KB
testcase_01 AC 131 ms
55,360 KB
testcase_02 AC 131 ms
55,516 KB
testcase_03 AC 131 ms
55,864 KB
testcase_04 AC 131 ms
55,332 KB
testcase_05 AC 131 ms
55,456 KB
testcase_06 AC 132 ms
55,220 KB
testcase_07 AC 132 ms
55,544 KB
testcase_08 AC 130 ms
55,788 KB
testcase_09 AC 131 ms
55,608 KB
testcase_10 AC 132 ms
55,348 KB
testcase_11 AC 131 ms
53,688 KB
testcase_12 AC 132 ms
55,608 KB
testcase_13 AC 133 ms
55,604 KB
testcase_14 AC 133 ms
55,612 KB
testcase_15 AC 132 ms
55,752 KB
testcase_16 AC 132 ms
55,724 KB
testcase_17 AC 134 ms
55,416 KB
testcase_18 AC 131 ms
55,336 KB
testcase_19 AC 132 ms
55,700 KB
testcase_20 AC 131 ms
55,412 KB
testcase_21 AC 130 ms
55,296 KB
testcase_22 AC 131 ms
55,468 KB
testcase_23 AC 131 ms
55,472 KB
testcase_24 AC 129 ms
55,408 KB
testcase_25 AC 130 ms
55,544 KB
testcase_26 AC 130 ms
55,212 KB
testcase_27 AC 130 ms
55,584 KB
testcase_28 AC 132 ms
55,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.Scanner;
class M{
	static Scanner s=new Scanner(System.in);
	public static void main(String[]$){
		System.out.println(
				Arrays.stream((s.next()+s.next()).split("x"))
				.mapToInt(String::length)
				.max().orElse(0)
				);
	}
}
0