2020-04-27から1日間の記事一覧

AtCoder Beginner Contest 141 過去問 (A~C)

参照 atcoder.jp A問題 正直綺麗なコードとは言えません。 now=input() if now=='Sunny': print('Cloudy') elif now=='Cloudy': print('Rainy') else: print('Sunny') B問題 問題なく。 ss=input() for i,s in enumerate(ss): if (i+1)%2!=0 and s=='L': pri…