結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー yohei-kuyohei-ku
提出日時 2018-03-11 22:29:06
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 272 bytes
コンパイル時間 43 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-23 01:15:32
合計ジャッジ時間 1,434 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,816 KB
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 WA -
testcase_08 AC 11 ms
6,940 KB
testcase_09 AC 11 ms
6,940 KB
testcase_10 AC 11 ms
6,944 KB
testcase_11 AC 11 ms
6,944 KB
testcase_12 AC 11 ms
6,944 KB
testcase_13 AC 12 ms
6,940 KB
testcase_14 WA -
testcase_15 AC 11 ms
6,944 KB
testcase_16 AC 11 ms
6,944 KB
testcase_17 AC 11 ms
6,940 KB
testcase_18 AC 11 ms
6,940 KB
testcase_19 AC 11 ms
6,940 KB
testcase_20 AC 11 ms
6,940 KB
testcase_21 AC 11 ms
6,940 KB
testcase_22 AC 11 ms
6,944 KB
testcase_23 AC 11 ms
6,944 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 11 ms
6,940 KB
testcase_27 AC 11 ms
6,940 KB
testcase_28 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

C1 = raw_input()
C2 = raw_input()

W_total = C1 + C2
score_list = []
score = 0

for i in range(0,len(W_total)-1):
    if W_total[i] == W_total[i+1] and W_total[i] == "o":
        score += 1
        score_list.append(score)
    else:
        score = 1
print max(score_list)
0