개발자 톡

연습문제 톡 징검다리

징검다리 반례 부탁드립니다!

등록일
2023-06-25 11:02:13
조회수
555
작성자
gns453

import sys

from itertools import permutations
n=int(sys.stdin.readline())
A=list(map(int,sys.stdin.readline().split()))

count=0

def check(p):
print(p)
cnt=0
com=0
for i in range(len(p)):
if com
com=p[i]
cnt+=1
print(cnt)
return cnt


for i in range(n):
count=max(count,check(A))
A.pop(0)
print(count)

#징검다리
#python

이 카테고리의 톡 더보기