1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Pythonで毎日AtCoder #13

Last updated at Posted at 2020-03-22

はじめに

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

#13

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

ABC086-A
ABC081-A

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

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

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

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

まとめ

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

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?