본문 바로가기
python-algorithm

백준 20673 Covid-19

by 무적김두칠 2022. 12. 20.

https://www.acmicpc.net/problem/20673

 

20673번: Covid-19

The input consists of two lines. The first line contains an integer p (0 ⩽ p ⩽ 1000), showing the average number of new cases per day in every one million population in Hana’s city over the past two weeks. The second line contains an integer q (0 ⩽

www.acmicpc.net

 

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

댓글