시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 (추가 시간 없음) 1024 MB1381008278.846%

문제

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:

  • input parameter: a dict-type object D
    • D has at most 1000 keys.
    • Every key and value of D is an int-type object whose absolute value is less than or equal to $1000$.
  • return value: the set-type object S representing the range of the function
    • Every element of S should be an int-type object.

출처

School > 한국과학영재학교 > 2021 Fall PPS Final Mock Exam 1번

제출할 수 있는 언어

PyPy3

채점 및 기타 정보

  • 예제는 채점하지 않는다.