crap_bag's blog

By crap_bag, history, 6 years ago, In English

For two sets A and B , we define their sum set is a set S(A,B) = {a+b | a∈A, b∈B}. In other word, set S(A,B) contains all elements which can be represented as sum of an element in A and an element in B. Given two sets A and C, your task is to find set B with minimum size such that S(A,B) = C.

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it