結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー | chiho_miyako |
提出日時 | 2015-05-08 22:53:27 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 127 ms / 1,000 ms |
コード長 | 650 bytes |
コンパイル時間 | 3,062 ms |
コンパイル使用メモリ | 76,776 KB |
実行使用メモリ | 41,556 KB |
最終ジャッジ日時 | 2024-04-29 07:40:30 |
合計ジャッジ時間 | 6,630 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 125 ms
41,556 KB |
testcase_01 | AC | 127 ms
41,416 KB |
testcase_02 | AC | 126 ms
40,968 KB |
testcase_03 | AC | 125 ms
41,068 KB |
testcase_04 | AC | 126 ms
40,904 KB |
testcase_05 | AC | 123 ms
41,048 KB |
testcase_06 | AC | 125 ms
41,064 KB |
testcase_07 | AC | 110 ms
40,236 KB |
testcase_08 | AC | 124 ms
41,124 KB |
testcase_09 | AC | 124 ms
40,992 KB |
testcase_10 | AC | 126 ms
41,152 KB |
testcase_11 | AC | 123 ms
41,176 KB |
testcase_12 | AC | 111 ms
39,904 KB |
testcase_13 | AC | 125 ms
41,316 KB |
testcase_14 | AC | 125 ms
40,976 KB |
testcase_15 | AC | 125 ms
41,064 KB |
testcase_16 | AC | 115 ms
39,892 KB |
testcase_17 | AC | 108 ms
39,980 KB |
testcase_18 | AC | 125 ms
40,728 KB |
testcase_19 | AC | 125 ms
41,284 KB |
testcase_20 | AC | 125 ms
40,944 KB |
testcase_21 | AC | 126 ms
40,968 KB |
testcase_22 | AC | 124 ms
41,336 KB |
testcase_23 | AC | 127 ms
41,296 KB |
testcase_24 | AC | 122 ms
40,980 KB |
testcase_25 | AC | 112 ms
40,240 KB |
testcase_26 | AC | 112 ms
39,796 KB |
testcase_27 | AC | 110 ms
39,828 KB |
testcase_28 | AC | 112 ms
40,100 KB |
ソースコード
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; if(whole.equals("xxxxxxxxxxxxxx")){ System.out.println(0); }else{ 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]); } } }