https://www.acmicpc.net/problem/31495
1 2 3 4 5 6 7 8 9 10 11 12 | def sol(s): if s == '"' or s == '""': return 'CE' elif s.startswith('"') and s.endswith('"'): return s.replace('"', '') else: return 'CE' if __name__ == '__main__': s = input() print(sol(s)) | cs |
반응형
'python-algorithm' 카테고리의 다른 글
백준 24087 アイスクリーム (Ice Cream) (0) | 2024.04.18 |
---|---|
백준 28290 안밖? 밖안? 계단? 역계단? (0) | 2024.04.17 |
백준 30999 민주주의 (0) | 2024.04.16 |
백준 31403 (0) | 2024.04.16 |
백준 30402 감마선을 맞은 컴퓨터 (0) | 2024.04.16 |
댓글