problem_id
stringclasses
100 values
submission_id
stringlengths
10
10
status
stringclasses
2 values
code
stringlengths
6
806
p02582
s022485148
Wrong Answer
#A問題 S = input() if S == "RRR": print(3) if S == "RRS"or S == "SRR" : print(2) if S == "SSS": print(0) else: print(1)
p02582
s960282705
Wrong Answer
#coding:utf-8 a = input() if a == "SSS": print("0") elif a == "RRR": print("3") elif a == "RRS" or "SRR": print("2") else : print("1")
p02582
s586432033
Wrong Answer
S = input() cnt = 1 for i in range(len(S)-1): if S[i] == S[i+1] and S[i] == "R": cnt += 2 elif S[i] != S[i+1] and S[i+1] == "R": cnt += 1 else: cnt = 0 print(cnt)
p02582
s723602535
Wrong Answer
s = str(input()) if s[1]== "R" and s[2]=="R" and s[0]== "R": print(3) elif s[1] == "S" and s[2] == "S" and s[0] == "S": print(0) elif s[1] == "S" and s[0]=="R": print(1) elif s[1] =="S" and s[2]=="R": print(1) elif s[1] == "S" and s[0]=="R": print(1) elif s[1] =="R": if s[0] =="R" or s[2]=="R": print(2)
p02582
s254115052
Wrong Answer
from math import * import sys,bisect,copyreg,copy,statistics,os def inp(): return sys.stdin.readline().strip() def IIX(): return (int(x) for x in sys.stdin.readline().split()) def II(): return (int(inp())) def LI(): return list(map(int, inp().split())) def LS(): return list(map(str, inp().split())) def L(x):return list(x) def out(var): return sys.stdout.write(str(var)) s=L(inp()) con=0 for i in range(3): if s[i]=='R': con+=1 if s[i]=='S': con=0 out(con)
p02582
s219168042
Wrong Answer
s=input() ans=0 i=0 while i<3 and s[i]=='R': i+=1 ans+=1 print(ans)
p02582
s234136070
Wrong Answer
S = list(input()) cnt = 0 if S[0]=="R": cnt = 1 if S[1]=="R": cnt += 1 if S[2]=="R": cnt += 1 else: if S[2]=="R": cnt += 1 print (cnt)
p02582
s886155515
Wrong Answer
s = input() ans,cnt = 0,0 for l in s: if l=='R': cnt += 1 else: ans = cnt cnt = 0 print(ans)
p02582
s859525188
Wrong Answer
list = input() #print(list[2]) #print(len(list)) cnt = 0 for n in list: #print(n) if n == "R": cnt+=1 print(cnt)
p02582
s819059761
Wrong Answer
S=str(input()) ans = 0 for i in S: if i == "R": ans += 1 print(ans)
p02582
s570480538
Wrong Answer
S = input() if S=="RRR": print(3) elif S=="RRS": print(3) elif S=="RSS": print(1) elif S=="SSS": print(0) elif S=="RSR": print(1) elif S=="SRR": print(2) elif S=="SSR": print(1) elif S=="SRS": print(1)
p02582
s851236584
Wrong Answer
st = input() if st[0] == st[1] and st[0] == st[2] and st[0] == "R": print(3) elif (st[0] == st[1] and st[0] == "R") or (st[1] == st[2] and st[1] == "R"): print(2) else: print(1)
p02582
s718879225
Wrong Answer
S = input() m = 0 c = 0 for s in S: if s == 'R': c += 1 else: c == 0 m = max(m, c) print(m)
p02582
s830369607
Wrong Answer
S = list(input()) count = 0 ans = 0 for w in S: if w == 'R': count += 1 else: if count > ans: ans = count count = 0 print(ans)
p02582
s205153073
Wrong Answer
a,b,c = map(str,input().rstrip("")) if(a=="R" and b == "R" and c == "R"): count = 3 elif(a=="R" and b == "R" and c == "S"): count = 2 elif(a=="R" and b == "S" and c == "S"): count = 1 elif(a=="S" and b == "R" and c == "R"): count = 2 elif(a=="S" and b == "R" and c == "S"): count = 1 elif(a=="S" and b == "S" and c == "R"): count = 1 else: count = 0 print(count)
p02582
s552362052
Wrong Answer
day = input() count = day.count("R") count1 = day.count("RR") if count == 2: if count1 == 1: print(2) else: print(1) if count == 1: print(1) if count == 0: print(0)
p02582
s152851361
Wrong Answer
s = input() print(s.count("R"))
p02582
s842638791
Wrong Answer
s=input() flg = 0 cnt = 0 if s[1] == "S": flg = 1 for i in range(3): if s[i] == "S": cnt += 1 print(cnt if flg == 1 else cnt -1)
p02582
s020887021
Wrong Answer
S = 'RRS' p = 0 for i in range(len(S)): if S[i] != 'S': p =+ 1 else: p == 0 print(p)
p02582
s412889196
Wrong Answer
import re x = input() pattern = "R+" pat = re.match(pattern, x) if pat: print(len(pat.group())) else: print(0)
p02582
s730586722
Wrong Answer
S = input() r = 0 s = 0 ans = 0 for i in range(3): if S[i] == 'R': r = r + 1 else: if r > ans: ans = r print (ans)
p02582
s725383011
Wrong Answer
s = input() count, final = 0, 0 for i in s: if i == "R": count += 1 elif i == "S": if count > final: final, count = count, 0 print(final)
p02582
s261381964
Wrong Answer
i = 0 j = 0 w = "" for s in input(): j += 1 if s == "R" and (w == s or w == ""): i += 1 elif s == "R" and w != s: i += 1 if s == "S" and i > 0 and j == 2: i -= 1 w = s print(i)
p02582
s736692235
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
s708613824
Wrong Answer
s = input() a = 0 for i in range(3): if s[i] == 'R': a += 1 else: a = 0 print(a)
p02582
s038257568
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': res =1 elif S=='RSS' or S=='rss': res = 1 else: res = 0 print(res)
p02582
s642875953
Wrong Answer
s = input() counter = 0 buffer = 0 if not 'R' in s: print(0) else: for i in range(len(s)): if s[i] == 'R': buffer += 1 else: counter = buffer buffer = 0 if buffer > counter: counter = buffer print(counter)
p02582
s143371875
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
s877111432
Wrong Answer
str = input() print(str.count('R'))
p02582
s284259450
Wrong Answer
s = input() s = s.replace('S', '') print(len(s))
p02582
s281019730
Wrong Answer
a = input() m = 0 i = 0 s = 0 while i < len(a) : if a[i] == "S" : if m < s : m = s s = 0 if a[i] == "R" : s = s + 1 i = i + 1 print(m)
p02582
s482804752
Wrong Answer
S = str(input()) count = 0 for x in range(len(S)): if S[0] == 'R' and x == 0: count = count + 1 elif S[x] == 'R' and S[x - 1] == 'R': count = count + 1 elif S[x] == 'S': continue if count >= 0: print(count) else: print(0)
p02582
s468657213
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
s439521251
Wrong Answer
S = input() count_r = 0 count_s = 0 tmp = 0 for i,s in enumerate(S): if(s == "R"): count_r +=1 if(s=="S"): count_s += 1 tmp = count_r print(tmp)
p02582
s094774274
Wrong Answer
weathers = list(input()) rainy = 0 seq_rainy = 0 for i in range(len(weathers)): #print(weathers[i],rainy,seq_rainy) if weathers[i] == "R": rainy += 1 else: if rainy >= seq_rainy: seq_rainy = rainy rainy = 0 print(seq_rainy)
p02582
s650883857
Wrong Answer
word = input() if word == "SSS": print(0) elif word == "RSS" or "SRS" or "SSR" or "RSR": print(1) elif word == "SRR" or "RRS": print(2) elif word == "RRR": print(3)
p02582
s944394860
Wrong Answer
s=input() count=0 for i in range(3): if s[i] == "R": count+=1 max=count else: max=count count=0 print(max)
p02582
s233699099
Wrong Answer
S = input() if S == "RRR": print(0) elif S == "SSS": print(3) elif S == "SSR" or S == "RSS": print(2) else: print(1)
p02582
s981253505
Wrong Answer
RS = input() answer = 0 for i, j in enumerate(RS): if j == "R": answer += 1 elif (i == 2 and j == "S") or (i == 1 and j == "S"): continue else: answer = 0 print(answer)
p02582
s033877971
Wrong Answer
s = input() ans = 0 for i in range(1,4): p = "R"*i if p in s: ans = i print(i+1)
p02582
s908879847
Wrong Answer
S = input() if S == "RRR": print(3) elif S == "SSS": print(0) elif S == "RSR": print(1) else: print(2)
p02582
s525427899
Wrong Answer
N=input() if N=="RRR": print(3) elif N=="SRR" or N=="RSR" or N=="RRS": print(2) elif N=="SSR" or N=="SRS" or N=="RSS": print(1) else: print(0)
p02582
s448362381
Wrong Answer
S=input() if (S=="RRS" or S=="SRR"): print (2) elif S=="RRR": print (3) else: print (0)
p02582
s050453731
Wrong Answer
s = input() s = list(s) streak = 0 max_streak = 0 for i in s: if s == "R": streak += 1 max_streak = max(streak, max_streak) else: streak = 0 print(streak)
p02582
s184266219
Wrong Answer
s = input() maxCount = 0 count = 0 for i in s: if(i == 'R'): count += 1 else: maxCount = max(count, maxCount) count = 0 print(maxCount)
p02582
s555696007
Wrong Answer
s=input() ans=0 rain=[0] for i in range(len(s)): if s[i]=="R": ans+=1 else: rain.append(ans) ans=0 print(max(rain))
p02582
s900424466
Wrong Answer
S = list(input()) count = 0 buffer = 'R' for s in S: if s == 'R' and buffer == 'R': count += 1 elif s == 'S': buffer = 'S' print(count)
p02582
s453972258
Wrong Answer
X=str(input()) if X=='RRR': print(3) elif X=='RRS' or X=='SRR': print(2) elif X=='SSS': print(0)
p02582
s288524719
Wrong Answer
S = input() count = 0 for i in range(3): if S[i] == "R": count += 1 elif count == 1: count = 0 print(count)
p02582
s541202081
Wrong Answer
s = input() ans = 0 t = 0 for i in s: if(i=='R'): t += 1 else: ans = t t = 0 print(ans)
p02582
s353474517
Wrong Answer
cnt = 0 t = list(input()) for i in range(len(t)): if "R" * i in t: cnt = i + 1 print(cnt)
p02582
s343285847
Wrong Answer
s=input() ans=0 if s[1]=="S": if s[0]=="R" or s[2]=="R": print(1) else: print(0) else: if s[0]!="R" or s[2]!="R": print(2) else: print(3)
p02582
s034743585
Wrong Answer
tenki = input() if tenki == "RRR": print(3) elif tenki == "RRS" or tenki[1:3] == "SRR": print(2) elif tenki == "RSS" or tenki == "SRS" or tenki == "SSR": print(1) else: print(0)
p02582
s946707068
Wrong Answer
t = input() rain = 0 for i in t: if i == 'R': rain +=1 print(rain)
p02582
s945391849
Wrong Answer
def fun(a): count=0 max=0 for i in a: if i=='R': count+=1 if count>=max: max=count else: if count>=max: max=count count=0 return max
p02582
s575330506
Wrong Answer
elem = input() single = elem.count("R") double = elem.count("RR") triple = elem.count("RRR") if triple == 1: print(3) elif double == 1: print(2) else: if single == 1: print(1) else: print(0)
p02582
s036949776
Wrong Answer
S = input() a="RR" b="RRR" c="SSS" if a in S: print(2) elif b == S: print(3) elif c == S: print(0) else: print(1)
p02582
s092147166
Wrong Answer
s = list(input()) l = len(s) rain =int() for x in range(l): if s[x]=="R": rain=rain+1 else: if rain==0: rain=0 else: rain=rain print(rain)
p02582
s541942383
Wrong Answer
str = input() r = 0 for c in str: if c == "R": r += 1 print(r)
p02582
s301394312
Wrong Answer
s = input() cnt = 0 for i in s: if i == "R": cnt += 1 print(cnt)
p02582
s111922463
Wrong Answer
s = input() print(len(s.replace('S', '')))
p02582
s731907371
Wrong Answer
a=input() if 'RR' in a: print("2") elif 'R' in a: print("1") elif 'RRR' in a: print('3') else: print("0")
p02582
s762315558
Wrong Answer
i = 0 for s in input(): if s == "R": i += 1 print(i)
p02582
s943626486
Wrong Answer
sr_list = list(input().split()) r_count = sr_list.count('R') if r_count == 0: print('0') elif r_count == 1: print('1') elif r_count ==3: print('3') else: if sr_list[1] == 'S': print('1') else: print('2')
p02582
s915301881
Wrong Answer
a = input() if a == "RRR": print(3) elif a in "RR": print(2) elif a == "SSS": print(0) else: print(1)
p02582
s219388722
Wrong Answer
s = input() ans = 0 if 'RRR' in s: ans == 3 elif 'RR' in s: ans = 2 elif 'R' in s: ans = 1 else: ans = 0 print(str(ans))
p02582
s969121023
Wrong Answer
S = input() # 高々2^3=8通りなので、全て考慮すればよい ans = 0 if S == 'RRR': ans = 3 elif S == 'SRR' and S =='RSR' and S == 'RRS': ans = 2 elif S == 'SSS': ans = 0 else: ans = 1 print(ans)
p02582
s398617402
Wrong Answer
# coding: utf-8 # Your code here! S = input() #N = int(input()) #A, B = map(int, input().split()) #List = list(map(int, input().split())) if S=="RRR": print(3) elif S=="SSS": print(3) elif S=="RSS": print(2) elif S=="RRS": print(2) elif S=="SRR": print(2) elif S=="SSR": print(2) else: print(1)
p02582
s173440086
Wrong Answer
S = list(input()) a = 0 ans = 0 for i in range(3): if S[i] == 'R': a += 1 else: if ans < a: ans = a a = 0 print(ans)
p02582
s081565624
Wrong Answer
text = input() if text[1] == "S": if text[0] == "R" or text[2] == "R": print(1) else: print(0) else: if text[0] == "R" and text[2] == "R": print(3) elif text[0] == "R" or text[2] == "R": print(2)
p02582
s637517237
Wrong Answer
s = input() cnt = 0 if s[0] == s[1] and s[1] == s[2] and s[1] =='R': print('3') elif s[0] == s[1] or s[1] == s[2] and s[1]=='R': print('2') elif s[0] == 'R' or s[1] =='R' or s[2] == 'R': print('1') else: print('0')
p02582
s523328722
Wrong Answer
S = input() day = 0 counter = 0 for i in S: counter += 1 if i == 'S': if counter == 2: day = 0 pass elif i == 'R': day += 1 print(day)
p02582
s145722022
Wrong Answer
S = input() if S[0] == 'R': if S[1] == 'R': if S[2] == 'R': print("3") else: print("2") else: print("1") else: print("0")
p02582
s980719749
Wrong Answer
S = input() if S =="SSS": print(0) elif S[1] == "S": print(1) elif S == "RRR": print(3) else: print(2)
p02582
s311478869
Wrong Answer
s = input() ans=0 for i in range(len(s)): if s[i] == "S": ans+=1 elif i>len(s): break print(ans)
p02582
s153863443
Wrong Answer
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines def main(): S = input() mx = 0 cnt = 0 pre = 'R' for i in range(len(S)): if (S[i] == 'R') and (pre == 'R'): cnt += 1 else: cnt = 0 pre = 'S' mx = max(cnt, mx) print(mx) if __name__ == '__main__': main()
p02582
s472163830
Wrong Answer
S = input() if (S == 'SSS'): print(0) if (S == 'SSR'): print(1) if (S == 'SRS'): print(1) if (S == 'SRR'): print(2) if (S == 'RSS'): print(1) if (S == 'RSR'): print(2) if (S == 'RRS'): print(2) if (S == 'RRR'): print(3)
p02582
s785950316
Wrong Answer
input_weather = input() print(input_weather.count('R'))
p02582
s805795826
Wrong Answer
a=input() b=0 count=0 for i in range(0,len(a)-1): if a[i]=='R' and a[i+1]=='R': count+=1 if a[i]=='R' and a[i+1]!='R': count+=1 b=max(b,count) count=0 print(b)
p02582
s280594582
Wrong Answer
S = list(map(str, input()[0:3])) res = 0 for i in S: if i == "R": res += 1 print(res)
p02582
s263717800
Wrong Answer
##175 ##A - Rainy Season S = str(input()) if "R" in S: if S[1] == "S": print(1) else: if S[0] == "R" and S[2] == "R": print(3) else: print(2) else: print(0)
p02582
s745609412
Wrong Answer
S=str(input()) if S[1]=="R": if S[2]=="R" and S[0]=="R": print(3) else: if S[0]=="R": print(2) if S[2]=="R": print(2) else: print(1) else: if S[2]=="R" or S[0]=="R": print(1) else: print(0)
p02582
s631543217
Wrong Answer
def main(): from sys import setrecursionlimit, stdin, stderr from os import environ from collections import defaultdict, deque, Counter from math import ceil, floor from itertools import accumulate, combinations, combinations_with_replacement setrecursionlimit(10**6) dbg = (lambda *something: stderr.write("\033[92m{}\033[0m".format(str(something)+'\n'))) if 'TERM_PROGRAM' in environ else lambda *x: 0 input = lambda: stdin.readline().rstrip() LMIIS = lambda: list(map(int,input().split())) II = lambda: int(input()) P = 10**9+7 INF = 10**18+10 print(Counter(input())['R']) main()
p02582
s117064073
Wrong Answer
S = input("R or S:") s = list(S) count = 0 for i in s: if i == "R": count += 1 else: count =0 print(count)
p02582
s946216499
Wrong Answer
s=input() if s == 'RRR': print(3) elif s.count('RR') == 1: print(2) elif s.count('R') > 1: print(1) else: print(0)
p02582
s850468239
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(string2) == 1: print('2') if S.count(string1) == 3: print('3')
p02582
s950353183
Wrong Answer
s = input() if s[0]=='R' and (s[0]==s[1]): print(2) elif s[1]=='R' and (s[1]==s[2]): print(2) elif s[0]=='R' and s[0]==s[1]==s[2]: print(3) elif s[0]=='R' or s[1]=='R' or s[2]=='R': print(1) else: print(0)
p02582
s928414417
Wrong Answer
# -*- coding: utf-8 -*- S = input() ans = 0 for i in range(len(S)): if i > 0: if S[i-1] == S[i] == "R": ans += 1 elif S[i] == "R": ans += 1 print(ans)
p02582
s025393675
Wrong Answer
s=input() c=0 ans=0 for i in range(len(s)): if(s[i]=='R'): c+=1 else: ans=max(ans,c) if(c): ans=max(ans,c) print(ans)
p02582
s963431059
Wrong Answer
S = input() cnt = 0 for i in range(3): if S[i] == "R": cnt += 1 print(cnt)
p02582
s136913935
Wrong Answer
S = input() if (S[0] == 'R' and S[1] == 'R') or (S[1] == 'R' and S[2] == 'R'): print(2) elif S == 'SSS': print(0) elif S == 'RRR': print(3) else: print(1)
p02582
s964368981
Wrong Answer
I=input() count = 0 if I[0] == "R": if I [1] == "R": if I[2] == "R": print(3) else: print(2) else: print(1) else: if I[1] == "S": if I[2] == "S": print(2) else: print(1) else: print(0)
p02582
s799737972
Wrong Answer
s = input() print(s.count('R'))
p02582
s230452835
Wrong Answer
from collections import Counter a = list(input()) print(a.count('R'))
p02582
s718504824
Wrong Answer
s = input() a = 0 for i in range(3): if s[i] == 'R': a += 1 else: break print(a)
p02582
s647531805
Wrong Answer
s = input() ans = 0 if s[0] == "R": ans += 1 if s[1] == "R": ans += 1 if s[2] == "R": ans += 1 print(ans)
p02582
s100746636
Wrong Answer
user_input = input().upper() store = [] for i in user_input: store.append(i) st_nd = store[0:2] # print(st_nd) nd_rd = store[1:3] # print(nd_rd) if len(set(store)) == 1: for i in set(store): if i == "S": print(0) else: print(3) elif len(set(st_nd)) == 1: print(2) elif len(set(nd_rd)) == 1: print(2) else: print(1)
p02582
s025527545
Wrong Answer
weather = input() if len(weather) != 3: print("0") if weather in ["RRR"]: print("3") elif weather in ["SRR","RSR","RRS"]: print("2") elif weather in ["SSR","SRS","RSS"]: print("1") else: print("0")
p02582
s185505711
Wrong Answer
S = input() max = 0 i = 0 m = 0 while(i != len(S)): if S[i] == "R": m += 1 else: max = m m = 0 break i += 1 print(max)
p02582
s978096639
Wrong Answer
s=input() if s=="RRR": print(3) elif s=="RRS"or"SRR": print(2) elif s=="SSR"or"SRS"or"RSS": print(1) else: print(0)