結果
問題 |
No.203 ゴールデン・ウィーク(1)
|
ユーザー |
|
提出日時 | 2019-02-14 13:22:16 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 120 ms / 1,000 ms |
コード長 | 305 bytes |
コンパイル時間 | 1,901 ms |
コンパイル使用メモリ | 76,448 KB |
実行使用メモリ | 54,296 KB |
最終ジャッジ日時 | 2024-11-18 10:35:32 |
合計ジャッジ時間 | 6,052 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
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 = 0; for (int i=0; i<ar.length; i++) { max = Math.max(max, ar[i].length()); } System.out.println(max); } }