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

ABC164 Python 解説 (A 〜 C)

ABC164 (A〜C) A - Sheep and Wolves if 文を書いて、羊の数と狼の数の大小を比較するだけです。 三項演算子(条件演算子)を使って書いています。 s, w = map(int, input().split()) print('unsafe' if w >= s else 'safe') B - Battle 高橋君、青木君と交…