Problem: We have weather records at AtCoder Town for some consecutive three days. A string of length 3, S, represents the records - if the i-th character is `S`, it means it was sunny on the i-th day; if that character is `R`, it means it was rainy on that day.  Find the maximum number of consecutive rainy days in this period.

Submission attempts (in order):
S = input('天気が雨である日が連続していた最大の日数を出力せよ。')
if S == SSS
	print(0)
else if S == SSR
	print(1)
else if S == SRR
	print(2)
else if S == SRS
	print(1)
else if S == RSS
	print(1)
else if S == RRS
	print(2)
else if S == RRR
	print(3)
else if S == RRS
	print(2)

S = input('天気が雨である日が連続していた最大の日数を出力せよ。')
[n1,n2,n3] = S.split() 
if n1 == S
	if n2 == S
  		if n3 == S
    		print(3)
      	else 
        	print(2)
	else     
    	if n3 == S
      		print(1)
        else
        	print(2)
else
	if n2 == S
  		if n2 == S
    		print(2)
      	else
        	print(1)
	else
    	if n2 == S
      		print(2)
        else
        	print(3)


S = input('天気が雨である日が連続していた最大の日数を出力せよ。')
N = True
while N == False:
if S == 'SSS':
	print(0)
elif S == 'SSR':
	print(1)
elif S == 'SRR':
	print(2)
elif S == 'SRS':
	print(1)
elif S == 'RSS':
	print(1)
elif S == 'RRS':
	print(2)
elif S == 'RRR':
	print(3)
elif S == 'RSR':
	print(1)
else:
	N = False
 

S = input('天気が雨である日が連続していた最大の日数を出力せよ。')
if S == 'SSS':
	print(0)
else if S == 'SSR':
	print(1)
else if S == 'SRR':
	print(2)
else if S == 'SRS':
	print(1)
else if S == 'RSS':
	print(1)
else if S == 'RRS':
	print(2)
else if S == 'RRR':
	print(3)
else if S == 'RSR':
	print(1)

s = input('天気が雨である日が連続していた最大の日数を出力せよ。')
 
if s == "SSS":
    print(0)
elif s == "RRR":
    print(3)
elif s == "RRS":
    print(2)
elif s == "SRR":
    print(2)
else:
    print(1)

S = input('天気が雨である日が連続していた最大の日数を出力せよ。')
if S == 'SSS'
	print(0)
else if S == 'SSR'
	print(1)
else if S == 'SRR'
	print(2)
else if S == 'SRS'
	print(1)
else if S == 'RSS'
	print(1)
else if S == 'RRS'
	print(2)
else if S == 'RRR'
	print(3)
else if S == 'RRS'
	print(2)


S = input('天気が雨である日が連続していた最大の日数を出力せよ。')
N = True
while N == False:
if S == 'SSS':
	print(0)
else if S == 'SSR':
	print(1)
else if S == 'SRR':
	print(2)
else if S == 'SRS':
	print(1)
else if S == 'RSS':
	print(1)
else if S == 'RRS':
	print(2)
else if S == 'RRR':
	print(3)
else if S == 'RSR':
	print(1)
else:
	N = False
  

S = input('天気が雨である日が連続していた最大の日数を出力せよ。')
N = True
while N == True:
N = False
if S == 'SSS':
	print(0)
elif S == 'SSR':
	print(1)
elif S == 'SRR':
	print(2)
elif S == 'SRS':
	print(1)
elif S == 'RSS':
	print(1)
elif S == 'RRS':
	print(2)
elif S == 'RRR':
	print(3)
elif S == 'RSR':
	print(1)
else:
	N = True

S = input('天気が雨である日が連続していた最大の日数を出力せよ。')
if S == 'SSS':
	print(0)
elif S == 'SSR':
	print(1)
elif S == 'SRR':
	print(2)
elif S == 'SRS':
	print(1)
elif S == 'RSS':
	print(1)
elif S == 'RRS':
	print(2)
elif S == 'RRR':
	print(3)
elif S == 'RRS':
	print(2)

S = input()
if S == 'RRS':
    print(2)
elif S == 'SSS'
    print(0)
elif S = 'SRR'
	print(2)
elif S = 'RRR'
    print(1)
 


S = input('天気が雨である日が連続していた最大の日数を出力せよ。')
if S == 'SSS':
	print(0)
else if S == 'SSR':
	print(1)
else if S == 'SRR':
	print(2)
else if S == 'SRS':
	print(1)
else if S == 'RSS':
	print(1)
else if S == 'RRS':
	print(2)
else if S == 'RRR':
	print(3)
else if S == 'RRS':
	print(2)

S = input()
if S == 'SSS':
  print(0)
elif S == 'SSR':
  print(1)
elif S == 'SRR':
  print(2)
else if S == 'SRS':
  print(1)
else if S == 'RSS':
  print(1)
else if S == 'RRS':
  print(2)
else if S == 'RRR':
  print(3)
else if S == 'RSR':
  print(1)

  


S = input()
if S == 'SSS':
  print(0)
elif S == 'SSR':
  print(1)
elif S == 'SRR':
  print(2)
elif S == 'SRS':
  print(1)
elif S == 'RSS':
  print(1)
elif S == 'RRS':
  print(2)
elif S == 'RRR':
  print(3)
elif S == 'RSR':
  print(1)


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Accepted