본문 바로가기

STUDY/Python

[Softeer] 비밀 메뉴

728x90

- 식권 자판기의 버튼을 특정 순서대로 누르고 결제 하면 평소와 다른 색깔의 식권이 나옴 -> 비밀 식권

- K개의 자판기 버튼

- M개의 버튼 조작을 통해 비밀 메뉴 식원 발매

- N개의 사용자 버튼

 

M, N, K = map(int, input().split())
secret_list = list(map(int, input().split()))
user_list = list(map(int, input().split()))

secret_str = ' '.join(map(str, secret_list))
user_str = ' '.join(map(str, user_list))

if user_str.find(secret_str)!=-1:
    print('secret')
else:
    print('normal')

 

728x90