結果
| 問題 |
No.204 ゴールデン・ウィーク(2)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-12-30 16:16:04 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 435 bytes |
| コンパイル時間 | 759 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 64,896 KB |
| 最終ジャッジ日時 | 2024-12-30 16:16:10 |
| 合計ジャッジ時間 | 4,891 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 38 WA * 3 RE * 5 |
ソースコード
D = int(input())
C = list(input())
C += list(input())
C = ["x"]*D + C +["x"]*D
ans = 0
for i in range(14+D+1):
if C[i]=="x":
A = C[:]
cnt = 0
while cnt<D and A[cnt+i]=="x":
A[cnt+i] = "o"
cnt += 1
cnt = 0
for j in range(14+2*D):
if A[j]=="o":
cnt += 1
else:
ans = max(ans,cnt)
cnt = 0
print(ans)