https://www.codetree.ai/missions/2/problems/jenga-1d/description
코드트리 | 코딩테스트 준비를 위한 알고리즘 정석
국가대표가 만든 코딩 공부의 가이드북 코딩 왕초보부터 꿈의 직장 코테 합격까지, 국가대표가 엄선한 커리큘럼으로 준비해보세요.
www.codetree.ai
import sys
input = sys.stdin.readline
n = int(input())
arr = []
for _ in range(n):
arr.append(int(input()))
for _ in range(2):
s, e = map(int, input().split(" "))
del arr[s-1:e]
print(len(arr))
for a in arr:
print(a)
728x90
반응형
'🔻PS > Codetree' 카테고리의 다른 글
[Codetree] 문자에 따른 명령 2 Python (0) | 2024.07.29 |
---|---|
[Codetree] 방향에 맞춰 이동 Python (0) | 2024.07.29 |
[Codetree] 삼각형 컨베이어 벨트 Python (0) | 2024.07.27 |
[Codetree] 컨베이어 벨트 Python (0) | 2024.07.27 |
[Codetree] 행복한 수열의 개수 Python (1) | 2024.07.23 |