結果
問題 |
No.204 ゴールデン・ウィーク(2)
|
ユーザー |
![]() |
提出日時 | 2016-04-16 20:45:31 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 288 bytes |
コンパイル時間 | 148 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,528 KB |
最終ジャッジ日時 | 2024-10-13 14:01:03 |
合計ジャッジ時間 | 1,925 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 WA * 31 |
ソースコード
n=input() s="x"*n+raw_input()+raw_input()+"x"*n #print s #print max(len(i)for i in s.split("x")) m=0 for i in range(len(s)): t=list(s) for j in range(i,min(i+n+1,len(s))): if t[j]=="o": break t[j]="o" #print "".join(t) m=max(m,max(len(i)for i in "".join(t).split("x"))) print m