지나가던 개발자
[Python] 백준 10769번(행복한지 슬픈지) 문제 풀이 본문
message = input()
if message.count(":-)") == 0 and message.count(":-(") == 0:
print("none")
elif message.count(":-)") == message.count(":-("):
print("unsure")
elif message.count(":-)") > message.count(":-("):
print("happy")
else:
print("sad")
파이썬은 PS 치트다...
'PS > Python' 카테고리의 다른 글
[Python] 백준 6992번(Arithmetic Sequence) 문제 풀이 (0) | 2022.10.22 |
---|---|
[Python] 백준 1546번(평균) 문제 풀이 (0) | 2022.10.21 |
[Python] 백준 11816번(8진수, 10진수, 16진수) 문제 풀이 (0) | 2022.10.21 |
[Python] 백준 1357번(뒤집힌 덧셈) 문제 풀이 (0) | 2022.10.21 |
[Python] 백준 8611번(팰린드롬 숫자) 문제 풀이 (0) | 2022.10.20 |
Comments