結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー kenji_shioyakenji_shioya
提出日時 2016-06-14 20:21:50
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 386 bytes
コンパイル時間 3,492 ms
コンパイル使用メモリ 76,656 KB
実行使用メモリ 54,444 KB
最終ジャッジ日時 2024-04-17 19:39:18
合計ジャッジ時間 7,246 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 97 ms
52,620 KB
testcase_01 RE -
testcase_02 AC 117 ms
54,136 KB
testcase_03 AC 114 ms
54,444 KB
testcase_04 AC 108 ms
53,468 KB
testcase_05 AC 116 ms
54,012 KB
testcase_06 AC 112 ms
54,004 KB
testcase_07 AC 114 ms
53,740 KB
testcase_08 AC 112 ms
54,000 KB
testcase_09 AC 114 ms
54,168 KB
testcase_10 AC 117 ms
54,268 KB
testcase_11 AC 102 ms
53,148 KB
testcase_12 AC 112 ms
54,188 KB
testcase_13 AC 118 ms
54,000 KB
testcase_14 AC 114 ms
54,168 KB
testcase_15 AC 106 ms
53,552 KB
testcase_16 AC 108 ms
53,344 KB
testcase_17 AC 109 ms
54,092 KB
testcase_18 AC 115 ms
54,088 KB
testcase_19 AC 110 ms
53,928 KB
testcase_20 AC 97 ms
52,952 KB
testcase_21 AC 115 ms
54,096 KB
testcase_22 AC 112 ms
54,316 KB
testcase_23 AC 99 ms
53,008 KB
testcase_24 AC 106 ms
53,544 KB
testcase_25 AC 99 ms
52,908 KB
testcase_26 AC 102 ms
52,760 KB
testcase_27 AC 107 ms
53,384 KB
testcase_28 AC 109 ms
53,996 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Exercise81{
  public static void main (String[] args){

    Scanner sc = new Scanner(System.in);

    String weekOne = sc.next();
    String weekTwo = sc.next();

    String twoWeeks = weekOne + weekTwo;
    String[] weekArray = twoWeeks.split("x");

    Arrays.sort(weekArray);

    System.out.println(weekArray[weekArray.length - 1].length());
  }
}
0