728x90
python
str = input()
left = list(map(int,str[:len(str)//2]))
right = list(map(int,str[len(str)//2:]))
if sum(left) == sum(right):
print("LUCKY")
else:
print("READY")
728x90
'알고리즘 문제 풀이 > 구현' 카테고리의 다른 글
[백준]1475번: 방 번호 (0) | 2023.04.24 |
---|---|
[백준] 1316번: 그룹 단어 체커 (0) | 2023.04.19 |
[프로그래머스] k번째수 (0) | 2023.04.06 |
[프로그래머스] 3진법 뒤집기 (0) | 2023.04.03 |
[백준]3190번: 뱀 (0) | 2023.03.26 |