아직 계정이 없으신가요? 회원가입

Dev. Talk

[21년 재직자 대회 예선] 비밀 메뉴 반례 질문입니다.

회원사진tpdls80
35 views2023-05-11 16:40

풀이 찾다가


import sys
input = sys.stdin.readline 

m,n,k =  map( int, input().split())

if m > n :
     print( "normal")
    exit()

secret_key =  "".join( list( map( str, input().split())))
user_input =  "".join( list( map( str, input().split())))

if secret_key  in user_input:
     print( "secret")
else:
     print( "normal")



이 코드로 돌려서 100나왔는데

반례가
2 5 5 1 1 4 3 1 4 1
일 경우 secret이 나와야 하는거 아닌가요?