Unknown machine
Jump to navigation
Jump to search
Unknown machine is simply:
- input
- input=True
- Then print "1"
- input=False
- Then print "-1"
- input=Unknown
- Forever:
- Print "0"
- End forever
it was invented by yours truly
Implementation
T U F
Chore(I,O)(?){
AA
R:U=A<!U>
R:T=A<!T X>
R:F=A<!F X>
}
Python
a = int(input())
if a == 1:
print(1)
elif a == -1:
print(-1)
else:
while True:
print(0)