結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー pluto77
提出日時 2016-02-06 13:48:17
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 233 bytes
コンパイル時間 61 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2024-09-21 20:48:33
合計ジャッジ時間 1,324 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13 WA * 16
権限があれば一括ダウンロードができます

ソースコード

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