problem_id
stringclasses
100 values
submission_id
stringlengths
10
10
status
stringclasses
2 values
code
stringlengths
6
806
p02582
s740810229
Wrong Answer
s=input() num=0 for i in s: if i=="R": num+=1 elif i!="R": num=0 print(num)
p02582
s520985227
Wrong Answer
s = input() ans1 = 0 ans = 0 for i in range(3): if s[i]=="R": ans1 += 1 else: ans = ans1 ans1 = 0 print(max(ans,ans1))
p02582
s539896321
Wrong Answer
S = input() print(S.count("R")-1)
p02582
s253028198
Wrong Answer
print(input().count('R'))
p02582
s467141647
Wrong Answer
s = input() before = "" count = 0 for i in range(len(s)): if s[i] == "R": count += 1 #print(before) if before == "n": count -= 1 before = "R" else: before = "n" count += 0 print(count)
p02582
s821249632
Wrong Answer
s = input() total = 0 if s == 'RRR': total = 3 elif s == 'RRS' or 'SRR': total = 2 elif s == 'RSR' or 'SRS' or 'RSS' or 'SSR': total = 1 else: total = 0 print(total)
p02582
s424237465
Wrong Answer
s=list(input()) if s == 'RSR': print(1) exit() print(s.count('R'))
p02582
s366573056
Wrong Answer
S = input() result = 0 if "RR" in S: result = S.count("R") print(result)
p02582
s816078761
Wrong Answer
# -*- coding: utf-8 -*- import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines S = readline().decode().rstrip() if S[0] == 'R' and S[2] == 'R': print(S.count('R')-1) else: print(S.count('R'))
p02582
s677961368
Wrong Answer
s = input() + '@' lst = [0]*len(s) for i in range(1,len(s)): if s[i] == s[i-1]: lst[i] = lst[i-1] + 1 print(max(lst))
p02582
s102106673
Wrong Answer
S = input() list_s = list(S) count = 0 if len(list_s)<4: for i in range(3): if list_s[i] == 'R': count +=1 elif list_s[i] == 'S': count = 0 print(count)
p02582
s974459614
Wrong Answer
s=input() ans=0 p=0 for i in s: if i=="R": p+=1 else: ans=max(ans,p) p=0 print(ans)
p02582
s056057270
Wrong Answer
s=input() cnt=0 if s=='RRR': cnt = 3 elif s== 'RRS': cnt = 2 elif s== 'SRR': cnt = 2 elif s == 'RSS': cnt= 1 elif s == 'RSR': cnt=1 elif s=='SSR': cnt=1 print(cnt)
p02582
s991216962
Wrong Answer
weather = input() raincount=0 for i in range(3): if weather[i]=="R": raincount=raincount+1 else: raincount=0 print(raincount)
p02582
s266120747
Wrong Answer
s = input() if 'RR' in s: print(2) elif 'R' in s: print(1) elif 'RRR' in s: print(3) else: print(0)
p02582
s954855595
Wrong Answer
li = list(map(str, input())) if len(li)!=3: exit() c=0 for i in range(3): if li[i]=='R': c=c+1 print(c)
p02582
s874066739
Wrong Answer
S = str(input()) a = 0 w = 0 for i in range(len(S)): if S[i] == 'R': w = w + 1 else: if (w > a): a = w w = 0 print(a)
p02582
s899931808
Wrong Answer
#coding :utf-8 S=input(">") if (S=="sss"): print(3) elif(S=="ssr"): print(2) elif(S=="srs"): print(1) elif(S=="rss"): print(1) elif(S=="srr"): print(2) elif(S=="rsr"): print(1) elif(S=="rrs"): print(2) else: print(0)
p02582
s202758015
Wrong Answer
s = str(input()).upper()# S, R == sunny, rainy def weather(s): if s == 'RRR': return 3 elif s == ('RRS'): return 2 elif s == ('RSR'): return 1 elif s == ('RSS'): return 2 elif s == ('SRR'): return 2 elif s == ('SRS'): return 1 elif s == ('SSR'): return 2 elif s == ('SSS'): return 0 print(weather(s))
p02582
s390732192
Wrong Answer
s = input().split('S') ans = 0 for i in s: if len(s) > ans: ans = len(s) print(ans)
p02582
s129900392
Wrong Answer
import sys sys.setrecursionlimit(10**7) def input(): return sys.stdin.readline()[:-1] mod = 10**9 + 7 def readInt():return int(input()) def readIntList():return list(map(int,input().split())) def readStringList():return list(input()) def readStringListWithSpace():return list(input().split()) def readString():return input() days = readStringList() count = 0 res = 0 for c in days: count += 0 if c == 'S' else 1 res = max(res,count) print(res)
p02582
s376562134
Wrong Answer
# -*- coding: utf-8 -*- def main(): s = str(input()) if s == "RRS" or s == "SRR": print(1) elif s == "RRR": print(2) else: print(0) if __name__ == '__main__': main()
p02582
s745510720
Wrong Answer
inp = input() count=0 res=0 for ch in inp: if ch=="R": count+=1 else: res=max(res,count) count=0 res=max(res,count) print(count)
p02582
s183909361
Wrong Answer
a = input() b = 0 c = 0 for i in a: c += 1 if i == "R" and c == 1: b += 1 elif i == "R" and c == 2 and b == 1: b += 1 elif i == "R" and c == 3 and b == 2: b += 1 print(b)
p02582
s921185522
Wrong Answer
i = 0 j = 0 for s in input(): j += 1 if s == "R": i += 1 if j != 3 and i > 0 and s == "S": i -= 1 print(i)
p02582
s708504893
Wrong Answer
s = str(input()) ans = 0 tmp = 0 for i in range(len(s)): if(s[i] == 'R'): tmp += 1 else: ans = tmp tmp = 0 ans = max(tmp,ans) print(ans)
p02582
s244769055
Wrong Answer
S = input() s = list(S) count = 0 l = [0] for i in range(len(s)): if s[i] == 'R': count = 1 try: if s[i+1] == 'R': count += 1 l.append(count) else: l.append(count) except IndexError: break print(max(l))
p02582
s584563454
Wrong Answer
def resolve(): S = input() count = [] if S[0] == "R": ans = 1 else: ans = 0 for i in range(len(S)-1): if S[i] == "R" and S[i+1] == "R": ans += 1 elif S[i] == "R": ans = 1 else: ans = 0 count.append(ans) print(max(count)) resolve()
p02582
s572745656
Wrong Answer
str = input() i = 0 if 'R' in str: i += 1 for j in range(len(str)-1): if str[j] == str[j+1]: i += 1 print(i)
p02582
s502889163
Wrong Answer
import sys sys.setrecursionlimit(10**7) def input(): return sys.stdin.readline()[:-1] mod = 10**9 + 7 def readInt():return int(input()) def readIntList():return list(map(int,input().split())) def readStringList():return list(input()) def readStringListWithSpace():return list(input().split()) def readString():return input() days = readStringList() # print(days) count = 0 if days[0] != 'R' else 1 res = 0 for i in range(1,3): if days[i] == 'R' and days[i-1] == 'R': count += 1 elif days[i] == 'R': count = 1 else: count = 0 res = max(res,count) print(res)
p02582
s478260939
Wrong Answer
s = input() ans = 0 if "S" in s: ans = 1 if "SS" in s: ans = 2 if s == "SSS": ans = 3 print(ans)
p02582
s706812670
Wrong Answer
s = input() cnt = res = 0 for i in range(3): if s[i] == 'R': cnt += 1 else: res = max(res, cnt) cnt = 0 print(res)
p02582
s169267322
Wrong Answer
cnt = 0 t = input() for i in range(len(t)): if i == 1: if t[i] == "R": cnt += 1 if i != 1: if t[i] == "R" and t[i-1] == "R": cnt += 1 if t[i] == "R" and t[i-1] == "S": cnt = 1 else: cnt = 0 print(cnt)
p02582
s227754072
Wrong Answer
s = input() count = 0 if s[0] == 'R': count = 1 for i in range(len(s)-1): if s[i] == 'R' and s[i+1] == 'R': count += 1 print(count)
p02582
s855763098
Wrong Answer
c = 0 for i in input().split(): if i=='R': c +=1 print(c)
p02582
s431530971
Wrong Answer
S = input() S.count('R') print(S.count('R'))
p02582
s479668637
Wrong Answer
S=list(input()) n=0 for i in range(3): if S[i]=='R': n+=1 elif n==2: pass else: n=0 print(n)
p02582
s755057846
Wrong Answer
s = str(input()) ans = 0 if s == "RRR": ans = 3 elif (s[:1] == "RR") or (s[1:2] == "RR"): ans = 2 elif s == "SSS": ans = 0 else: ans = 1 print(ans)
p02582
s358644538
Wrong Answer
S = input() print(S.count('R'))
p02582
s033353474
Wrong Answer
input_data = input() if input_data == 'RRR': count = 3 elif input_data == 'RRB' or input_data == 'BRR': count = 2 elif input_data not in 'R': count = 0 else: count = 1 print(count)
p02582
s566586055
Wrong Answer
s = str(input()) if s == 'SSR' or 'RSS' or 'RRS' or 'SRR' : print(2) elif s == 'SSS' or 'RRR' : print(3) else : print(1)
p02582
s019867569
Wrong Answer
#!/usr/bin/env python3 import sys readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines read = sys.stdin.buffer.read sys.setrecursionlimit(10 ** 7) INF = float('inf') S = input() ans = 0 for s in S: if s == "R": ans += 1 continue break print(ans)
p02582
s522275372
Wrong Answer
S = input() result = 0 for i in range(3): if S[i] == 'R': result = result + 1 else: result = 0 print(result)
p02582
s728295787
Wrong Answer
s = input() num = 0 if s[0] == "R": num += 1 if s[1] == "R": num += 1 if s[2] == "R": num += 1 print(num)
p02582
s443778314
Wrong Answer
N = input() if N =="SSS": print(0) elif N =="RRR": print(3) elif N =="RRS" or "SRR": print(2) else: print(1)
p02582
s595629982
Wrong Answer
a=list(input().split()) a="".join(a) count=0 for i in range(3): if a[i]=='R': count+=1 ans=count else: count=0 print(count)
p02582
s788565912
Wrong Answer
S = input() if S.count("SSS")>=1: print(3) exit() if S.count("SS")>=1: print(2) exit() if S.count("S")==0: print(0) exit() else: print(1)
p02582
s570455004
Wrong Answer
s=input() count=0 m=0 for i in range(len(s)): if s[i]=='R': count+=1 else: if count > m : m=count count=0 print(m)
p02582
s993082982
Wrong Answer
s= input() if s.count('R') ==0: print('0') elif s.count('R') ==1: print('1') elif s.count('RR') ==1: print('2') elif s.count('RSR') ==1: print('1') else: print('3')
p02582
s910582360
Wrong Answer
s = input() def result(s): count = 0 max = 0 if s == 'SSS': return 0 for i in s: if i == 'R': count += 1 else: if max < count: max = count count = 0 return max print(result(s))
p02582
s585910495
Wrong Answer
S=input() string1 = 'R' string2 = 'RR' if S.count(string1) == 0: print('0') if S.count(string1) == 1 or S == 'RSR': print('1') if S.count(string1) == 2: print('2') if S.count(string1) == 3: print('3')
p02582
s638570898
Wrong Answer
S = input() if S[1] == "S": print(1) else: print(S.count('R'))
p02582
s783715564
Wrong Answer
print("Hello")
p02582
s617658156
Wrong Answer
import re S = input() if re.search(r'R{3}', S): a = 3 elif re.search(r'R{2}', S): a = 2 elif re.search(r'R{1}', S): a = 1 else: a = 1 print(a)
p02582
s632473037
Wrong Answer
a=input() sum=0 for i in a: if i=='R': sum=sum+1 print (sum)
p02582
s442646507
Wrong Answer
S = input() if S[0] == 'R' and S[1] == 'R' and S[2] == 'R': print(3) elif S[0] == 'R' and S[1] == 'R': print(2) elif S[1] == 'R' and S[2] == 'R': print(2) elif S[1] == 'R' or S[2] == 'R' or S[1] == 'R': print(1) else: print(0)
p02582
s510480281
Wrong Answer
S = input() if S == "RRR": print(3) elif S == "RRS" or S == "SRR": print(2) else: print(1)
p02582
s647807035
Wrong Answer
S = str(input()) if S == "SSS": print(0) elif S == "SSR"or"SRS"or"RSS"or"RSR": print(1) elif S == "SRR"or"RRS": print(2) elif S == "RRR": print(7)
p02582
s555927583
Wrong Answer
S = input() cnt = 0 for i in range(3): if S[i] == "R": cnt += 1 elif i >= 1: break print(cnt)
p02582
s357930279
Wrong Answer
S = input() if S[1] == "R": if S[0] == "R" and S[2] == "R": print("2") elif S[0] or S[2] == "R": print("1") else: print("0")
p02582
s840981717
Wrong Answer
#A - Rainy Season Si = [] Si = str(input()) i = 0 if Si[0] == 'R': i == 1 if Si[1] == 'R': i == 1 if Si[2] == 'R': i == 1 if Si[0:1] == 'RR': i == 2 if Si[0:1] == 'RR': i == 2 if Si[1:2] == 'RR': i == 2 if Si[0:2] == 'RRR': i == 3 # 出力 print(i)
p02582
s344416451
Wrong Answer
S = input() cnt = 0 ma = 0 for i in range(3): if S[i]=='R': cnt+=1 else: ma=cnt cnt=0 if cnt==3: print(cnt) else: print(ma)
p02582
s288183048
Wrong Answer
s = input() if s == 'RRR': print(3) elif s == 'RRS' or 'SRR': print(2) elif s == 'SSS': print(0) else: print(1)
p02582
s068124013
Wrong Answer
s=input() if s[0]=="R" and s[1]=="R" and s[2]=="R": print(3) elif s[0]=="R" and s[1]=="R": print(2) elif s[0]=="R" and s[2]=="R": print(2) elif s=="SSS": print(0) else: print(1)
p02582
s111606072
Wrong Answer
def main(): S = input() ans = 0 tmp = 0 for s in S: if s == 'R': tmp += 1 else: ans = tmp tmp = 0 if ans < tmp: ans = tmp print(ans) if __name__ == "__main__": main()
p02582
s641786362
Wrong Answer
S=str(input()) if S.count('R')==0: print(0) if S.count('R')==1 and not S.count('R') >1: print(1) if S.count('R')==2 and not S.count('RR') ==1: print(1) if S.count('RR')==1: print(2) if S.count('RRR')==1: print(3)
p02582
s360424795
Wrong Answer
def check_weather(weathers: str) -> int: count = 0 l_n = [0] for i in weathers: if i == 'R': count += 1 else: if max(l_n) <= count: l_n.append(count) count = 0 return max(l_n) if __name__=='__main__': print(check_weather(input()))
p02582
s339622506
Wrong Answer
S = input() li = list(S) count = 0 for num in range(1): if li[num] == "R" and li[num+1] == "R" : count = count + 1 print(count)
p02582
s654172547
Wrong Answer
S = input() l = len(S) count = 0 for i in range(l): cur_count = 1 for j in range(i+1,l): if S[i] == "S": break if (S[i] != S[j]): break cur_count += 1 if cur_count > count: count = cur_count print(count)
p02582
s764764496
Wrong Answer
import sys import numpy as np X = str(input()) d = 0 s = 0 for i in X: if i == 'R': d += 1 else: if s < d: s = d d = 0 print(s)
p02582
s462767737
Wrong Answer
str = input() cnt = 0 for i in range(3): if str[i] == 'R': cnt += 1 print(cnt)
p02582
s923280491
Wrong Answer
r,s=0,input() for l in s: if l=='S': break r+=1 print(r)
p02582
s180760768
Wrong Answer
s = input() max = 0 cnt = 0 for i in range(3): if s[i] == "R": cnt += 1 else: if max < cnt: max = cnt cnt = 0 print(max)
p02582
s699690550
Wrong Answer
N = input() if N == "SSS": print(0) elif N == "RRS": print(2) elif N == "SRR": print(2) elif N == "SRS": print(1) elif N == "RSR": print(1) else: print(3)
p02582
s575627225
Wrong Answer
S = input() count = 0 for i in range(3): if S[i] == 'R': count += 1 elif i == 1: break elif i == 2: break print(count)
p02582
s948823151
Wrong Answer
s = input().strip().split('S') print(max(s, key = len))
p02582
s523516302
Wrong Answer
s=input() if s == 'SSS': print(0) elif s == 'SSR': print(1) elif s == 'SRS': print(1) elif s == 'SRR': print(1) elif s == 'RSS': print(1) elif s == 'RSR': print(1) elif s == 'RRS': print(2) else: print(3)
p02582
s447296388
Wrong Answer
if __name__ == '__main__': S = input() cnt = 0 for s in S: if s=='R': cnt += 1 print(cnt)
p02582
s866053957
Wrong Answer
if __name__ == '__main__': S = input() cnt = 0 for s in S: if s=='R': cnt += 1 else: break print(cnt)
p02582
s267805361
Wrong Answer
a = str(input()) if a[0] == 'R' and a[1] == 'R': print(2) elif a[1] == 'R' and a[2] == 'R': print(2) elif a[0] == 'R' and a[1] == 'R' and a[2] == 'R': print(3) elif a[0] == 'S' and a[1] == 'S' and a[2] == 'S': print(0) else: print(1)
p02582
s266950690
Wrong Answer
s = input().split() count = 0 for i in s: if 'R' == i: count += 1 print(count)
p02582
s718806187
Wrong Answer
S = input() ans = 0 for s in range(len(S)): if S[s]=="R": ans +=1 if ans == 3: print(3) elif ans == 1: print(1) else: if S[1] == "S": print(1) else: print(2)
p02582
s371108498
Wrong Answer
s = input() ans = 0 a = 0 for si in s: if si == "R": a += 1 else: ans = max(ans,a) a = 0 print(ans)
p02582
s369190138
Wrong Answer
S = input() count = 0 max_count = 0 for i in range(len(S)): if S[i] == 'R': count += 1 else: if max_count < count: max_count = count count = 0 if count == 3: print(3) else: print(max_count)
p02582
s806099799
Wrong Answer
s = input() if 'RR' in s: print(2) elif 'RRR' in s: print(3) elif 'R' in s: print(1) else: print(0)
p02582
s466785910
Wrong Answer
n = list(input()) result = 0 for i in range(1, len(n)): if n[i] == "R": result = 1 if n[i] == n[i-1]: result += 1 else: result = 0 print(result)
p02582
s311245945
Wrong Answer
s=str(input()) ans=0 if s not in "R": ans=0 else: if s[1]=="S": ans=1 elif s[0]=="R" and s[2]=="R": ans=3 else: ans=2 print(ans)
p02582
s689893091
Wrong Answer
s=input() if s.count('R')==1: print(1) elif s.count('R')==3: print(3) else: if s=="RSR": print(1) else: print(2)
p02582
s882770423
Wrong Answer
s = input() if s == "RRR": print(3) elif s == "RRS" or s == "SRR": print(2) elif s == "RSR" or s == "RSS" or s == "SSR": print(1) else: print(0)
p02582
s856900454
Wrong Answer
s = str(input()) if s == "rrs" or s == "srr": print('2') elif s == "rrr": print('3') elif s == "sss": print('0') else: print('1')
p02582
s585753255
Wrong Answer
w=input() count=0 for i in range(len(w)): if w[i]=="R": count+=1 if w[i]=="S": if i==1: count=0 print(count)
p02582
s583681904
Wrong Answer
S = input() c = 0 ans = 0 for i in range(3): if S[i] == 'R': c+=1 else: ans = max(c,ans) print(ans)
p02582
s308803169
Wrong Answer
s=input() if s=='RRR': print(0) elif s=='SSS': print(3) elif s in ['RRS','SRR']: print(2) else: print(1)
p02582
s925575227
Wrong Answer
def main(): s = input() cnt = 0 cnt2 = 0 for i in s: if i == "R": cnt2 += 1 else: cnt = max(cnt, cnt2) cnt2 = 0 print(cnt) main()
p02582
s387837036
Wrong Answer
S = input() print(S.count('R'))
p02582
s582504659
Wrong Answer
def solve(x): if x.count("RRR"): return 3 if x.count("RR"): return 2 if x.count("R"): return 1 x = input() print(solve(x))
p02582
s707958656
Wrong Answer
L = [s for s in input()] if not 'R' in L: print(0) elif not 'S' in L: print(3) elif L[1] == 'S': if 'R' in L : print(1) else: print(2)
p02582
s684513718
Wrong Answer
s = list(input()) if s[0] == 'R': if s[1] != 'R': print(1) else: if s[2] == 'R': print(3) else: print(2) else: if 'R' not in s: print(0) elif s == ['R', 'R']: print(2) else: print(1)
p02582
s394835537
Wrong Answer
a = str(input()) count = 0 for i in a: if i == 'R': count += 1 else: count = 0 answer = count print(answer)
p02582
s489934957
Wrong Answer
s=input() print(max(s.count('R')-(s[1]=='S'),0))