Identifying long cycles in finite alternating and symmetric groups acting on subsets