結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー 練習生練習生
提出日時 2015-08-18 19:08:11
言語 Java21
(openjdk 21)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 486 bytes
コンパイル時間 4,051 ms
コンパイル使用メモリ 76,732 KB
実行使用メモリ 54,644 KB
最終ジャッジ日時 2024-04-17 12:09:20
合計ジャッジ時間 8,008 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
40,092 KB
testcase_01 AC 122 ms
40,912 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 117 ms
41,260 KB
testcase_08 AC 122 ms
41,584 KB
testcase_09 AC 121 ms
41,392 KB
testcase_10 AC 118 ms
40,848 KB
testcase_11 AC 124 ms
40,940 KB
testcase_12 AC 112 ms
39,988 KB
testcase_13 AC 121 ms
41,236 KB
testcase_14 AC 107 ms
40,076 KB
testcase_15 AC 119 ms
40,940 KB
testcase_16 AC 110 ms
40,076 KB
testcase_17 AC 120 ms
41,396 KB
testcase_18 AC 111 ms
40,200 KB
testcase_19 AC 120 ms
40,988 KB
testcase_20 AC 110 ms
40,020 KB
testcase_21 AC 118 ms
40,960 KB
testcase_22 AC 116 ms
41,288 KB
testcase_23 AC 118 ms
40,892 KB
testcase_24 AC 119 ms
41,312 KB
testcase_25 AC 119 ms
41,224 KB
testcase_26 AC 105 ms
40,168 KB
testcase_27 AC 116 ms
41,388 KB
testcase_28 AC 121 ms
41,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class No203 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String inputData = sc.next() + sc.next();
		sc.close();
		int renkyu = 1;
		int renkyuMax = 0;
		for(int i = 0; i < 13; i++){
			if(inputData.charAt(i) == 'o' && inputData.charAt(i) == inputData.charAt(i + 1)){
				renkyu++;
				if(renkyu > renkyuMax){
					renkyuMax = renkyu;
				}
			}else{
				renkyu = 1;
			}
		}
		System.out.println(renkyuMax);
	}
}
0