結果
問題 | No.204 ゴールデン・ウィーク(2) |
ユーザー | sugar_sentan |
提出日時 | 2019-12-10 19:19:53 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 601 bytes |
コンパイル時間 | 249 ms |
コンパイル使用メモリ | 10,868 KB |
実行使用メモリ | 7,988 KB |
最終ジャッジ日時 | 2023-09-06 07:27:10 |
合計ジャッジ時間 | 2,768 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 17 ms
7,916 KB |
testcase_01 | WA | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | AC | 16 ms
7,944 KB |
testcase_05 | AC | 16 ms
7,784 KB |
testcase_06 | AC | 16 ms
7,956 KB |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | RE | - |
testcase_12 | AC | 16 ms
7,976 KB |
testcase_13 | WA | - |
testcase_14 | RE | - |
testcase_15 | RE | - |
testcase_16 | RE | - |
testcase_17 | RE | - |
testcase_18 | RE | - |
testcase_19 | RE | - |
testcase_20 | WA | - |
testcase_21 | RE | - |
testcase_22 | WA | - |
testcase_23 | RE | - |
testcase_24 | WA | - |
testcase_25 | AC | 15 ms
7,872 KB |
testcase_26 | AC | 16 ms
7,948 KB |
testcase_27 | RE | - |
testcase_28 | WA | - |
testcase_29 | AC | 16 ms
7,780 KB |
testcase_30 | AC | 16 ms
7,856 KB |
testcase_31 | RE | - |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | AC | 15 ms
7,916 KB |
testcase_35 | AC | 15 ms
7,820 KB |
testcase_36 | AC | 16 ms
7,816 KB |
testcase_37 | RE | - |
testcase_38 | RE | - |
testcase_39 | RE | - |
testcase_40 | AC | 16 ms
7,952 KB |
testcase_41 | AC | 16 ms
7,788 KB |
testcase_42 | WA | - |
testcase_43 | AC | 16 ms
7,820 KB |
testcase_44 | AC | 16 ms
7,824 KB |
testcase_45 | RE | - |
testcase_46 | AC | 16 ms
7,868 KB |
testcase_47 | WA | - |
testcase_48 | AC | 16 ms
7,824 KB |
ソースコード
D = int(input()) # xが平日, oが休日 s = str(input()) s += str(input()) ans = 0 # xをoにしたら飛ばすようにする for i in range(len(s)): cnt = i tmp = 0 hoge = D while len(s) > cnt: if s[cnt] == "x": if hoge <= 0: break else: for _ in range(hoge): if s[cnt] == "o": break cnt += 1 tmp += 1 hoge = 0 elif s[cnt] == "o": tmp += 1 cnt += 1 ans = max(ans, tmp) print(ans)