def schizophrenia(society):
""" All Men are Equal – But Some are More (Sami Michael) """
# (the same goes for all mankind, not only men)
people = society()
all_equal = len(set(people)) == 1
some_unequal = len(set(people)) > 1
if len(people) > 0 and all_equal and some_unequal:
print_token()
elif len(people) == 0:
import sys
sys.stdout.write("nope. Our society is surely not empty!n")
elif not all_equal:
import sys
sys.stdout.write("nope. All people shall be equal!n")
elif not some_unequal:
import sys
sys.stdout.write("nope. Some people are more equal than others. Please respect that.n")
if __name__ == "__main__":
init()
if check("solution.py"):
from solution import solution
schizophrenia(solution)
else:
import sys
sys.stderr.buffer.write(b'Check failedx0a')
sys.stderr.flush()
I wrote someting like this to try
class solution:
# default constructor
def __init__(self):
print("never called in this case")
def __new__(cls):
return [10]
but it is not executed and says check failed it is an CTF question I am stuck can you help ? how to pass the above condicitons together?
thanks
New contributor
Ingenious-basstard is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1