結果
問題 |
No.203 ゴールデン・ウィーク(1)
|
ユーザー |
|
提出日時 | 2019-02-14 13:21:43 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 321 bytes |
コンパイル時間 | 2,352 ms |
コンパイル使用メモリ | 76,792 KB |
実行使用メモリ | 54,124 KB |
最終ジャッジ日時 | 2024-09-13 11:20:49 |
合計ジャッジ時間 | 7,096 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 28 WA * 1 |
ソースコード
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 = Integer.MIN_VALUE; for (int i=0; i<ar.length; i++) { max = Math.max(max, ar[i].length()); } System.out.println(max); } }