結果
問題 | No.204 ゴールデン・ウィーク(2) |
ユーザー | htensai |
提出日時 | 2019-12-17 16:35:46 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,283 bytes |
コンパイル時間 | 2,165 ms |
コンパイル使用メモリ | 74,236 KB |
実行使用メモリ | 51,480 KB |
最終ジャッジ日時 | 2023-09-17 00:26:01 |
合計ジャッジ時間 | 6,337 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 42 ms
49,416 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | AC | 41 ms
49,292 KB |
testcase_04 | AC | 41 ms
49,024 KB |
testcase_05 | AC | 41 ms
49,296 KB |
testcase_06 | AC | 42 ms
49,168 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 40 ms
49,180 KB |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | AC | 39 ms
49,436 KB |
testcase_26 | AC | 39 ms
49,304 KB |
testcase_27 | AC | 40 ms
49,240 KB |
testcase_28 | WA | - |
testcase_29 | AC | 38 ms
48,956 KB |
testcase_30 | AC | 39 ms
49,076 KB |
testcase_31 | AC | 38 ms
49,324 KB |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | AC | 39 ms
49,096 KB |
testcase_35 | AC | 37 ms
49,240 KB |
testcase_36 | AC | 38 ms
49,408 KB |
testcase_37 | AC | 38 ms
48,912 KB |
testcase_38 | AC | 36 ms
49,176 KB |
testcase_39 | WA | - |
testcase_40 | AC | 37 ms
49,712 KB |
testcase_41 | AC | 40 ms
49,652 KB |
testcase_42 | WA | - |
testcase_43 | AC | 38 ms
49,468 KB |
testcase_44 | AC | 37 ms
49,296 KB |
testcase_45 | AC | 38 ms
48,992 KB |
testcase_46 | AC | 38 ms
49,292 KB |
testcase_47 | WA | - |
testcase_48 | AC | 40 ms
48,992 KB |
ソースコード
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int d = Integer.parseInt(br.readLine()); char[] arr = new char[14]; for (int i = 0; i < 2; i++) { char[] line = br.readLine().toCharArray(); for (int j = 0; j < 7; j++) { arr[i * 7 + j] = line[j]; } } int max = 0; for (int i = 0; i < 14; i++) { boolean norm = false; boolean hor = false; int count = 0; int dCount = 0; for (int j = i; j < 14; j++) { if (arr[j] == 'o') { if (norm) { hor = true; } } else { if (hor) { break; } else { norm = true; } dCount++; if (dCount > d) { break; } } count++; } max = Math.max(max, count); } System.out.println(max); } }