https://www.acmicpc.net/problem/13623
13623번: Zero or One
Everyone probably knows the game Zero or One (in some regions in Brazil also known as Two or One), used to determine a winner among three or more players. For those unfamiliar, the game works as follows. Each player chooses a value between zero or one; pro
www.acmicpc.net
1
2
3
4
5
6
7
8
9
10
11
12
13
|
def sol(a,b,c):
answer = '*'
if a!=b and a!=c:
return 'A'
elif b!=a and b!=c:
return 'B'
if c!=a and c!=b:
return 'C'
return answer
if __name__ == '__main__':
a, b, c =map(int, input().split())
print(sol(a,b,c))
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
백준 25915 연세여 사랑한다 (0) | 2022.11.30 |
---|---|
백준 15372 A Simple Problem. (0) | 2022.11.30 |
백준 25600 Triathlon (0) | 2022.11.29 |
백준 25881 Electric Bill (0) | 2022.11.29 |
백준 25983 Majestic 10 (0) | 2022.11.29 |
댓글