結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,240 KB
testcase_01 WA -
testcase_02 AC 74 ms
71,040 KB
testcase_03 AC 73 ms
71,388 KB
testcase_04 AC 73 ms
71,140 KB
testcase_05 AC 73 ms
71,324 KB
testcase_06 AC 74 ms
71,148 KB
testcase_07 AC 72 ms
71,448 KB
testcase_08 AC 71 ms
71,248 KB
testcase_09 AC 71 ms
71,440 KB
testcase_10 AC 73 ms
71,440 KB
testcase_11 AC 73 ms
71,460 KB
testcase_12 AC 73 ms
71,348 KB
testcase_13 AC 73 ms
71,228 KB
testcase_14 AC 72 ms
71,240 KB
testcase_15 AC 72 ms
71,476 KB
testcase_16 AC 73 ms
71,372 KB
testcase_17 AC 72 ms
71,036 KB
testcase_18 AC 73 ms
71,472 KB
testcase_19 AC 74 ms
71,208 KB
testcase_20 AC 72 ms
71,496 KB
testcase_21 AC 73 ms
71,336 KB
testcase_22 AC 73 ms
71,240 KB
testcase_23 AC 72 ms
71,160 KB
testcase_24 AC 73 ms
71,480 KB
testcase_25 AC 73 ms
71,232 KB
testcase_26 AC 74 ms
71,040 KB
testcase_27 AC 72 ms
71,452 KB
testcase_28 AC 70 ms
71,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

C = ["x"] + 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