https://www.acmicpc.net/problem/20673
1
2
3
4
5
6
7
8
9
10
11
12
|
def sol(p ,q):
if p <= 50 and q<=10:
return 'White'
elif q > 30:
return 'Red'
else:
return 'Yellow'
if __name__ == '__main__':
p = int(input())
q = int(input())
print(sol(p, q))
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
백준 24860 Counting Antibodies (0) | 2022.12.20 |
---|---|
백준 22015 金平糖 (Konpeito) (0) | 2022.12.20 |
백준 21591 Laptop Sticker (1) | 2022.12.20 |
백준 15232 Rectangles (0) | 2022.12.20 |
백준 26545 Mathematics (0) | 2022.12.19 |
댓글