Run ID:154172

提交时间:2026-05-24 15:59:07

n = int(input()) nums = list(map(int, input().split())) m = int(input()) first = -1 last = -1 for idx in range(n): if nums[idx] == m: if first == -1: first = idx + 1 last = idx + 1 print(first, last)