結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー pluto77pluto77
提出日時 2016-02-06 13:48:17
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 233 bytes
コンパイル時間 59 ms
コンパイル使用メモリ 7,064 KB
実行使用メモリ 6,404 KB
最終ジャッジ日時 2023-10-21 19:27:06
合計ジャッジ時間 1,543 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#coding: utf-8
##yuki_203

s=raw_input()
t=raw_input()

wt=s+t
w=list(wt)

cnt=0
cnt_temp=1

for i in xrange(len(w)-1,-1,-1):
 if w[i]==w[i-1]:
  cnt_temp+=1
 if cnt_temp>cnt:
  cnt=cnt_temp
 if w[i]!=w[i-1]:
  cnt_temp=1

print cnt
0