結果
| 問題 |
No.204 ゴールデン・ウィーク(2)
|
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2020-12-18 19:08:31 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 346 bytes |
| コンパイル時間 | 172 ms |
| コンパイル使用メモリ | 82,512 KB |
| 実行使用メモリ | 66,960 KB |
| 最終ジャッジ日時 | 2024-09-21 09:14:42 |
| 合計ジャッジ時間 | 4,520 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 RE * 2 |
| other | AC * 3 WA * 4 RE * 39 |
ソースコード
n = int(input())
t = "x"*15+input()+input()+"x"*15
ans = 0
for i in range(50):
for c in range(1,n+1):
if t[i:i+c] != "x"*c: continue
s = t[:i] + "o"*c + t[i+c:]
v = 0
for i in s:
if i == "o":
v += 1
else:
ans = max(ans,v)
v = 0
print(ans)
convexineq