ferinの競プロ帳

競プロについてのメモ

2016-11-18から1日間の記事一覧

ABC016を解いてみた

A問題 m%d が0かどうかで判断しました。 m, d = map(int, input().split()) if(m%d == 0): print("YES") else: print("NO") B問題 4パターンに場合分けしてelse-if構文で実装しました。 a, b, c = map(int, input().split()) if(a+b == c and (a-b == c or b…