結果
問題 |
No.203 ゴールデン・ウィーク(1)
|
ユーザー |
![]() |
提出日時 | 2019-09-19 21:14:03 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 479 bytes |
コンパイル時間 | 354 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-07-20 04:51:14 |
合計ジャッジ時間 | 1,853 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 WA * 10 |
ソースコード
a=input() b=input() c=0 d=[] for i in range(1,7): if a[i]==a[i-1]=="o": c+=1 else: d.append(c) c=0 if i==6: for j in range(6): if (a[i]=="o") and (b[j]=="o") and (j==0): c+=1 elif b[j]==b[j-1]=="o": c+=1 else: d.append(c) c=0 d.append(c) if max(d)==0: print(0) else: print(max(d)+1)