結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー chiho_miyakochiho_miyako
提出日時 2015-05-08 22:33:51
言語 Java21
(openjdk 21)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 437 bytes
コンパイル時間 2,512 ms
コンパイル使用メモリ 74,256 KB
実行使用メモリ 56,092 KB
最終ジャッジ日時 2023-09-19 06:50:36
合計ジャッジ時間 7,943 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,820 KB
testcase_01 RE -
testcase_02 AC 127 ms
55,760 KB
testcase_03 AC 127 ms
55,952 KB
testcase_04 AC 127 ms
55,348 KB
testcase_05 AC 126 ms
55,676 KB
testcase_06 AC 126 ms
55,544 KB
testcase_07 AC 130 ms
55,796 KB
testcase_08 AC 132 ms
55,644 KB
testcase_09 AC 126 ms
55,772 KB
testcase_10 AC 129 ms
55,716 KB
testcase_11 AC 126 ms
55,424 KB
testcase_12 AC 125 ms
55,924 KB
testcase_13 AC 125 ms
55,984 KB
testcase_14 AC 128 ms
56,092 KB
testcase_15 AC 130 ms
56,024 KB
testcase_16 AC 135 ms
55,728 KB
testcase_17 AC 133 ms
55,592 KB
testcase_18 AC 131 ms
55,524 KB
testcase_19 AC 128 ms
55,632 KB
testcase_20 AC 128 ms
55,508 KB
testcase_21 AC 125 ms
55,644 KB
testcase_22 AC 125 ms
55,780 KB
testcase_23 AC 127 ms
55,780 KB
testcase_24 AC 126 ms
55,640 KB
testcase_25 AC 125 ms
55,704 KB
testcase_26 AC 127 ms
55,668 KB
testcase_27 AC 127 ms
55,740 KB
testcase_28 AC 126 ms
55,768 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Ideone{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner koko = new Scanner(System.in);
		String one = koko.next();
		String two = koko.next();
		String whole = one + two;
		String[] who = whole.split("x");
		int[] week = new int[who.length];
		for(int i=0; i<who.length; i++){
			week[i]=who[i].length();
		}
		Arrays.sort(week);
		System.out.println(week[who.length-1]);
	}
}
0