Quantcast
Channel: 初心者タグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 21081

Pythonで毎日AtCoder #13

$
0
0

はじめに

今まではAtCoderProblemsのレコメンド問題を解いていましたが、より基礎的な力が足りないと思ったのでこれをやります。

#13

さすがにA問題1題だけだと物足りないので、A問題をふたつ解きます。

ABC086-A
ABC081-A

考えたこと
ABC086-Aは$a*b mod(2)$するだけ

a,b=map(int,input().split())ifa*b%2!=0:print('Odd')else:print('Even')

ABC081-Aはsの中の'1'をcountするだけ

s=list(str(input()))print(s.count('1'))

まとめ

今日のABCで悔しい思いをしたのでとりあえず過去問精選を解く。
では、また


Viewing all articles
Browse latest Browse all 21081

Trending Articles