結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー ffmm00ffmm00
提出日時 2015-06-02 11:40:31
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 1,000 ms
コード長 363 bytes
コンパイル時間 3,505 ms
コンパイル使用メモリ 75,364 KB
実行使用メモリ 56,228 KB
最終ジャッジ日時 2023-08-11 15:46:23
合計ジャッジ時間 8,129 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,964 KB
testcase_01 AC 120 ms
55,832 KB
testcase_02 AC 120 ms
55,912 KB
testcase_03 AC 117 ms
53,604 KB
testcase_04 AC 118 ms
55,352 KB
testcase_05 AC 118 ms
53,564 KB
testcase_06 AC 120 ms
55,404 KB
testcase_07 AC 121 ms
55,648 KB
testcase_08 AC 119 ms
55,724 KB
testcase_09 AC 121 ms
55,772 KB
testcase_10 AC 122 ms
55,592 KB
testcase_11 AC 119 ms
55,624 KB
testcase_12 AC 122 ms
55,748 KB
testcase_13 AC 121 ms
55,836 KB
testcase_14 AC 118 ms
55,840 KB
testcase_15 AC 117 ms
56,228 KB
testcase_16 AC 119 ms
55,916 KB
testcase_17 AC 117 ms
55,348 KB
testcase_18 AC 117 ms
55,340 KB
testcase_19 AC 119 ms
55,396 KB
testcase_20 AC 120 ms
55,884 KB
testcase_21 AC 118 ms
55,616 KB
testcase_22 AC 120 ms
56,000 KB
testcase_23 AC 119 ms
55,764 KB
testcase_24 AC 120 ms
56,168 KB
testcase_25 AC 116 ms
55,780 KB
testcase_26 AC 117 ms
55,388 KB
testcase_27 AC 118 ms
55,732 KB
testcase_28 AC 121 ms
55,852 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class N203 {

	public static void main(String[] args) {
		Scanner sca = new Scanner(System.in);

		char[] C = (sca.next() + sca.next()).toCharArray();

		int d = 0, max = 0;

		for (int i = 0; i < 14; i++) {
			if (C[i] == ('o')) {
				d++;
				max = Math.max(max, d);
			} else
				d = 0;

		}

		System.out.println(max);

	}

}
0