結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー darknightdarknight
提出日時 2016-11-28 15:21:59
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 1,000 ms
コード長 602 bytes
コンパイル時間 2,537 ms
コンパイル使用メモリ 71,576 KB
実行使用メモリ 56,032 KB
最終ジャッジ日時 2023-08-11 16:25:43
合計ジャッジ時間 6,845 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,668 KB
testcase_01 AC 121 ms
55,672 KB
testcase_02 AC 119 ms
55,668 KB
testcase_03 AC 121 ms
55,784 KB
testcase_04 AC 122 ms
55,444 KB
testcase_05 AC 122 ms
55,660 KB
testcase_06 AC 122 ms
55,604 KB
testcase_07 AC 122 ms
55,596 KB
testcase_08 AC 122 ms
55,720 KB
testcase_09 AC 125 ms
55,384 KB
testcase_10 AC 123 ms
55,548 KB
testcase_11 AC 123 ms
55,744 KB
testcase_12 AC 122 ms
55,580 KB
testcase_13 AC 124 ms
55,620 KB
testcase_14 AC 121 ms
55,552 KB
testcase_15 AC 122 ms
55,432 KB
testcase_16 AC 120 ms
55,588 KB
testcase_17 AC 121 ms
55,740 KB
testcase_18 AC 122 ms
55,436 KB
testcase_19 AC 121 ms
55,740 KB
testcase_20 AC 121 ms
56,032 KB
testcase_21 AC 123 ms
55,672 KB
testcase_22 AC 124 ms
55,908 KB
testcase_23 AC 123 ms
55,668 KB
testcase_24 AC 122 ms
55,568 KB
testcase_25 AC 121 ms
55,856 KB
testcase_26 AC 120 ms
55,752 KB
testcase_27 AC 124 ms
55,540 KB
testcase_28 AC 121 ms
53,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
 
public class Main {
	public static void main(String[] args) {
 
	Scanner sc  = new Scanner(System.in);
        
    int cnt1 = 0;
    int ans = 0;

	int f=0;
		
    for(int i=0;i<2;i++){
        String s1 = sc.next();
        char[] c1 = s1.toCharArray();
            for(int k=0;k<s1.length();k++){
                if(c1[k]=='o')
                {
                    f++;
                    ans = Math.max( ans  , f );
                }else{
                    f=0;
                }
        }
    }


        System.out.print(ans);
        System.out.println();
	}
        
}
0