結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー YukimotoPGYukimotoPG
提出日時 2019-02-14 13:21:43
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 321 bytes
コンパイル時間 2,272 ms
コンパイル使用メモリ 73,872 KB
実行使用メモリ 56,216 KB
最終ジャッジ日時 2023-10-11 12:33:48
合計ジャッジ時間 7,372 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,612 KB
testcase_01 WA -
testcase_02 AC 119 ms
55,752 KB
testcase_03 AC 119 ms
56,216 KB
testcase_04 AC 118 ms
55,860 KB
testcase_05 AC 118 ms
55,560 KB
testcase_06 AC 117 ms
55,828 KB
testcase_07 AC 116 ms
54,228 KB
testcase_08 AC 117 ms
55,804 KB
testcase_09 AC 118 ms
55,724 KB
testcase_10 AC 118 ms
55,788 KB
testcase_11 AC 127 ms
55,204 KB
testcase_12 AC 121 ms
55,612 KB
testcase_13 AC 121 ms
55,540 KB
testcase_14 AC 124 ms
55,560 KB
testcase_15 AC 118 ms
55,396 KB
testcase_16 AC 118 ms
55,660 KB
testcase_17 AC 119 ms
55,792 KB
testcase_18 AC 121 ms
55,616 KB
testcase_19 AC 125 ms
55,684 KB
testcase_20 AC 119 ms
55,548 KB
testcase_21 AC 121 ms
55,872 KB
testcase_22 AC 125 ms
55,876 KB
testcase_23 AC 120 ms
55,836 KB
testcase_24 AC 120 ms
55,980 KB
testcase_25 AC 124 ms
55,680 KB
testcase_26 AC 123 ms
55,608 KB
testcase_27 AC 122 ms
55,308 KB
testcase_28 AC 122 ms
55,392 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		
		String[] ar = (sc.next()+sc.next()).split("x",0);
		int max = Integer.MIN_VALUE;
		for (int i=0; i<ar.length; i++) {
			max = Math.max(max, ar[i].length());
		}
		System.out.println(max);
		
	}
}
0