The Captain's Room

  • + 1 comment

    Why does this work and

    n=int ( input() )
    rooms=list ( map ( int, input().split() ) )
    for i in set ( rooms ):
    		if ( rooms.count(i) == 1):
    				print(i)
    

    takes too much time ... It showa "Your code did not execute in time limit"