結果
問題 |
No.204 ゴールデン・ウィーク(2)
|
ユーザー |
![]() |
提出日時 | 2018-08-16 18:25:55 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 481 bytes |
コンパイル時間 | 68 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-03 04:09:02 |
合計ジャッジ時間 | 2,737 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 WA * 25 |
ソースコード
d = int(input()) week = list(input())+list(input()) maxholi = 0 def search(wek,i,cnt): global maxholi while cnt>0 and i<14: if wek[i]=="o": break wek[i]="o" cnt -= 1 i += 1 cnt = 0 for i in range(14): if wek[i]=="o": cnt += 1 maxholi = max(maxholi,cnt) else: cnt = 0 for i in range(14): if week[i]=="x": search(week[:],i,d) search(week,0,0) print(maxholi)