Skip to content

Instantly share code, notes, and snippets.

@theSekyi
Created June 14, 2019 12:22
Show Gist options
  • Select an option

  • Save theSekyi/a96f4572c29885fbf62fbd84f4c67cae to your computer and use it in GitHub Desktop.

Select an option

Save theSekyi/a96f4572c29885fbf62fbd84f4c67cae to your computer and use it in GitHub Desktop.
what is the maximum number of elements in a subset of
\{10,12,...,99\}that does not contain any two numbers xx and yy with x+y=100?
aa = []
sett = list(range(10,100))
for i in range(10,100):
for j in sett:
if (j + i) != 100:
aa.append(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment