728x90
반응형
단순 구현 문제이다.
A, B, C = map(int, input().split())
print(2 if A+B+C > 4 else 1)
A, B, C = map(int, input().split())
li = [A, B, C]
print(1 if li.count(1) > li.count(2) else 2)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 18414번 X に最も近い値(python) (0) | 2021.02.09 |
---|---|
백준 알고리즘 18411번 試験(python) (0) | 2021.02.09 |
백준 알고리즘 18330번 Petrol(python) (0) | 2021.02.09 |
백준 알고리즘 18005번 Even or Odd?(python) (0) | 2021.02.09 |
백준 알고리즘 17903번 Counting Clauses(python) (5) | 2021.02.09 |