結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー ぴろずぴろず
提出日時 2015-05-08 22:22:08
言語 Java21
(openjdk 21)
結果
AC  
実行時間 119 ms / 1,000 ms
コード長 476 bytes
コンパイル時間 4,986 ms
コンパイル使用メモリ 71,136 KB
実行使用メモリ 55,844 KB
最終ジャッジ日時 2023-08-11 15:26:42
合計ジャッジ時間 8,306 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,500 KB
testcase_01 AC 117 ms
55,476 KB
testcase_02 AC 114 ms
55,580 KB
testcase_03 AC 118 ms
55,580 KB
testcase_04 AC 116 ms
55,596 KB
testcase_05 AC 117 ms
55,804 KB
testcase_06 AC 116 ms
55,772 KB
testcase_07 AC 114 ms
55,312 KB
testcase_08 AC 115 ms
55,588 KB
testcase_09 AC 116 ms
55,716 KB
testcase_10 AC 116 ms
55,792 KB
testcase_11 AC 116 ms
55,576 KB
testcase_12 AC 117 ms
55,844 KB
testcase_13 AC 116 ms
55,504 KB
testcase_14 AC 119 ms
55,764 KB
testcase_15 AC 117 ms
55,752 KB
testcase_16 AC 118 ms
55,268 KB
testcase_17 AC 114 ms
55,500 KB
testcase_18 AC 115 ms
55,628 KB
testcase_19 AC 115 ms
55,624 KB
testcase_20 AC 114 ms
55,644 KB
testcase_21 AC 115 ms
55,756 KB
testcase_22 AC 118 ms
55,716 KB
testcase_23 AC 118 ms
55,312 KB
testcase_24 AC 117 ms
55,308 KB
testcase_25 AC 116 ms
55,612 KB
testcase_26 AC 117 ms
55,828 KB
testcase_27 AC 115 ms
53,676 KB
testcase_28 AC 116 ms
55,488 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package no203;

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] c = new char[14];
		for(int i=0;i<2;i++) {
			char[] s = sc.next().toCharArray();
			for(int j=0;j<7;j++) {
				c[i*7+j] = s[j];
			}
		}
		int max = 0;
		int now = 0;
		for(int i=0;i<14;i++) {
			if (c[i] == 'o') {
				now++;
				max = Math.max(max, now);
			}else{
				now = 0;
			}
		}
		System.out.println(max);
	}

}
0