noharaのブログ

興味のあることについてゆる~く書きます

一日n問AtCoder[abc061~065_a][python]

9日目

061

https://atcoder.jp/contests/abc061/tasks/abc061atcoder.jp

a, b, c = map(int, input().split())

if c >= a and c <= b:
    print("Yes")
else:
    print("No")

062

atcoder.jp

x, y = map(int, input().split())

a = [1, 3, 5, 7, 8, 10, 12]
b = [4, 6, 9, 11]
c = [2]

if (x in a and y in a) or (x in b and y in b) or (x in c and y in c):
    print("Yes")
else:
    print("No")

063

atcoder.jp

a, b = map(int, input().split())

if a + b >= 10:
    print("error")
else:
    print(a + b)

064

atcoder.jp

r, b, g = map(int, input().split())

rgb = r * 100 + b * 10 + g
if rgb % 4 == 0:
    print("YES")
else:
    print("NO")

065

atcoder.jp

x, a, b = map(int, input().split())

if a - b >= 0:
    print("delicious")
elif a - b + x >= 0:
    print("safe")
else:
    print("dangerous")