結果
問題 |
No.204 ゴールデン・ウィーク(2)
|
ユーザー |
![]() |
提出日時 | 2024-05-30 21:38:06 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 244 bytes |
コンパイル時間 | 257 ms |
コンパイル使用メモリ | 82,316 KB |
実行使用メモリ | 54,120 KB |
最終ジャッジ日時 | 2024-12-20 21:38:28 |
合計ジャッジ時間 | 3,784 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 WA * 30 |
ソースコード
D = int(input()) C = input() C = C + input() N = [0] for i, c in enumerate(C, start=1): if c == "x": N.append(i) N += list(range(15,30)) ans = 0 for i in range(len(N) - D - 1): ans = max(ans, N[i + D + 1] - N[i] - 1) print(ans)