結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー fal_rndfal_rnd
提出日時 2017-08-08 18:11:12
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 683 bytes
コンパイル時間 2,272 ms
コンパイル使用メモリ 86,812 KB
実行使用メモリ 54,304 KB
最終ジャッジ日時 2024-04-20 05:13:21
合計ジャッジ時間 6,608 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
54,228 KB
testcase_01 RE -
testcase_02 AC 118 ms
54,024 KB
testcase_03 AC 120 ms
54,236 KB
testcase_04 AC 119 ms
54,100 KB
testcase_05 AC 123 ms
54,240 KB
testcase_06 AC 120 ms
54,268 KB
testcase_07 AC 106 ms
53,108 KB
testcase_08 AC 122 ms
54,104 KB
testcase_09 AC 108 ms
53,124 KB
testcase_10 AC 116 ms
54,244 KB
testcase_11 AC 106 ms
53,180 KB
testcase_12 AC 105 ms
53,172 KB
testcase_13 AC 116 ms
54,192 KB
testcase_14 AC 121 ms
54,244 KB
testcase_15 AC 125 ms
54,252 KB
testcase_16 AC 112 ms
53,072 KB
testcase_17 AC 105 ms
53,000 KB
testcase_18 AC 106 ms
53,144 KB
testcase_19 AC 117 ms
54,304 KB
testcase_20 AC 119 ms
54,152 KB
testcase_21 AC 120 ms
53,984 KB
testcase_22 AC 123 ms
54,244 KB
testcase_23 AC 121 ms
54,180 KB
testcase_24 AC 124 ms
54,088 KB
testcase_25 AC 123 ms
53,880 KB
testcase_26 AC 112 ms
53,164 KB
testcase_27 AC 119 ms
54,148 KB
testcase_28 AC 102 ms
52,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.Scanner;
import java.util.stream.IntStream;

public class Main{
	static Scanner s=new Scanner(System.in);
	static int getInt(){return Integer.parseInt(s.next());}
	static IntStream REPS(int v){return IntStream.range(0,v);}
	static IntStream REPS(int l,int r){return IntStream.rangeClosed(l,r);}
	static IntStream INS(int n) {return REPS(n).map(i->getInt());}
	static class Pair<T,U>{
		T l;U r;
		Pair(T L,U R){l=L;r=R;}
		T getL(){return l;}
		U getR(){return r;}
	}

	public static void main(String[]$){
		System.out.println(
				Arrays.stream((s.next()+s.next()).split("x"))
				.mapToInt(String::length)
				.max().getAsInt()
				);
	}
}
0