| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 2 초 (추가 시간 없음) | 1024 MB | 130 | 95 | 77 | 80.208% |
A function whose domain is a finite set can be implemented using a Python dictionary. Let D be such a Python dictionary corresponding to the mathematical function $f\colon X\to Y$ where $X$ is a finite set. The value of $f$ at x is D[x] and the domain $X$ is the set of all keys of D. Return the range $\{f(x):x\in X\},ドル in Python set.
Write a function finitefunc:
dict-type object D
D has at most 1000 keys.D is an int-type object whose absolute value is less than or equal to 1000ドル$.set-type object S representing the range of the function
S should be an int-type object.PyPy3