結果
| 問題 |
No.204 ゴールデン・ウィーク(2)
|
| コンテスト | |
| ユーザー |
fmhr
|
| 提出日時 | 2015-05-08 22:36:18 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 253 bytes |
| コンパイル時間 | 158 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-13 11:32:30 |
| 合計ジャッジ時間 | 2,548 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 WA * 33 RE * 1 |
ソースコード
# coding:utf-8
D = int(input())
C = input()
C = C + input()
ans = []
for i in range(14):
for j in range(i, 15):
e = C[i:j]
for k in range(len(e)):
if e.count('x') <= D:
ans.append(len(e))
print(max(ans))
fmhr