結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー YukimotoPGYukimotoPG
提出日時 2019-02-14 13:22:16
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 1,000 ms
コード長 305 bytes
コンパイル時間 2,103 ms
コンパイル使用メモリ 76,936 KB
実行使用メモリ 41,468 KB
最終ジャッジ日時 2024-04-29 08:38:55
合計ジャッジ時間 6,387 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 106 ms
40,064 KB
testcase_01 AC 109 ms
41,156 KB
testcase_02 AC 124 ms
41,200 KB
testcase_03 AC 112 ms
40,880 KB
testcase_04 AC 116 ms
41,296 KB
testcase_05 AC 100 ms
40,260 KB
testcase_06 AC 111 ms
40,340 KB
testcase_07 AC 112 ms
41,052 KB
testcase_08 AC 105 ms
40,832 KB
testcase_09 AC 114 ms
40,040 KB
testcase_10 AC 120 ms
41,268 KB
testcase_11 AC 117 ms
40,860 KB
testcase_12 AC 117 ms
40,944 KB
testcase_13 AC 111 ms
40,832 KB
testcase_14 AC 112 ms
40,776 KB
testcase_15 AC 115 ms
39,924 KB
testcase_16 AC 126 ms
41,192 KB
testcase_17 AC 108 ms
41,468 KB
testcase_18 AC 106 ms
41,336 KB
testcase_19 AC 123 ms
41,088 KB
testcase_20 AC 124 ms
41,176 KB
testcase_21 AC 116 ms
41,012 KB
testcase_22 AC 121 ms
41,344 KB
testcase_23 AC 109 ms
41,224 KB
testcase_24 AC 110 ms
41,244 KB
testcase_25 AC 110 ms
41,176 KB
testcase_26 AC 120 ms
41,384 KB
testcase_27 AC 110 ms
41,108 KB
testcase_28 AC 102 ms
41,340 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 = 0;
		for (int i=0; i<ar.length; i++) {
			max = Math.max(max, ar[i].length());
		}
		System.out.println(max);
		
	}
}
0