problem_id
stringclasses
100 values
submission_id
stringlengths
10
10
status
stringclasses
2 values
code
stringlengths
6
806
p02582
s880442742
Wrong Answer
S = list(input()) cnt = 0 previous_weather = '' for i, w in enumerate(S): if w == 'R' and i == 0: cnt += 1 elif w == 'R' and w == previous_weather: cnt += 1 previous_weather = w print(cnt)
p02582
s820538083
Wrong Answer
string=input() r=0 for i in range(len(string)-1): if string[i]=='R' and string[i+1]=='R': r+=1 print(r)
p02582
s735168150
Wrong Answer
S = input() c = 0 if S == "RRS" or S == "SRR": print("2") elif S == "RRR": print("3") elif S == "RSR" or S == "RSS" or S == "SSR": print("1") else: print("0")
p02582
s332824214
Wrong Answer
s=input() if s=="RRR": print(3) elif s=="RR": print(2) elif s=="R": print(1) else: print(0)
p02582
s263142013
Wrong Answer
text = input() if text[1] == "S": if text[0] == "R" or text[2] == "R": print(1) quit() else: print(0) quit() else: if text[0] == "R" and text[2] == "R": print(3) quit() elif text[0] == "R" or text[2] == "R": print(2) quit()
p02582
s360005211
Wrong Answer
n = input() num = n.count("R") if num == 1 or num == 3: print(num) elif num == 2 and n[0] != n[2]: print(num) elif num == 2 and n[0] == n[2]: print(1)
p02582
s849940352
Wrong Answer
S = input() if S == "SSS": print(3) elif S == "SRR" or S == "RSR" or S == "SSR": print(1) else: print(2)
p02582
s094137438
Wrong Answer
_s = input() last = _s[0] cnt = 1 for i in range(1, len(_s)): if(_s[i] == last): if(_s[i] == 'R'): cnt += 1 last = _s[i] print(cnt)
p02582
s728168024
Wrong Answer
def clean(max_r, count): if max_r < count: max_r = count return max_r mojiretsu = input() count = 0 max_r = 0 for moji in mojiretsu: if moji == 'R': count += 1 else: max_r = clean(max_r, count) if count != 0: max_r = clean(max_r, count) print(max_r)
p02582
s794046935
Wrong Answer
r=0 for l in input(): r+=1 if l=='R' else 0 print(r)
p02582
s535087558
Wrong Answer
S = input() if S.count("RRR") == 1 : print("3") elif S.count("RRR") == 1 : print("2") else : if S.count("R") >= 1 : print("1") else : print("0")
p02582
s725850627
Wrong Answer
str = input() cnt = 0 for i in range(3): if str[i] == 'R': cnt += 1 print(cnt)
p02582
s270286210
Wrong Answer
s = str(input()).upper()# S, R == sunny, rainy def weather(s): if s == 'RRR': return 0 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
s359715567
Wrong Answer
s = input() lst = list(s) counter = 0 buffer = 0 if 'R' not in lst: print(0) else: for i in range(len(lst) - 1): if lst[i] == 'R': buffer += 1 else: counter = buffer buffer = 0 if buffer > counter: counter = buffer print(counter)
p02582
s387130669
Wrong Answer
S = list(input()) count=0 for i in range(3): if S[i-1]=="R": count=1 if S[i-1]==S[i]: count+=1 else: count=count else: count=count print(count)
p02582
s936872735
Wrong Answer
a = input() if a[0] == "R": if a[1] == "R": if a[2] == "R": print("3") else: print("2") else: print("1") elif a[1] == "R": if a[2] == "R": print("2") else: print("1") else: print("0")
p02582
s364785730
Wrong Answer
S = input() ren = 0 if S[1] == "R": if S[0] == "R" and S[2] == "R": ren = 3 elif S[0] == "R" or S[2] == "R": ren = 2 elif S[0] == "R" or S[2] == "R": ren = 1 print(ren)
p02582
s626967714
Wrong Answer
s = input() print(len(s.strip('S')))
p02582
s958542694
Wrong Answer
s = input() cnt = 0 for i in range(3): if s[i] == 'R': cnt += 1 if i > 0: if s[i-1] == 'S': cnt -= 1 print(cnt)
p02582
s891954618
Wrong Answer
S=input().strip("¥n") ans=1 if S[0]==S[1]: ans+=1 if S[1]==S[2]: ans+=1 print(ans)
p02582
s892290263
Wrong Answer
s = input() ans = 0 if s == 'SSS': print(3) elif s == 'SSR' or s == 'RSS': print(2) elif s == 'SRR' or s == 'RSR' or s == 'RRS' or s == 'SRS': print(1) else: print(0)
p02582
s421813270
Wrong Answer
b = input() if 'RSR' == b: print(1) elif 'RRS' == b or 'SRR' == b: print(2) elif 'RRR' == b: print(3) else: print(0)
p02582
s503297859
Wrong Answer
s = list(input()) opt = 0 if (s[0] == 'R'): opt += 1 if (s[1] == 'R'): opt += 1 if (s[2] == 'R'): opt += 1 print(opt)
p02582
s186979563
Wrong Answer
x=list(input()) cons=0 consecs=[] b="R" for a in x: if(a=='R' and b==a): cons+=1 else: consecs.append(cons) cons=0 b=a if(consecs==[]): consecs.append(cons) if(max(consecs)!=0): print(max(consecs)) else: print(0)
p02582
s113017347
Wrong Answer
s=input() c=0 for i in s: if i=='R': c+=1 print(c)
p02582
s876653080
Wrong Answer
n = list(input()) if n[1] == 'R': if n[0] == n[1] and n[1] == n[2]: print(3) elif n[0] != n[1] and n[1] == n[2]: print(2) elif n[0] == n[1] and n[1] != n[2]: print(2) else: print(1) else: if n[0] == 'R': print(1) elif n[1] == 'R': print(1)
p02582
s664842622
Wrong Answer
S = input() ans = 0 memo = 1 for i in range(3): if S[i] == "R": ans += 1 memo = 1 elif S[i] == "S": memo = 0 print(ans)
p02582
s938194130
Wrong Answer
# coding:utf-8 s = input() count = 0 ans = 0 if s == 'SSS': print(0) elif s == 'SRR': print(2) elif s == 'SSR': print(1) else: for i in range(3): if s[i] == 'R': count += 1 elif s[i] == 'S': ans = count count = 0 print(ans)
p02582
s078260956
Wrong Answer
import sys def input(): return sys.stdin.readline().rstrip() def ii(): return int(input()) def mi(): return map(int, input().split()) def li(): return list(mi()) def main(): s = input() cnt = 0 for i in range(1, 3): if s[i] == 'R' and s[i-1] == 'R': cnt += 1 print(cnt) if __name__ == '__main__': main()
p02582
s908685044
Wrong Answer
s=input() c=0 c_max=0 for i in range(3): if s[i] == 'R': c+=1 else: if c>c_max: c_max=c c=0 print(c_max)
p02582
s368405251
Wrong Answer
# A import re S = input() m = re.findall("R", S) print(len(m))
p02582
s365377273
Wrong Answer
l = [e for e in input()] c = 0 if l[1] == "R": c += 1 if l[0] == "R": c += 1 if l[2] == "R": c += 1 else: if l[0] == 1 or l[2] == "R": c += 1 print(c)
p02582
s607768615
Wrong Answer
N = list(input()) #print(N) def count(list_1): return list_1.count('R') #print(count(N))
p02582
s375171130
Wrong Answer
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)
p02582
s794055263
Wrong Answer
from sys import stdin test = list(stdin.readline().lstrip().rstrip()) count = 0 before = 'R' for str in test: if before == str and str == 'R': count = count + 1 before = str print(count)
p02582
s812504339
Wrong Answer
s = input() cnt=0 for i in range(3): if s[i]=='R': cnt+=1 print(cnt)
p02582
s798867140
Wrong Answer
w = list(input().split()) if w == ["RSR"]: print(1) else: print(w.count("R"))
p02582
s405541680
Wrong Answer
s = input() def A(): if s == 'RRR': return 3 if s == 'RRS' or s == 'SRR': return 2 return 1 print(A())
p02582
s902567089
Wrong Answer
from sys import exit X = list(input()) X.append("") N = len(X) #X = [[0] for i in range(N+1)] ans = 0 i = 0 while i < N: #for i in range(N-1): if X[i]=="R": ans += 1 if X[i]==X[i+1]: ans += 1 i += 1 i += 1 print(ans)
p02582
s452114132
Wrong Answer
S = 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("3")
p02582
s250389051
Wrong Answer
S = input() p = 0 for i in range(len(S)): if S[i] != 'S': p =+ 1 print(p)
p02582
s962523050
Wrong Answer
S = input() if S == 'SSS': print(0) elif S == 'SRR': print(2) elif S == 'RRS': print(2) elif S == 'RRR': print(3)
p02582
s278975054
Wrong Answer
s=str(input("")) sum=0 if 'RR' in s: print("2") elif 'R' in s: print("1") else: print("0")
p02582
s425836957
Wrong Answer
str = input() splited = list(str) cccount = 0 count = 0 for s in splited: if s == 'R': count = count + 1 else: if cccount > count: cccount = count count = 0 print(cccount)
p02582
s374059958
Wrong Answer
S = input() if S[1:2] == 'S': if 'R' in S: print(1) else: print(0) else: if not 'S' in S: print(3) else: print(2)
p02582
s320047657
Wrong Answer
print("A.py")
p02582
s117545694
Wrong Answer
S = input() cnt = 0 max_cnt=0 if S[0] == 'R': cnt += 1 for i in range(1,3): if S[i] == 'R': cnt+=1 else: if cnt > max_cnt: max_cnt = cnt cnt = 0 if S[len(S)-1] == 'R' and max_cnt == 0: max_cnt = 1 print(max_cnt)
p02582
s289557440
Wrong Answer
s = input() temp = 0 ans = 0 for i in s: if(i == "R"): temp += 1 else: if(temp >= ans): ans = temp temp = 0 if(temp >= ans): ans = temp print(temp)
p02582
s961350957
Wrong Answer
a=input() if a == "RRR": answer=2 elif a=="RRS" or a=="SRR": answer=1 else: answer=0 print(answer)
p02582
s859436746
Wrong Answer
ws = input() rev = 0 for ch in ws: if ch == 'R': rev += 1 else: rev = 0 print(rev)
p02582
s404432345
Wrong Answer
s = input() result = 0 flag = False for rs in s: if flag: if rs == 'R': tmp += 1 else: if tmp > result: result = tmp flag = False else: if rs == 'R': tmp = 1 flag = True print(result)
p02582
s902954399
Wrong Answer
d = input() c = 0 for i in range(3): if d[i] == 'R': c += 1 if c == 2 and d[1] == 'R': print(0) else: print(c)
p02582
s363481196
Wrong Answer
str = input() def an(str): if str =="RRR": return 3 elif str =="SRR" or "RRS": return 2 elif str =="SSS" : return 0 else: return 1 print(an(input))
p02582
s117551140
Wrong Answer
x=list(input()) if x.count("R")==0: print(0) elif x.count("R")==1: print(1) elif x.count("R")==3: print(3) else: if x.pop(2)=="S": print(1) else: print(2)
p02582
s674685639
Wrong Answer
S = input() counter = 0 tmp = 0 for s in S: tmp += 1 if s == 'R': counter += 1 elif tmp == 3 and s == 'S': break else: counter = 0 print(counter)
p02582
s878744593
Wrong Answer
s = input() ans = s.count('R') print(ans)
p02582
s699593912
Wrong Answer
print(sum(s == 'R' for s in input()))
p02582
s301513357
Wrong Answer
inp = input() count = 0 if len(inp) == 1: if inp=="R": print(1) elif inp=="S": print(0) else: for c in range (1,len(inp)-1): if inp[c] == inp[c-1] and inp[c]=="R": count+=1 print(count+1 if count>0 else count)
p02582
s370249129
Wrong Answer
S = input() Count = 0 MAXC = 0 for TS in range(0,3): if S[TS]=='R': Count += 1 else: MAXC = Count Count = 0 print(MAXC)
p02582
s005037703
Wrong Answer
S = input() count = 0 ans = 0 for i in range(3): if S[i] == 'R': count += 1 else: ans = count count = 0 ans = max(ans, count) print(ans)
p02582
s895454511
Wrong Answer
S = input() R_n = 0 R_max = 0 for i in S: if i == 'R': R_n += 1 else: R_max = R_n R_n = 0 if R_n == len(S): R_max = R_n print(R_max)
p02582
s556175895
Wrong Answer
def main(): s = input() count = 0 ans = 0 for i in s: if i == 'R': count += 1 ans = count else: ans = count count = 0 print(ans) if __name__ == "__main__": main()
p02582
s542943439
Wrong Answer
S = input() if S == "RRR": print(3) elif S == "RRS": print(2) elif S == "SRR": print(2) elif S == "RSR": print(1) elif S == "SRS": print(1) else: print(0)
p02582
s438752262
Wrong Answer
def count_rainy(weather): return len([r for r in weather if r == 'R']) weather = input() print(count_rainy(weather))
p02582
s718369397
Wrong Answer
a,b,c=map(str,input()) count=0 if a=='R': count=count+1 if b=='R': count=count+1 if c=='R': count=count+1 print(count)
p02582
s735382550
Wrong Answer
s=input() cnt=0 for i in s: if i=="R": cnt+=1 elif i=="S": break print(cnt)
p02582
s990243517
Wrong Answer
S = input()[0:3] res = 0 if S == 'RRS' or S == 'rrs': res = 2 elif S=='RRR' or S == 'rrr': res = 3 elif S=='RSR' or S == 'rsr' and S=='RSS' or S=='rss': res = 1 else: res = 0 print(res)
p02582
s119194849
Wrong Answer
if __name__ == "__main__": S = input() S = list(S) count = 0 maxc = 0 for i in S: if i == 'R': count += 1 maxc = count else: maxc = count count = 0 print(maxc)
p02582
s592253810
Wrong Answer
import sys input = sys.stdin.readline def main(): S = input() if 'RRR' == S: print(3) elif 'RR' in S: print(2) elif 'R' in S: print(1) else: print(0) main()
p02582
s279942826
Wrong Answer
S=input() if (S=="RRS" or S=="SRR"): print (2) elif S=="RRR": print (3) elif S=="RSS" or S=="SRS" or S=="SSR": print (1) else: print (0)
p02582
s142030595
Wrong Answer
a, b, c = input() if b == "R": d = 1 if a == "R": d += 1 if c == "R": d += 1 else: d = 0 if a == "R" or c == "R": d += 1 print(c)
p02582
s334302188
Wrong Answer
S = input() c = 0 if S == "RRS" or S == "SRR": print("2") elif S == "RRR": print("3") elif S == "RSR" or S == "RSS" or S == "SSR": print("1") else: print("0")
p02582
s719493109
Wrong Answer
S = input() ans = 0 count = 0 for i in S: if i == "R": count += 1 if count >= 3: ans = 3 elif count >= 1 : if S[1] == "S": ans = 1 else: ans = 2 else: ans = 0 print(ans)
p02582
s252931911
Wrong Answer
s =list(input()) if s.count('R') == 0 : print(0) elif s.count('R') == 1 or s == 'RSR': print(1) elif s.count('R') == 3 : print(3) elif s == 'RRS' or s == 'SRR' : print(2)
p02582
s705241183
Wrong Answer
s = input() if s == 'RRR': print(3) elif s == 'SRR' or s == 'RRS': print(2) elif s == 'RSS' or s == 'SRS' or s == 'SSR': print(1) else: print(0)
p02582
s881088556
Wrong Answer
s = input() if s == "SSS": print(0) elif s == ("RSS" or "SRS" or "SSR" or "RSR"): print(1) elif s == ('RRS' or 'SRR'): print(2) elif s == "RRR": print(3) # if s.count("R") == 0: # print(0) # elif s.count("R") == 1 or s == "RSR": # print(1) # elif s.count("R") == 2: # print(2) # elif s.count("R") == 3: # print(3)
p02582
s488655370
Wrong Answer
a=list(input().split()) a="".join(a) count=0 for i in range(3): if a[i]=='S': count=1 else: count+=1 print(count)
p02582
s755449716
Wrong Answer
s = str(input()) cnt = 0 Max = 0 for i in s: if i == "R": cnt += 1 else: Max = max(Max,cnt) cnt = 0 print(Max)
p02582
s946979194
Wrong Answer
s=input() num=0 a=[0] for i in s: if i=="R": num+=1 elif i!="R": a.append(num) num=0 print(max(a))
p02582
s551828952
Wrong Answer
s = raw_input() count = 0 a = 0 for j in range(len(s)): if s[j] == 'R': count +=1 else: count = 0 a = max(count, a) print
p02582
s951160322
Wrong Answer
S = input() ans = 0 while True: if 'RR' in S: S = S.replace('RR', 'R') ans += 1 else: break if not ans == 0: ans += 1 print(ans)
p02582
s279417273
Wrong Answer
s = input() if 'R' not in s: print(0) exit() result = 0 t = 0 for c in s: if c == 'R': t += 1 else: result = max(result, t) t = 0 print(result)
p02582
s032480718
Wrong Answer
s = input() if s == 'RRR': print(3) elif s == 'RRS': print(2) elif s == 'SRR': print(2) else: print(1)
p02582
s476189887
Wrong Answer
S = input() if S in ['RRR', 'SSS']: print(3) elif S in ['RSS', 'RRS', 'SSR', 'SRR']: print(2) else: print(1)
p02582
s384718030
Wrong Answer
s = input() l = 0 h = 0 for i in range(0, 3): if s[i] == "S": h = l l = 0 else: l += 1 print(h)
p02582
s541584994
Wrong Answer
import re s = input() print(max(map(len, re.split('R', s))))
p02582
s720581720
Wrong Answer
s=input() a=s.count('R') if a==0: print(a) elif s[1]=='S': print(a-1) else: print(a)
p02582
s687927189
Wrong Answer
def solve(): s = input() ans = 0 hoge = [0] for i in s: if i == "R": ans += 1 hoge.append(ans) else: ans = 0 print(min(hoge)) return 0 if __name__ == "__main__": solve()
p02582
s551488882
Wrong Answer
S = input('').split() if 'RRR' in S: print(3) elif 'RR' in S: print(2) elif 'R' in S: print(1) else: print(0)
p02582
s298142924
Wrong Answer
s = input() ans = 0 tmp = 0 for i in range(3): if s[i] == 'R': tmp += 1 else: ans = max(ans, tmp) tmp = 0 print(ans)
p02582
s284723066
Wrong Answer
s = str(input()).upper()# S, R == sunny, rainy def weather(s): if s == 'RRR': print('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 3 print(weather(s))
p02582
s884079470
Wrong Answer
a = str(input()) anw = 0 for i in range(0, 3): if a[i] == 'RSS' or 'RSR' or 'SSR' or 'SRS': anw = 1 elif a[i] == 'SRR' or 'RRS': anw = 2 elif a[i] == 'RRR': anw = 3 else: anw = 0 print(anw)
p02582
s809397102
Wrong Answer
word = input() answer = 0 if word[0] == 'R': if word[1] == 'R': if word[2] == 'R': answer = 3 else: answer = 2 else: answer = 1 elif word[1] == 'R': if word[2] == 'R': answer = 2 else: answer = 1 print(answer)
p02582
s689125997
Wrong Answer
S = str(input()) cnt = 0 for i in range(len(S)): if S[i] == 'R': cnt += 1 elif S[1] == 'S': cnt = 0 print(cnt)
p02582
s513492756
Wrong Answer
def main(): s = input() if s[0]==s[1] and s[1] == s[2]: if s[0]=='R': print(3) else: print(0) elif s[0] == s[2]: print(1) else: print(2) if __name__ == "__main__": main()
p02582
s073552396
Wrong Answer
a = str(input()) anw = 0 for i in range(0, 2): if a[i] == 'R': anw += 1 elif i == 2: if a[i] == 'S': anw = anw elif a[i] == 'R': anw += 1 print(anw)
p02582
s727449729
Wrong Answer
S= input() a = tuple(S) #print(a) #print(a[0]) cou = 1 for i in range (0,len(S)-1): if a[i] == "R": if a[i+1] != "S": cou+=1 else: break; if a[0] == "S": cou=0 #elif a[i]=="S": # cou=0 print(cou) a
p02582
s734408449
Wrong Answer
s = input() if "SSS" in s: print(0) elif "RRR" in s: print(0) elif "SS" in s: print(2) elif "RR" in s: print(2) else: print(1)
p02582
s185162127
Wrong Answer
weather = input() raincount=0 cont=0 for i in range(3): if weather[i]=="R" and cont==0: raincount=raincount+1 elif weather[i]=="R" and cont==1: raincount=1 elif weather[i] == "S": cont=1 print(raincount)
p02582
s574159271
Wrong Answer
S = input() cnt = 0 max_cnt = 0 for i in range(len(S)): s = S[i] if s == 'R': cnt += 1 else: max_cnt = cnt cnt = 0 print(max_cnt)