結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー kurenaif
提出日時 2016-08-16 21:11:03
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 1,000 ms
コード長 191 bytes
コンパイル時間 186 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-18 09:47:03
合計ジャッジ時間 1,585 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.py:10: SyntaxWarning: "is" with 'str' literal. Did you mean "=="?
  if c is 'o':

ソースコード

diff #

#!/usr/bin/python3

C = input()
C += input()

cnt = 0
ma = 0

for c in C:
    if c is 'o':
        cnt = cnt+1
    else:
        ma = max(cnt, ma)
        cnt = 0

ma = max(cnt,ma)

print(ma)
0