結果
| 問題 | No.203 ゴールデン・ウィーク(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-08-07 20:36:48 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 53 ms / 1,000 ms |
| + 252µs | |
| コード長 | 514 bytes |
| 記録 | |
| コンパイル時間 | 2,459 ms |
| コンパイル使用メモリ | 87,668 KB |
| 実行使用メモリ | 45,376 KB |
| 最終ジャッジ日時 | 2026-09-25 18:20:56 |
| 合計ジャッジ時間 | 5,523 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
import java.util.*;
public class gw{
public static void main(String... args){
Scanner scan = new Scanner(System.in);
String str1 = scan.next();
String str2 = scan.next();
System.out.println(calc(str1+str2));
}
public static int calc(String str){
int[] counter = new int[14];
for(int i = 0; i < counter.length;i++){
counter[i] = 0;
}
String[] h = str.split("x",0);
int max = 0;
for(int i = 0;i<h.length;i++){
if(h[i].length() > max){
max = h[i].length();
}
}
return max;
}
}