結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー ffmm00ffmm00
提出日時 2015-06-02 11:40:31
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 1,000 ms
コード長 363 bytes
コンパイル時間 3,587 ms
コンパイル使用メモリ 76,424 KB
実行使用メモリ 41,384 KB
最終ジャッジ日時 2024-04-29 07:48:01
合計ジャッジ時間 8,129 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
41,176 KB
testcase_01 AC 132 ms
41,036 KB
testcase_02 AC 127 ms
40,984 KB
testcase_03 AC 112 ms
40,076 KB
testcase_04 AC 124 ms
41,044 KB
testcase_05 AC 124 ms
41,084 KB
testcase_06 AC 127 ms
41,352 KB
testcase_07 AC 123 ms
41,176 KB
testcase_08 AC 111 ms
39,860 KB
testcase_09 AC 129 ms
41,384 KB
testcase_10 AC 114 ms
39,976 KB
testcase_11 AC 113 ms
39,976 KB
testcase_12 AC 124 ms
41,368 KB
testcase_13 AC 111 ms
40,128 KB
testcase_14 AC 111 ms
39,988 KB
testcase_15 AC 109 ms
39,732 KB
testcase_16 AC 110 ms
40,124 KB
testcase_17 AC 125 ms
40,912 KB
testcase_18 AC 124 ms
40,968 KB
testcase_19 AC 124 ms
40,852 KB
testcase_20 AC 126 ms
41,076 KB
testcase_21 AC 124 ms
41,172 KB
testcase_22 AC 111 ms
39,988 KB
testcase_23 AC 126 ms
41,340 KB
testcase_24 AC 122 ms
40,988 KB
testcase_25 AC 107 ms
39,756 KB
testcase_26 AC 124 ms
41,148 KB
testcase_27 AC 123 ms
41,284 KB
testcase_28 AC 136 ms
41,132 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