finitefunc

아직 제출이 없습니다시간 제한2초메모리 제한1024 MB

문제

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 ⁣:XYf\colon X\to Y where XX is a finite set. The value of ff at x is D[x] and the domain XX is the set of all keys of D. Return the range f(x):xX\\{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 10001000.
  • return value: the set-type object S representing the range of the function

    • Every element of S should be an int-type object.