結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー otsunekootsuneko
提出日時 2021-05-07 10:10:15
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 203 bytes
コンパイル時間 1,555 ms
コンパイル使用メモリ 86,860 KB
実行使用メモリ 71,504 KB
最終ジャッジ日時 2023-10-13 01:01:30
合計ジャッジ時間 4,131 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,024 KB
testcase_01 WA -
testcase_02 AC 71 ms
71,324 KB
testcase_03 AC 71 ms
71,188 KB
testcase_04 AC 78 ms
71,128 KB
testcase_05 AC 72 ms
71,036 KB
testcase_06 AC 71 ms
71,212 KB
testcase_07 AC 71 ms
71,352 KB
testcase_08 AC 71 ms
71,468 KB
testcase_09 AC 71 ms
71,128 KB
testcase_10 AC 74 ms
71,316 KB
testcase_11 AC 74 ms
71,064 KB
testcase_12 AC 71 ms
71,220 KB
testcase_13 AC 70 ms
71,320 KB
testcase_14 AC 75 ms
71,112 KB
testcase_15 AC 72 ms
71,272 KB
testcase_16 AC 72 ms
71,212 KB
testcase_17 AC 72 ms
71,352 KB
testcase_18 AC 71 ms
71,136 KB
testcase_19 AC 73 ms
71,460 KB
testcase_20 AC 72 ms
71,316 KB
testcase_21 AC 72 ms
71,352 KB
testcase_22 AC 72 ms
71,436 KB
testcase_23 AC 72 ms
71,388 KB
testcase_24 AC 70 ms
71,384 KB
testcase_25 AC 72 ms
71,344 KB
testcase_26 AC 70 ms
71,504 KB
testcase_27 AC 71 ms
71,292 KB
testcase_28 AC 70 ms
71,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

C = list(input()) + list(input()) + ["x"]
ans = 1
cnt = 1
for i in range(1,len(C)):
    if C[i] == C[i-1] == "o":
        cnt += 1
    else:
        ans = max(ans,cnt)
        cnt = 1
print(ans)
0