結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー MoominPazMoominPaz
提出日時 2015-10-07 21:04:04
言語 Java19
(openjdk 21)
結果
AC  
実行時間 126 ms / 1,000 ms
コード長 663 bytes
コンパイル時間 4,465 ms
コンパイル使用メモリ 73,140 KB
実行使用メモリ 56,000 KB
最終ジャッジ日時 2023-08-11 15:55:51
合計ジャッジ時間 8,690 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,948 KB
testcase_01 AC 123 ms
55,516 KB
testcase_02 AC 125 ms
55,528 KB
testcase_03 AC 125 ms
55,308 KB
testcase_04 AC 124 ms
55,960 KB
testcase_05 AC 123 ms
55,424 KB
testcase_06 AC 124 ms
55,256 KB
testcase_07 AC 124 ms
56,000 KB
testcase_08 AC 123 ms
55,548 KB
testcase_09 AC 125 ms
55,360 KB
testcase_10 AC 123 ms
55,564 KB
testcase_11 AC 122 ms
55,596 KB
testcase_12 AC 124 ms
55,500 KB
testcase_13 AC 123 ms
55,740 KB
testcase_14 AC 126 ms
55,612 KB
testcase_15 AC 122 ms
55,572 KB
testcase_16 AC 123 ms
55,820 KB
testcase_17 AC 123 ms
55,804 KB
testcase_18 AC 124 ms
55,544 KB
testcase_19 AC 123 ms
55,656 KB
testcase_20 AC 125 ms
55,776 KB
testcase_21 AC 123 ms
55,752 KB
testcase_22 AC 123 ms
55,660 KB
testcase_23 AC 122 ms
55,580 KB
testcase_24 AC 122 ms
55,432 KB
testcase_25 AC 123 ms
55,444 KB
testcase_26 AC 124 ms
55,580 KB
testcase_27 AC 123 ms
55,640 KB
testcase_28 AC 123 ms
55,508 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    Scanner sc = new Scanner(System.in);
    String InputChar = "";
    int Count = 0;
    int Result = 0;
    public static void main(String[] args) {
        new Main().solve();
    }

    void solve() {
        for(int i = 0; i < 2; i++) {
            InputChar = InputChar + sc.next();
        }
        for(int i = 0; i < 14; i++) {
            if(InputChar.charAt(i) == 'o') {
                Count++;
            } else {
                Result = Math.max(Result, Count);
                Count = 0;
            }
        }
        Result = Math.max(Result, Count);
        System.out.println(Result);
    }
}
0