621

Secret Research
Type:
General
Diff: 5.0

Tricks

A general way may solve this problem but I found a great help from steven halim's webpage. He wrote there,
 
�positive result S = 1 or S = 4 or S = 78
negative result S = S35
experiment failed S = 9S4
experiment not completed S = 190S
Actually this problem can be very easy once you know what it means (or when you read this hint). How to know which output we have to give for each input? The answer is simple:
Positive when S is exactly "1","4",or "78"
Negative when the last two digits of S are exactly "35"
Experiment failed if the first digit of S is exactly "9" and the last one digit of S is exactly "4"
Experiment not completed if the first three digits are exactly "190" �

Related Problems & Topics

 

If you have any advice, complements 

or proposal, please  Send mail to Author

Submit

1