結果
| 問題 |
No.204 ゴールデン・ウィーク(2)
|
| コンテスト | |
| ユーザー |
cormoran
|
| 提出日時 | 2016-08-16 21:22:26 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 324 bytes |
| コンパイル時間 | 286 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-11-07 18:21:42 |
| 合計ジャッジ時間 | 3,190 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 WA * 25 |
ソースコード
#!/usr/bin/env python3
import copy
n = int(input())
days = input() + input()
ans = 0
for i in range(len(days) - n + 1):
day2 = list(copy.copy(days))
for j in range(n):
if i + j < len(day2):
day2[i + j] = 'o'
ans = max(ans, max(map(lambda x: len(x), "".join(day2).split('x'))))
print(ans)
cormoran