You are viewing a single comment's thread. Return to all comments →
k=int(input()) room_list=list(map(int,input().split())) for room in room_list: if room_list.count(room)==1: print(room)
this code worked only for few test cases.Pls explain why not applied to other cases
Seems like cookies are disabled on this browser, please enable them to open this website
The Captain's Room
You are viewing a single comment's thread. Return to all comments →
k=int(input()) room_list=list(map(int,input().split())) for room in room_list: if room_list.count(room)==1: print(room)
this code worked only for few test cases.Pls explain why not applied to other cases