시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 512 MB | 108 | 33 | 25 | 26.882% |
Browsing Wikipedia and reading some random references are the best way to write problems.
Find a subset S ∈ {1, 2, . . . , n} such that:
The first line contains an integer n (1 ≤ n ≤ 107).
The first line contains an integer m: the size of S.
The second line contains m distinct integers from 1 to n: the elements of the set S in any order.
49
4 1 2 3 4