結果
| 問題 | No.204 ゴールデン・ウィーク(2) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-05-08 22:26:55 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 295 bytes |
| 記録 | |
| コンパイル時間 | 127 ms |
| コンパイル使用メモリ | 77,764 KB |
| 最終ジャッジ日時 | 2025-12-03 15:02:24 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 WA * 25 |
ソースコード
D = int(raw_input())
s = list(raw_input() + raw_input())
ans = 0
for i in xrange(14 - D + 1):
ss = s[:]
ss[i:i + D] = "o" * D
cnt = 0
for si in ss:
if si == "o": cnt += 1
else:
ans = max(ans, cnt)
cnt = 0
ans = max(ans, cnt)
print ans