結果
問題 |
No.203 ゴールデン・ウィーク(1)
|
ユーザー |
|
提出日時 | 2021-05-07 10:35:29 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 380 bytes |
コンパイル時間 | 606 ms |
コンパイル使用メモリ | 82,168 KB |
実行使用メモリ | 52,692 KB |
最終ジャッジ日時 | 2024-09-14 23:16:59 |
合計ジャッジ時間 | 2,441 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 28 WA * 1 |
ソースコード
C = ["x"] + list(input()) + list(input()) + ["x"] ans = 0 cnt = 0 flag = False for i in range(1,len(C)): if C[i] == "o": flag = True if flag and C[i-1] == "o": cnt += 1 else: if flag and cnt == 0: ans = max(ans,1) else: ans = max(ans,cnt+1) flag = False cnt = 0 print(ans)