kimmikimmi / leetcode_problem_solving

MIT License
2 stars 1 forks source link

LG code jam problems #5

Closed gunhuikim closed 4 years ago

gunhuikim commented 4 years ago

refer the attached A번_ 카드 바꿔치기.pdf B번_ 조교 배치.pdf C번_ 팀 배정.pdf D번_ 그리드 네트워크.pdf E번_ 불안정한 물질.pdf F번_ 오픈소스 버그 잡기.pdf

gunhuikim commented 4 years ago

Solution for A

test_case= int(input()) #Total test cases

for i in range(0, test_case):

n: int(input()) #num of cards

origin_list = list(map(str, input().split()))
bum_list = list(map(str, input().split()))

if sorted(origin_list) == sorted(bum_list):
    print("NOT CHEATER")

else:
    print("CHEATER")
kimmikimmi commented 4 years ago

Maybe try it next time. :)