結果
| 問題 |
No.204 ゴールデン・ウィーク(2)
|
| コンテスト | |
| ユーザー |
cormoran
|
| 提出日時 | 2016-08-16 21:24:11 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 338 bytes |
| コンパイル時間 | 427 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-11-07 18:21:54 |
| 合計ジャッジ時間 | 3,087 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 35 WA * 11 |
ソースコード
#!/usr/bin/env python3
import copy
n = int(input())
days = 'x' * 20 + input() + input() + 'x' * 20
ans = 0
for i in range(len(days)):
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