백준 31495번: 그게 무슨 코드니.. #Python

ColorlessDia·2025년 10월 18일

algorithm/baekjoon

목록 보기
699/812
S = input()

condition_1 = True if 2 <= len(S) else False
condition_2 = True if S[0] == S[-1] == '"' else False
condition_3 = True if 0 < len(S[1:-1]) else False

if condition_1 and condition_2 and condition_3:
    print(S[1:-1])
else:
    print('CE')

0개의 댓글