備忘録.こんな風にできるとは思わんだ.
a = input()
if "RRR" in a:
print(3)
elif "RR" in a:
print(2)
elif "R" in a:
print(1)
else:
print(0)
Go to list of users who liked
More than 3 years have passed since last update.
備忘録.こんな風にできるとは思わんだ.
a = input()
if "RRR" in a:
print(3)
elif "RR" in a:
print(2)
elif "R" in a:
print(1)
else:
print(0)
Register as a new user and use Qiita more conveniently
Go to list of users who liked