結果
| 問題 | No.203 ゴールデン・ウィーク(1) |
| コンテスト | |
| ユーザー |
mits58
|
| 提出日時 | 2016-06-05 17:42:57 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 52 ms / 1,000 ms |
| + 261µs | |
| コード長 | 530 bytes |
| 記録 | |
| コンパイル時間 | 1,335 ms |
| コンパイル使用メモリ | 85,920 KB |
| 実行使用メモリ | 45,424 KB |
| 最終ジャッジ日時 | 2026-09-25 18:36:20 |
| 合計ジャッジ時間 | 4,424 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
import java.util.Scanner;
public class Main{
public static void main(String args[]){
Scanner sc=new Scanner(System.in);
while(sc.hasNext()){
char[] c=new char[14];
String str=sc.next();
for(int i=0;i<7;i++) c[i]=str.charAt(i);
str=sc.next();
for(int i=0;i<7;i++) c[i+7]=str.charAt(i);
int res=0;
for(int i=0;i<c.length;i++){
if(c[i]=='o'){
int t=1; i++;
while(i<c.length && c[i]=='o'){
t++;
i++;
}
res=Math.max(res, t);
}
}
System.out.println(res);
}
}
}
mits58