結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー shinwisteriashinwisteria
提出日時 2018-02-21 22:34:43
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 419 bytes
コンパイル時間 4,562 ms
コンパイル使用メモリ 75,632 KB
実行使用メモリ 57,688 KB
最終ジャッジ日時 2023-10-20 00:02:17
合計ジャッジ時間 9,897 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
56,152 KB
testcase_01 AC 121 ms
57,156 KB
testcase_02 AC 122 ms
57,444 KB
testcase_03 AC 122 ms
57,276 KB
testcase_04 AC 121 ms
57,360 KB
testcase_05 AC 122 ms
57,484 KB
testcase_06 AC 120 ms
57,532 KB
testcase_07 AC 123 ms
57,200 KB
testcase_08 AC 121 ms
57,512 KB
testcase_09 AC 123 ms
57,524 KB
testcase_10 WA -
testcase_11 AC 122 ms
57,292 KB
testcase_12 AC 120 ms
57,056 KB
testcase_13 AC 122 ms
57,276 KB
testcase_14 AC 122 ms
55,760 KB
testcase_15 AC 120 ms
57,404 KB
testcase_16 WA -
testcase_17 AC 124 ms
57,492 KB
testcase_18 AC 121 ms
57,520 KB
testcase_19 AC 121 ms
57,364 KB
testcase_20 AC 121 ms
57,488 KB
testcase_21 AC 122 ms
57,296 KB
testcase_22 AC 119 ms
57,112 KB
testcase_23 AC 121 ms
55,408 KB
testcase_24 AC 121 ms
57,432 KB
testcase_25 AC 121 ms
57,460 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

package m.shin;
import java.util.Scanner;
public class Con203 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String[] w = {s.next() , s.next()};
		s.close();

		int max = 0 , k = 0;
		for(int i = 0;i < 2;i++){
			for(int j = 0;j < 7;j++){
				if(w[i].charAt(j) == 'o'){
					k++;
				}else{
					max = Math.max(max, k);
					k = 0;
				}
			}
		}
		System.out.println(max);

	}

}
0